FORTRAN Generation
(/./ftp/cats/J/ApJS/240/16)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJS/240/16 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-Apr-13
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/ApJS/240/16   Exoplanets in the Antarctic sky. I. AST3-II DR1   (Zhang+, 2019)
*================================================================================
*Exoplanets in the Antarctic sky.
*I. The first data release of AST3-II (CHESPA) and new found variables within
*the Southern CVZ of TESS.
*    Zhang H., Yu Z., Liang E., Yang M., Ashley M.C.B., Cui X., Du F., Fu J.,
*    Gong X., Gu B., Hu Yi, Jiang P., Liu H., Lawrence J., Liu Q., Li X., Li Z.,
*    Ma B., Mould J., Shang Z., Suntzeff N.B., Tao C., Tian Q., Tinney C.G.,
*    Uddin S.A., Wang L., Wang S., Wang X., Wei P., Wright D., Wu X.,
*    Wittenmyer R.A., Xu L., Yang S.-H., Yu Ce, Yuan X., Zheng J., Zhou H.,
*    Zhou J.-L., Zhu Z.
*   <Astrophys. J. Suppl. Ser., 240, 16 (2019)>
*   =2019ApJS..240...16Z
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table4.dat'	! Variables from AST3-II observation in 2016

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        RAdeg      (nr__) ! (deg) Target right ascension (J2000)
      real*8        DEdeg      (nr__) ! (deg) Target declination (J2000)
      real*4        imag       (nr__) ! (mag) [7.5/15.1] APASS/Sloan i-band AB magnitude
      integer*4     TIC        (nr__) ! [41172665/453079732]? TESS Input Catalog ID (1)
      real*4        Tmag       (nr__) ! (mag) [6.6/14.7]? TESS magnitude (1)
      real*8        R_tic      (nr__) ! (Rsun) [0.4/17]? stellar radii, TESS input catalog (1)
      real*4        M_tic      (nr__) ! (Msun) [0.4/2.2]? stellar mass, TESS Input Catalog (1)
      integer*4     Flag       (nr__) ! [0/1] CTL flag (1=target is also selected in
*                                the target list of Stassun+ 2018, J/AJ/156/102)
      character*28  AAVSO      (nr__) ! AAVSO names (2)
      real*8        PerA       (nr__) ! (d) [0.09/5.6]? Period, from AAVSO (2)
      character*16  TypeA      (nr__) ! Type, from AAVSO (2)(3)
      real*8        Per        (nr__) ! (d) [0.04/6.2] Period, from AST3-II
      character*7   Type       (nr__) ! Type, from AST3-II (3)
*Note (1): TESS IDs, TESS magnitudes, stellar radii and stellar masses
*           from the TIC (Stassun+ 2018, J/AJ/156/102).
*Note (2): Names, periods, and type designations from the AAVSO database
*           http://www.aavso.org/vsx/ (see also B/vsx).
*Note (3): Variable-star type designations following VSX:
*  ACV  = {alpha}^2^ Canum Venaticorum variables.
*  CEP  = Cepheids.
*  CWB  = W Virginis variables with periods shorter than 8 days; also known
*          as BL Herculis variables.
*  DSCT = variables of the {delta} Scuti type (those with amplitudes larger
*          than 0.15mag and asymmetric light curves are designated
*          High Amplitude {delta} Scuti star (HADS)).
*  EA (ED)  = Algol eclipsing systems.
*  EB (ESD) = {beta} Lyrae-type eclipsing systems.
*  EW (EC)  = W Ursae Majoris-type eclipsing variables.
*  ROT  = spotted stars that were not classified into a particular class.
*  RR (RRAB/RRC) = variables of the RR Lyrae type.
*  RS   = RS Canum Venaticorum-type binary systems.
*  YSO  = young stellar object of unspecified variable type
*          See http://www.aavso.org/vsx/index.php?view=about.vartypes

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

C  Declarations for 'dr1lcs.dat'	! AST3-II DR1 detrended light curves list;
                               table added by CDS

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

C  J2000 position composed of: RAdeg DEdeg
      character*7   Field      (nr__1) ! AST3-II field (Tess004 to Tess013)
      real*4        imag_1     (nr__1) ! (mag) [7/15] i-band AB magnitude in APASS database
      real*8        RAdeg_1    (nr__1) ! (deg) [90.3/117.8] Target right ascension (J2000)
      real*8        DEdeg_1    (nr__1) ! (deg) [-74.5/-68.5] Target declination (J2000)
      character*41  FileName   (nr__1) ! File name in subdirectories
*                                lightcurves/detrended/Field

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

C  Loading file 'table4.dat'	! Variables from AST3-II observation in 2016

C  Format for file interpretation

    1 format(
     +  6X,F8.4,F8.4,1X,F5.2,1X,I9,1X,F5.2,1X,F7.4,1X,F6.4,1X,I1,1X,
     +  A28,1X,F7.5,1X,A16,1X,F7.5,1X,A7)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,221
        read(1,'(A131)')ar__
        read(ar__,1)
     +  RAdeg(i__),DEdeg(i__),imag(i__),TIC(i__),Tmag(i__),R_tic(i__),
     +  M_tic(i__),Flag(i__),AAVSO(i__),PerA(i__),TypeA(i__),Per(i__),
     +  Type(i__)
        if(ar__(30:38) .EQ. '') TIC(i__) = iNULL__
        if(ar__(40:44) .EQ. '') Tmag(i__) = rNULL__
        if(ar__(46:52) .EQ. '') R_tic(i__) = rNULL__
        if(ar__(54:59) .EQ. '') M_tic(i__) = rNULL__
        if(ar__(92:98) .EQ. '') PerA(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  RAdeg(i__),DEdeg(i__),imag(i__),TIC(i__),Tmag(i__),R_tic(i__),
     +  M_tic(i__),Flag(i__),AAVSO(i__),PerA(i__),TypeA(i__),Per(i__),
     +  Type(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'dr1lcs.dat'	! AST3-II DR1 detrended light curves list;
*                               table added by CDS

C  Format for file interpretation

    2 format(A7,1X,F5.2,1X,F8.4,F8.4,1X,A41)

C  Effective file loading

      open(unit=1,status='old',file=
     +'dr1lcs.dat')
      write(6,*) '....Loading file: dr1lcs.dat'
      do i__=1,27798
        read(1,'(A72)')ar__1
        read(ar__1,2)
     +  Field(i__),imag_1(i__),RAdeg_1(i__),DEdeg_1(i__),FileName(i__)
c    ..............Just test output...........
        write(6,2)
     +  Field(i__),imag_1(i__),RAdeg_1(i__),DEdeg_1(i__),FileName(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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