FORTRAN Generation
(/./ftp/cats/J/MNRAS/513/420)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/513/420 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-May-19
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/513/420        NGTS Variability Study                   (Briegal+, 2022)
*================================================================================
*Periodic stellar variability from almost a million NGTS light curves.
*    Briegal J.T., Gillen E., Queloz D., Hodgkin S., Acton J.S., Anderson D.R.,
*    Armstrong D.J., Battley M.P., Bayliss D., Burleigh M.R., Bryant E.M.,
*    Casewell S.L., Costes J.C., Eigmuller P., Gill S., Goad M.R., Gunther M.N.,
*    Henderson B.A., Jackman J.A.G., Jenkins J.S., Kreutzer L.T., Lendl M.,
*    Smith G.D., Tilbrook R.H., Watson C.A., West R.G., Wheatley P.J.
*    <Mon. Not. R. Astron. Soc. 513, 420-438 (2022)>
*    =2022MNRAS.513..420B        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'ngtsrot.dat'	! Rotation periods and catalogue identifiers for
                                 16880 stars observed with NGTS

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

C  J2000 position composed of: RAdeg DEdeg
      character*18  NGTS        ! NGTS source designation (NGNNNN-NNNN-NNNN)
      real*8        RAdeg       ! (deg) NGTS source right ascension (J2000)
      real*8        DEdeg       ! (deg) NGTS source declination (J2000)
      real*8        Imag        ! (mag) NGTS I-band magnitude
      real*8        Per         ! (d) Extracted variability period
      real*8        Ampl        ! 5-95 percentile relative flux
      integer*8     GAIADR1     ! Cross-matched Gaia DR1 identifier
      integer*8     GAIADR2     ! Cross-matched Gaia DR2 identifier
      integer*8     TIC         ! ? Cross-matched Tess Input Catalogue (v8)
*                                   identifier
      character*16  v2MASS      ! Cross-matched 2MASS identifier
      character*19  WISE        ! Cross-matched WISE identifier
      character*10  UCAC4       ! Cross-matched UCAC4 identifier

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

C  Loading file 'ngtsrot.dat'	! Rotation periods and catalogue identifiers for
*                                 16880 stars observed with NGTS

C  Format for file interpretation

    1 format(
     +  A18,1X,F9.5,1X,F9.5,1X,F8.5,1X,F9.5,1X,F7.5,1X,I19,1X,I19,1X,
     +  I10,1X,A16,1X,A19,1X,A10)

C  Effective file loading

      open(unit=1,status='old',file=
     +'ngtsrot.dat')
      write(6,*) '....Loading file: ngtsrot.dat'
      do i__=1,16880
        read(1,'(A164)')ar__
        read(ar__,1)
     +  NGTS,RAdeg,DEdeg,Imag,Per,Ampl,GAIADR1,GAIADR2,TIC,v2MASS,
     +  WISE,UCAC4
        if(ar__(107:116) .EQ. '') TIC = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  NGTS,RAdeg,DEdeg,Imag,Per,Ampl,GAIADR1,GAIADR2,TIC,v2MASS,
     +  WISE,UCAC4
c    .......End.of.Just test output...........
      end do
      close(1)

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