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 loading all data files into arrays.

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         (nr__) ! EPIC ID
      integer*4     Campaign   (nr__) ! [0/4] K2 Campaign when observed
      character*6   Class      (nr__) ! Variability Class with Maximum Probability
      real*8        PDSCUT     (nr__) ! Delta Scuti Class Probability
      real*8        PEA        (nr__) ! Detached Eclipsing Binary Class Probability
      real*8        PEB        (nr__) ! Non-Detached Eclipsing Binary Class Probability
      real*8        PGDOR      (nr__) ! Gamma Doradus Class Probability
      real*8        PNoise     (nr__) ! Noise Class Probability
      real*8        POTHPER    (nr__) ! Other Periodic Variable Class Probability
      real*8        PRRab      (nr__) ! RR Lyrae ab Type Class Probability
      real*8        Anomaly    (nr__) ! 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       (nr__1) ! EPIC ID
      integer*4     Campaign_1 (nr__1) ! [0/4] K2 Campaign when observed
      integer*4     SOMIndex   (nr__1) ! Location on Self-Organising-Map
      real*8        Per1       (nr__1) ! (d) Dominant Lomb Scargle Period
      real*8        Per2       (nr__1) ! (d) Second Lomb Scargle Period
      real*8        Per3       (nr__1) ! (d) Third Lomb Scargle Period
      real*8        SOMDist    (nr__1) ! Distance to closest SOM pixel
      real*8        php2pmean  (nr__1) ! Mean point-to-point scatter in phase
      real*8        php2pmax   (nr__1) ! Max point-to-point scatter in phase
      real*8        Amplitude  (nr__1) ! Max-Min of phase curve
      real*8        Ampratio21 (nr__1) ! Period 2 to period amplitude ratio
      real*8        Ampratio31 (nr__1) ! Period 3 to period amplitude ratio
      real*8        p2pmean    (nr__1) ! Mean point-to-point scatter
      real*8        p2p98perc  (nr__1) ! 98th percentile of point-to-point scatter
      real*8        stdoverr   (nr__1) ! 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       (nr__2) ! EPIC ID
      integer*4     Campaign_2 (nr__2) ! [0/4] K2 Campaign when observed
      character*6   Class_1    (nr__2) ! Variability Class with Maximum Probability
      real*8        PDSCUT_1   (nr__2) ! Delta Scuti Class Probability
      real*8        PEA_1      (nr__2) ! Detached Eclipsing Binary Class Probability
      real*8        PEB_1      (nr__2) ! Non-Detached Eclipsing Binary Class Probability
      real*8        PGDOR_1    (nr__2) ! Gamma Doradus Class Probability
      real*8        PNoise_1   (nr__2) ! Noise Class Probability
      real*8        POTHPER_1  (nr__2) ! Other Periodic Variable Class Probability
      real*8        PRRab_1    (nr__2) ! RR Lyrae ab Type Class Probability
      real*8        Anomaly_1  (nr__2) ! 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       (nr__3) ! EPIC ID
      integer*4     Campaign_3 (nr__3) ! [0/4] K2 Campaign when observed
      integer*4     SOMIndex_1 (nr__3) ! Location on Self-Organising-Map
      real*8        Per1_1     (nr__3) ! (d) Dominant Lomb Scargle Period
      real*8        Per2_1     (nr__3) ! (d) Second Lomb Scargle Period
      real*8        Per3_1     (nr__3) ! (d) Third Lomb Scargle Period
      real*8        SOMDist_1  (nr__3) ! Distance to closest SOM pixel
      real*8        php2pmean_1(nr__3) ! Mean point-to-point scatter in phase
      real*8        php2pmax_1 (nr__3) ! Max point-to-point scatter in phase
      real*8        Amplitude_1(nr__3) ! Max-Min of phase curve
      real*8        Ampratio21_1(nr__3) ! Period 2 to period amplitude ratio
      real*8        Ampratio31_1(nr__3) ! Period 3 to period amplitude ratio
      real*8        p2pmean_1  (nr__3) ! Mean point-to-point scatter
      real*8        p2p98perc_1(nr__3) ! 98th percentile of point-to-point scatter
      real*8        stdoverr_1 (nr__3) ! 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(i__),Campaign(i__),Class(i__),PDSCUT(i__),PEA(i__),
     +  PEB(i__),PGDOR(i__),PNoise(i__),POTHPER(i__),PRRab(i__),
     +  Anomaly(i__)
c    ..............Just test output...........
        write(6,1)
     +  ID(i__),Campaign(i__),Class(i__),PDSCUT(i__),PEA(i__),
     +  PEB(i__),PGDOR(i__),PNoise(i__),POTHPER(i__),PRRab(i__),
     +  Anomaly(i__)
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(i__),Campaign_1(i__),SOMIndex(i__),Per1(i__),Per2(i__),
     +  Per3(i__),SOMDist(i__),php2pmean(i__),php2pmax(i__),
     +  Amplitude(i__),Ampratio21(i__),Ampratio31(i__),p2pmean(i__),
     +  p2p98perc(i__),stdoverr(i__)
c    ..............Just test output...........
        write(6,2)
     +  ID_1(i__),Campaign_1(i__),SOMIndex(i__),Per1(i__),Per2(i__),
     +  Per3(i__),SOMDist(i__),php2pmean(i__),php2pmax(i__),
     +  Amplitude(i__),Ampratio21(i__),Ampratio31(i__),p2pmean(i__),
     +  p2p98perc(i__),stdoverr(i__)
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(i__),Campaign_2(i__),Class_1(i__),PDSCUT_1(i__),
     +  PEA_1(i__),PEB_1(i__),PGDOR_1(i__),PNoise_1(i__),
     +  POTHPER_1(i__),PRRab_1(i__),Anomaly_1(i__)
c    ..............Just test output...........
        write(6,3)
     +  ID_2(i__),Campaign_2(i__),Class_1(i__),PDSCUT_1(i__),
     +  PEA_1(i__),PEB_1(i__),PGDOR_1(i__),PNoise_1(i__),
     +  POTHPER_1(i__),PRRab_1(i__),Anomaly_1(i__)
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(i__),Campaign_3(i__),SOMIndex_1(i__),Per1_1(i__),
     +  Per2_1(i__),Per3_1(i__),SOMDist_1(i__),php2pmean_1(i__),
     +  php2pmax_1(i__),Amplitude_1(i__),Ampratio21_1(i__),
     +  Ampratio31_1(i__),p2pmean_1(i__),p2p98perc_1(i__),
     +  stdoverr_1(i__)
c    ..............Just test output...........
        write(6,4)
     +  ID_3(i__),Campaign_3(i__),SOMIndex_1(i__),Per1_1(i__),
     +  Per2_1(i__),Per3_1(i__),SOMDist_1(i__),php2pmean_1(i__),
     +  php2pmax_1(i__),Amplitude_1(i__),Ampratio21_1(i__),
     +  Ampratio31_1(i__),p2pmean_1(i__),p2p98perc_1(i__),
     +  stdoverr_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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