FORTRAN Generation
(/./ftp/cats/J/MNRAS/456/2260)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/456/2260 into FORTRAN code for reading data files line by line.

Note that special values are assigned to unknown or unspecified numbers (also called NULL numbers); when necessary, the coordinate components making up the right ascension and declination are converted into floating-point numbers representing these angles in degrees.



      program load_ReadMe
C=============================================================================
C  F77-compliant program generated by readme2f_1.81 (2015-09-23), on 2026-Oct-11
C=============================================================================
*  This code was generated from the ReadMe file documenting a catalogue
*  according to the "Standard for Documentation of Astronomical Catalogues"
*  currently in use by the Astronomical Data Centers (CDS, ADC, A&A)
*  (see full documentation at URL http://vizier.u-strasbg.fr/doc/catstd.htx)
*  Please report problems or questions to   
C=============================================================================

      implicit none
*  Unspecified or NULL values, generally corresponding to blank columns,
*  are assigned one of the following special values:
*     rNULL__    for unknown or NULL floating-point values
*     iNULL__    for unknown or NULL   integer      values
      real*4     rNULL__
      integer*4  iNULL__
      parameter  (rNULL__=--2147483648.)  	! NULL real number
      parameter  (iNULL__=(-2147483647-1))	! NULL int  number
      integer    idig			! testing NULL number

C=============================================================================
Cat. J/MNRAS/456/2260    K2 Variability Catalogue II              (Armstrong+, 2016)
*================================================================================
*K2 Variable Catalogue.
*II: Machine learning classification of variable stars and eclipsing binaries
*in K2 fields 0-4.
*    Armstrong D.J., Kirk J., Lam K.W.F., McCormac J., Osborn H.P., Spake J.,
*    Walker S., Brown D.J.A., Kristiansen M.H., Pollacco D., West R.,
*    Wheatley P.J.
*    <Mon. Not. R. Astron. Soc. 456, 2260 (2016)>
*    =2016MNRAS.456.2260A        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table4.dat'	! Catalogue, Campaigns 0-4, Warwick lightcurves

      integer*4 nr__
      parameter (nr__=68910)	! Number of records
      character*90 ar__   	! Full-size record

      integer*4     ID          ! EPIC ID
      integer*4     Campaign    ! [0/4] K2 Campaign when observed
      character*6   Class       ! Variability Class with Maximum Probability
      real*8        PDSCUT      ! Delta Scuti Class Probability
      real*8        PEA         ! Detached Eclipsing Binary Class Probability
      real*8        PEB         ! Non-Detached Eclipsing Binary Class Probability
      real*8        PGDOR       ! Gamma Doradus Class Probability
      real*8        PNoise      ! Noise Class Probability
      real*8        POTHPER     ! Other Periodic Variable Class Probability
      real*8        PRRab       ! RR Lyrae ab Type Class Probability
      real*8        Anomaly     ! Anomaly Score for Object

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table5.dat'	! Data Features, Campaigns 0-4, Warwick lightcurves

      integer*4 nr__1
      parameter (nr__1=68910)	! Number of records
      character*136 ar__1  	! Full-size record

      integer*4     ID_1        ! EPIC ID
      integer*4     Campaign_1  ! [0/4] K2 Campaign when observed
      integer*4     SOMIndex    ! Location on Self-Organising-Map
      real*8        Per1        ! (d) Dominant Lomb Scargle Period
      real*8        Per2        ! (d) Second Lomb Scargle Period
      real*8        Per3        ! (d) Third Lomb Scargle Period
      real*8        SOMDist     ! Distance to closest SOM pixel
      real*8        php2pmean   ! Mean point-to-point scatter in phase
      real*8        php2pmax    ! Max point-to-point scatter in phase
      real*8        Amplitude   ! Max-Min of phase curve
      real*8        Ampratio21  ! Period 2 to period amplitude ratio
      real*8        Ampratio31  ! Period 3 to period amplitude ratio
      real*8        p2pmean     ! Mean point-to-point scatter
      real*8        p2p98perc   ! 98th percentile of point-to-point scatter
      real*8        stdoverr    ! Flux standard deviation over mean error

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table6.dat'	! Catalogue, Campaigns 3-4, PDC lightcurves

      integer*4 nr__2
      parameter (nr__2=29591)	! Number of records
      character*90 ar__2  	! Full-size record

      integer*4     ID_2        ! EPIC ID
      integer*4     Campaign_2  ! [0/4] K2 Campaign when observed
      character*6   Class_1     ! Variability Class with Maximum Probability
      real*8        PDSCUT_1    ! Delta Scuti Class Probability
      real*8        PEA_1       ! Detached Eclipsing Binary Class Probability
      real*8        PEB_1       ! Non-Detached Eclipsing Binary Class Probability
      real*8        PGDOR_1     ! Gamma Doradus Class Probability
      real*8        PNoise_1    ! Noise Class Probability
      real*8        POTHPER_1   ! Other Periodic Variable Class Probability
      real*8        PRRab_1     ! RR Lyrae ab Type Class Probability
      real*8        Anomaly_1   ! Anomaly Score for Object

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table7.dat'	! Data Features, Campaigns 3-4, PDC lightcurves

      integer*4 nr__3
      parameter (nr__3=29591)	! Number of records
      character*136 ar__3  	! Full-size record

      integer*4     ID_3        ! EPIC ID
      integer*4     Campaign_3  ! [0/4] K2 Campaign when observed
      integer*4     SOMIndex_1  ! Location on Self-Organising-Map
      real*8        Per1_1      ! (d) Dominant Lomb Scargle Period
      real*8        Per2_1      ! (d) Second Lomb Scargle Period
      real*8        Per3_1      ! (d) Third Lomb Scargle Period
      real*8        SOMDist_1   ! Distance to closest SOM pixel
      real*8        php2pmean_1 ! Mean point-to-point scatter in phase
      real*8        php2pmax_1  ! Max point-to-point scatter in phase
      real*8        Amplitude_1 ! Max-Min of phase curve
      real*8        Ampratio21_1 ! Period 2 to period amplitude ratio
      real*8        Ampratio31_1 ! Period 3 to period amplitude ratio
      real*8        p2pmean_1   ! Mean point-to-point scatter
      real*8        p2p98perc_1 ! 98th percentile of point-to-point scatter
      real*8        stdoverr_1  ! Flux standard deviation over mean error

C=============================================================================

C  Loading file 'table4.dat'	! Catalogue, Campaigns 0-4, Warwick lightcurves

C  Format for file interpretation

    1 format(
     +  I9,1X,I1,1X,A6,1X,F8.6,1X,F8.6,1X,F8.6,1X,F8.6,1X,F8.6,1X,
     +  F8.6,1X,F8.6,1X,F8.6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,68910
        read(1,'(A90)')ar__
        read(ar__,1)
     +  ID,Campaign,Class,PDSCUT,PEA,PEB,PGDOR,PNoise,POTHPER,PRRab,
     +  Anomaly
c    ..............Just test output...........
        write(6,1)
     +  ID,Campaign,Class,PDSCUT,PEA,PEB,PGDOR,PNoise,POTHPER,PRRab,
     +  Anomaly
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'table5.dat'	! Data Features, Campaigns 0-4, Warwick lightcurves

C  Format for file interpretation

    2 format(
     +  I9,1X,I1,1X,I4,1X,F9.6,1X,F9.6,1X,F9.6,1X,F8.6,1X,F8.6,1X,
     +  F8.6,1X,F9.6,1X,F8.6,1X,F8.6,1X,F9.6,1X,F10.6,1X,F13.6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,68910
        read(1,'(A136)')ar__1
        read(ar__1,2)
     +  ID_1,Campaign_1,SOMIndex,Per1,Per2,Per3,SOMDist,php2pmean,
     +  php2pmax,Amplitude,Ampratio21,Ampratio31,p2pmean,p2p98perc,
     +  stdoverr
c    ..............Just test output...........
        write(6,2)
     +  ID_1,Campaign_1,SOMIndex,Per1,Per2,Per3,SOMDist,php2pmean,
     +  php2pmax,Amplitude,Ampratio21,Ampratio31,p2pmean,p2p98perc,
     +  stdoverr
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'table6.dat'	! Catalogue, Campaigns 3-4, PDC lightcurves

C  Format for file interpretation

    3 format(
     +  I9,1X,I1,1X,A6,1X,F8.6,1X,F8.6,1X,F8.6,1X,F8.6,1X,F8.6,1X,
     +  F8.6,1X,F8.6,1X,F8.6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,29591
        read(1,'(A90)')ar__2
        read(ar__2,3)
     +  ID_2,Campaign_2,Class_1,PDSCUT_1,PEA_1,PEB_1,PGDOR_1,PNoise_1,
     +  POTHPER_1,PRRab_1,Anomaly_1
c    ..............Just test output...........
        write(6,3)
     +  ID_2,Campaign_2,Class_1,PDSCUT_1,PEA_1,PEB_1,PGDOR_1,PNoise_1,
     +  POTHPER_1,PRRab_1,Anomaly_1
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'table7.dat'	! Data Features, Campaigns 3-4, PDC lightcurves

C  Format for file interpretation

    4 format(
     +  I9,1X,I1,1X,I4,1X,F9.6,1X,F9.6,1X,F9.6,1X,F8.6,1X,F8.6,1X,
     +  F8.6,1X,F9.6,1X,F8.6,1X,F8.6,1X,F9.6,1X,F10.6,1X,F13.6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,29591
        read(1,'(A136)')ar__3
        read(ar__3,4)
     +  ID_3,Campaign_3,SOMIndex_1,Per1_1,Per2_1,Per3_1,SOMDist_1,
     +  php2pmean_1,php2pmax_1,Amplitude_1,Ampratio21_1,Ampratio31_1,
     +  p2pmean_1,p2p98perc_1,stdoverr_1
c    ..............Just test output...........
        write(6,4)
     +  ID_3,Campaign_3,SOMIndex_1,Per1_1,Per2_1,Per3_1,SOMDist_1,
     +  php2pmean_1,php2pmax_1,Amplitude_1,Ampratio21_1,Ampratio31_1,
     +  p2pmean_1,p2p98perc_1,stdoverr_1
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================
      stop
      end