FORTRAN Generation
(/./ftp/cats/J/ApJ/940/12)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/940/12 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-Sep-07
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/940/12  HeI{lambda}10830 in red giant stars with HET/HPF  (Sneden+, 2022)
*================================================================================
*The active chromospheres of lithium-rich red giant stars.
*    Sneden C., Afsar M., Bozkurt Z., Adamow M., Mallick A., Reddy B.E.,
*    Janowiecki S., Mahadevan S., Bowler B.P., Hawkins K., Lind K.,
*    Dupree A.K., Ninan J.P., Nagarajan N., Topcu G.B., Froning C.S.,
*    Bender C.F., Terrien R., Ramsey L.W., Mace G.N.
*   <Astrophys. J., 940, 12 (2022)>
*   =2022ApJ...940...12S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Program star data

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

      character*24  Name        ! Star name
      character*10  OName       ! Star indentifier in HD or BD catalog
      real*4        Vmag        ! (mag) [3.36/14.31]? SIMBAD Apparent V magnitude
      real*4        B_V         ! (mag) [0/1.86]? SIMBAD (B-V) color
      real*4        V_J         ! (mag) [0.48/3.55]? SIMBAD (V-J) color
      real*4        plx         ! (mas) [0.19/55] Gaia EDR3 parallax
      real*4        log_e_Li_   ! [-1.8/4.5]? Lithium abundance
      integer*4     r_log_e_Li_ ! [1/24] Literature source code (1)
      integer*4     EWHe        ! (0.1nm) [20/2434] Equivalent width of HeI 18030{AA}
*                                      line in Angstroms
      real*4        Broad       ! (km/s) [0.22/140] Line broadening (2)
*Note (1): Reference as follows:
*    1 = Bozkurt et al. 2022 (to be submitted)
*    2 = Adamow et al. 2014, J/A+A/569/A55
*    3 = Mott et al. (2017A&A...604A..44M)
*    4 = Kumar et al. (2011ApJ...730L..12K)
*    5 = Brown et al. (1989ApJS...71..293B)
*    6 = Wallerstein & Sneden (1982ApJ...255..577W)
*    7 = Adamow et al. (2015A&A...581A..94A)
*    8 = Balachandran et al. (2000ApJ...542..978B)
*    9 = Hanni (1984SvAL...10...51H)
*   10 = Deepak & Reddy 2019, J/MNRAS/484/2000
*   11 = Adamow et al. 2018, J/A+A/613/A47
*   12 = Luck (1982PASP...94..811L)
*   13 = Singh et al. (2019ApJ...878L..21S)
*   14 = Zhou et al. (2018A&A...615A..74Z)
*   15 = Reddy & Lambert (2016A&A...589A..57R)
*   16 = de Laverny et al. (2003A&A...410..937D)
*   17 = Yan et al. (2018NatAs...2..790Y)
*   18 = Singh et al. (2019MNRAS.482.3822S)
*   19 = Singh et al. (2021ApJ...913L...4S)
*   20 = Bizyaev et al. 2010, J/AJ/140/1911
*   21 = Carlberg et al. 2012, J/ApJ/757/109
*   22 = Costa et al. (2015ApJ...807L..21C)
*   23 = Yan et al. (2021NatAs...5...86Y)
*   24 = Nagarajan et al. 2023, J/AJ/165/245
*Note (2): If Broad<1km/s, then it is the Gaussian FWHM;
*          otherwised it is the rotational vsin(i) value.

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

C  Loading file 'table1.dat'	! Program star data

C  Format for file interpretation

    1 format(
     +  A24,1X,A10,1X,F5.2,1X,F4.2,1X,F4.2,1X,F6.3,1X,F4.1,1X,I2,1X,
     +  I4,1X,F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,278
        read(1,'(A78)')ar__
        read(ar__,1)
     +  Name,OName,Vmag,B_V,V_J,plx,log_e_Li_,r_log_e_Li_,EWHe,Broad
        if(ar__(37:41) .EQ. '') Vmag = rNULL__
        if(ar__(43:46) .EQ. '') B_V = rNULL__
        if(ar__(48:51) .EQ. '') V_J = rNULL__
        if(ar__(60:63) .EQ. '') log_e_Li_ = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name,OName,Vmag,B_V,V_J,plx,log_e_Li_,r_log_e_Li_,EWHe,Broad
c    .......End.of.Just test output...........
      end do
      close(1)

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