FORTRAN Generation
(/./ftp/cats/J/ApJ/928/134)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/928/134 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/ApJ/928/134   NIR phot. & optical veiling in T Tauri stars   (Sullivan+, 2022)
*================================================================================
*Optical and near-infrared excesses are correlated in T Tauri stars.
*    Sullivan K., Kraus A.L.
*   <Astrophys. J., 928, 134 (2022)>
*   =2022ApJ...928..134S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! System parameters for each source

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

      character*15  Name        ! Object identifier
      character*23  OName       ! The 2MASS or SIMBAD identifier
      integer*4     Dist        ! (pc) [49/301] Distance (Gaia EDR3 inverted parallax)
      character*1   f_Dist      ! [c] Flag on Dist (1)
      real*4        Veil        ! [0.0/0.57] Veiling (2)
      real*4        Av          ! (mag) [-0.25/9.3] V band extinction (2)
      character*1   f_Av        ! [ab] Flag on Av (3)
      character*1   Disk        ! Disk flag; (Y)es or (N)o
      character*7   Binary      ! Binary flag(s) (4)
      real*4        Jmag        ! (mag) [5.9/13.81] Apparent 2MASS J band Vega magnitude
      real*4        Hmag        ! (mag) [5/12.7] Apparent 2MASS H band Vega magnitude
      real*4        Ksmag       ! (mag) [4.2/12.3] Apparent 2MASS Ks band Vega magnitude
      real*4        W1mag       ! (mag) [3.29/12] WISE 3.4 micron band Vega magnitude
      real*4        W2mag       ! (mag) [1.6/11.5] WISE 4.6 micron band Vega magnitude
*Note (1): Flag on distance as follows:
*    c = System did not have a Gaia distance measurement, so the
*        Herczeg & Hillenbrand (2014, J/ApJ/786/97) distance
*        measurement was used.
*Note (2): From HH14 (Herczeg & Hillenbrand 2014, J/ApJ/786/97)
*Note (3): Flag on Av as follows:
*    a = Av measurement from Herczeg & Hillenbrand 2014, J/ApJ/786/97 may be
*        incorrect or require R_V_{=/=}3.1, and system was removed from analysis.
*    b = System has an anomalous SED and was removed from analysis.
*Note (4): Binary flag as follows:
*    1 = Kraus et al. (2011, J/ApJ/731/8);
*    2 = Daemgen et al. (2015, J/ApJ/799/155);
*    3 = Kraus & Hillenbrand (2012, J/ApJ/745/19);
*    4 = Schaefer et al. (2014AJ....147..157S).

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

C  Loading file 'table1.dat'	! System parameters for each source

C  Format for file interpretation

    1 format(
     +  A15,1X,A23,1X,I3,1X,A1,1X,F4.2,1X,F5.2,1X,A1,1X,A1,1X,A7,3X,
     +  F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,163
        read(1,'(A100)')ar__
        read(ar__,1)
     +  Name,OName,Dist,f_Dist,Veil,Av,f_Av,Disk,Binary,Jmag,Hmag,
     +  Ksmag,W1mag,W2mag
c    ..............Just test output...........
        write(6,1)
     +  Name,OName,Dist,f_Dist,Veil,Av,f_Av,Disk,Binary,Jmag,Hmag,
     +  Ksmag,W1mag,W2mag
c    .......End.of.Just test output...........
      end do
      close(1)

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