FORTRAN Generation
(/./ftp/cats/J/A_A/580/A24)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/580/A24 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-Jun-09
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/A+A/580/A24     Abundances in dwarfs, subgiants, and giants  (da Silva+, 2015)
*================================================================================
*Homogeneous abundance analysis of FGK dwarf, subgiant, and giant stars with and
*without giant planets.
*    da Silva R., Milone A.C., Rocha-Pinto H.J.
*   <Astron. Astrophys. 580, A24 (2015)>
*   =2015A&A...580A..24D
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table4.dat'	! Photospheric parameters and [X/Fe] abundances

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

      character*10  Name        ! HD, BD, or HIP stellar number
      character*8   SpType      ! Spectral type
      real*4        Vbroad      ! (km/s) [0/15] Broadening velocity
      integer*4     Teff        ! (K) [4169/6503] Star's effective temperature
      integer*4     e_Teff      ! (K) [21/163] Error in star's effective temperature
      real*4        logg        ! [1/5] Star's surface gravity
      real*4        e_logg      ! [0.1/0.6] Error in the star's surface gravity
      real*4        xi          ! (km/s) [0.03/5.6] Star's microturbulent velocity {xi}
      real*4        e_xi        ! (km/s) [[0.03/3] Error in microturbulent velocity
      real*4        v_Fe_H_     ! ([Sun]) Abundance ratio [Fe/H]
      real*4        e__Fe_H_    ! ([Sun]) Error in [Fe/H]
      real*4        v_C_Fe_     ! ([Sun]) ? Abundance ratio [C/Fe]
      real*4        e__C_Fe_    ! ([Sun]) ? Error in [C/Fe]
      real*4        v_N_Fe_     ! ([Sun]) ? Abundance ratio [N/Fe]
      real*4        e__N_Fe_    ! ([Sun]) ? Error in [N/Fe]
      real*4        v_O_Fe_     ! ([Sun]) ? Abundance ratio [O/Fe]
      real*4        e__O_Fe_    ! ([Sun]) ? Error in [O/Fe]
      real*4        v_Na_Fe_    ! ([Sun]) ? Abundance ratio [Na/Fe]
      real*4        e__Na_Fe_   ! ([Sun]) ? Error in [Na/Fe]
      real*4        v_Mg_Fe_    ! ([Sun]) ? Abundance ratio [Mg/Fe]
      real*4        e__Mg_Fe_   ! ([Sun]) ? Error in [Mg/Fe]
      real*4        v_Si_Fe_    ! ([Sun]) ? Abundance ratio [Si/Fe]
      real*4        e__Si_Fe_   ! ([Sun]) ? Error in [Si/Fe]
      real*4        v_Ca_Fe_    ! ([Sun]) ? Abundance ratio [Ca/Fe]
      real*4        e__Ca_Fe_   ! ([Sun]) ? Error in [Ca/Fe]
      real*4        v_Ti_Fe_    ! ([Sun]) ? Abundance ratio [Ti/Fe]
      real*4        e__Ti_Fe_   ! ([Sun]) ? Error in [Ti/Fe]
      real*4        v_V_Fe_     ! ([Sun]) ? Abundance ratio [V/Fe]
      real*4        e__V_Fe_    ! ([Sun]) ? Error in [V/Fe]
      real*4        v_Mn_Fe_    ! ([Sun]) ? Abundance ratio [Mn/Fe]
      real*4        e__Mn_Fe_   ! ([Sun]) ? Error in [Mn/Fe]
      real*4        v_Ni_Fe_    ! ([Sun]) ? Abundance ratio [Ni/Fe]
      real*4        e__Ni_Fe_   ! ([Sun]) ? Error in [Ni/Fe]
      real*4        v_Cu_Fe_    ! ([Sun]) ? Abundance ratio [Cu/Fe]
      real*4        e__Cu_Fe_   ! ([Sun]) ? Error in [Cu/Fe]
* J234-238  F5.2 [Sun]    [Ba/Fe]   ? Abundance ratio [Ba/Fe]
      real*4        e__Ba_Fe_   ! ([Sun]) ? Error in [Ba/Fe]
      character*8   Class       ! ([Sun]) Spectral luinosity classification: dwarf,
*                                    giant or subgiant

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

C  Declarations for 'table7.dat'	! Photometric and evolutionary parameters together
                               with the population membership

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

      character*10  Name_1      ! HD, BD, or HIP stellar number
      real*4        B_V         ! (mag) [0.47/1.3] B-V color index
      real*4        VMag        ! (mag) [-0.71/7.7] Absolute magnitude at the V band
      real*4        Dist        ! (pc) [3/100] Heliocentric distance
      real*4        BC          ! [-0.9/0.02] Bolometric correction
      real*4        logL        ! ([Lsun]) [-1/2.3] Logarithmic luminosity
      real*4        e_logL      ! ([Lsun]) [0.005/0.09] Error in the logarithmic luminosity
      real*4        Mass        ! (Msun) [0.6/3.6]? Mass of the star
      real*4        e_Mass      ! (Msun) [0.01/9.99]? Error in the stellar mass
      real*4        Age         ! (Gyr) [0.1/32]? Age of the star
      real*4        e_Age       ! (Gyr) [0/12]? Lower error in the stellar age
      real*4        E_Age_1     ! (Gyr) [0/12]? Upper error in the stellar age
      character*10  Popul       ! Population membership (thin, thick or a
*                                  transition population thin/thick)
      character*8   Rem         ! Remarks on some special cases (1)
      character*3   Ref         ! References related to the special cases (2)
*Note (1): The special cases are:
*     a = errors in age are larger than 4Gyr (not used in the analysis)
*     b = star located outside the evolutionary tracks and isochrones used
*     c = star hosting at least one giant planet
*     d = member of a stellar moving group:
*         U: Ursa Major; P: Pleiades; H: Hyades; W: Wolf 630
*     e = subdwarf candidate
*Note (2): The references for some of the special cases are as follows:
*     1 = http://exoplanet.eu, for case c
*     2 = Montes et al. (2001MNRAS.328...45M), for cases d (U), d (P)
*     3 = Sandage & Fouts (1986AJ.....91.1140S), for case e
*     4 = Eggen (1950ApJ...111...65E), for case d (H)
*     5 = Bubar & King (2010AJ....140..293B), for case d (W)
*     6 = Madsen et al. (2002A&A...381..446M), for case d (H)
*     7 = Jao et al. (2009AJ....137.3800J), for case e

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

C  Declarations for 'table8.dat'	! Slopes of the linear regressions on [X/Fe] vs. Tc

      integer*4 nr__2
      parameter (nr__2=120)	! Number of records
      character*112 ar__2  	! Full-size record

      character*10  Name_2      ! HD, BD, or HIP stellar number
      real*8        slope0      ! Slope of the regressions before CCE (1)
      real*8        e_slope0    ! Error in the slopes
      real*4        r0          ! [-1/1] Correlation coefficient
      real*4        std0        ! [0.01/0.15] Standard deviation of regressions
      real*8        slope1      ! Slope of the regression after CCE, age-based (1)
      real*8        e_slope1    ! Error in the slopes
      real*4        r1          ! [-1/1] Correlation coefficient
      real*4        std1        ! [0.02/0.15] Standard deviation of regressions
      real*8        slope2      ! Slope of the regression after CCE,
*                                [Fe/H]-based (1)
      real*8        e_slope2    ! Error in the slopes
      real*4        r2          ! [-1/1] Correlation coefficient
      real*4        std2        ! [0.01/0.13] Standard deviation of regressions
*Note (1): CCE = correction for the Galactic chemical evolution effects;
*     the chemical correction is based on age or on metallicity ([Fe/H]).

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

C  Declarations for 'table2.dat'	! Atomic line parameters and solar EWs

      integer*4 nr__3
      parameter (nr__3=178)	! Number of records
      character*35 ar__3  	! Full-size record

      real*8        lambda0     ! (0.1nm) [4518/6753] Spectral line central wavelength
      character*4   Line        ! Atomic line identification
      real*4        chi         ! (eV) [0/5.7] Lower-level excitation potential {chi}
      real*4        loggf       ! ? Logarithmic statistical weight of the lower
*                                  level multiplied by the oscillator strength
      real*4        EW          ! (0.1pm) [5/122] Solar equivalent width (m{AA})

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

C  Declarations for 'table3.dat'	! Atomic parameters for lines with important
                               hyperfine structure

      integer*4 nr__4
      parameter (nr__4=109)	! Number of records
      character*31 ar__4  	! Full-size record

      character*4   Line_1      ! Atomic line identification
      real*8        lambda0_1   ! (0.1nm) [4571/6286] Spectral line central wavelength
      real*8        lambda      ! (0.1nm) [4571/6286] Hyperfine component wavelength
      real*4        loggf_1     ! Logarithmic statistical weight of the lower
*                                  level multiplied by the oscillator strength

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

C  Declarations for 'table5.dat'	! Atomic and molecular line parameters

      integer*4 nr__5
      parameter (nr__5=9183)	! Number of records
      character*43 ar__5  	! Full-size record

      real*8        lambda0_2   ! (0.1nm) [4200/6315] Spectral line central wavelength
      real*4        Line_2      ! Atomic and molecular line identification
      real*4        chi_1       ! (eV) [0/40] Excitation potential {chi}
      real*4        loggf_2     ! ([-]) Logarithmic statistical weight of the lower
*                                  level multiplied by the oscillator strength
      real*4        D0          ! (eV) ? Dissociation energy for molecular features

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

C  Declarations for 'table6.dat'	! Atomic parameters for strong atomic lines

      integer*4 nr__6
      parameter (nr__6=57)	! Number of records
      character*34 ar__6  	! Full-size record

      real*8        lambda0_3   ! (0.1nm) S[4200/6163] pectral line central wavelength
      real*4        Line_3      ! Atomic and molecular line identification
      real*4        chi_2       ! (eV) [0/4.5] Excitation potential {chi}
      real*4        loggf_3     ! ([-]) Logarithmic statistical weight of the lower
*                                   level multiplied by the oscillator strength

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

C  Loading file 'table4.dat'	! Photospheric parameters and [X/Fe] abundances

C  Format for file interpretation

    1 format(
     +  A10,2X,A8,2X,F5.2,2X,I4,2X,I3,2X,F4.2,2X,F4.2,2X,F4.2,2X,F4.2,
     +  2X,F5.2,2X,F4.2,2X,F5.2,2X,F4.2,2X,F5.2,2X,F4.2,2X,F5.2,2X,
     +  F4.2,2X,F5.2,2X,F4.2,2X,F5.2,2X,F4.2,2X,F5.2,2X,F4.2,2X,F5.2,
     +  2X,F4.2,2X,F5.2,2X,F4.2,2X,F5.2,2X,F4.2,2X,F5.2,2X,F4.2,2X,
     +  F5.2,2X,F4.2,2X,F5.2,2X,F4.2,9X,F4.2,2X,A8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,309
        read(1,'(A254)')ar__
        read(ar__,1)
     +  Name,SpType,Vbroad,Teff,e_Teff,logg,e_logg,xi,e_xi,v_Fe_H_,
     +  e__Fe_H_,v_C_Fe_,e__C_Fe_,v_N_Fe_,e__N_Fe_,v_O_Fe_,e__O_Fe_,
     +  v_Na_Fe_,e__Na_Fe_,v_Mg_Fe_,e__Mg_Fe_,v_Si_Fe_,e__Si_Fe_,
     +  v_Ca_Fe_,e__Ca_Fe_,v_Ti_Fe_,e__Ti_Fe_,v_V_Fe_,e__V_Fe_,
     +  v_Mn_Fe_,e__Mn_Fe_,v_Ni_Fe_,e__Ni_Fe_,v_Cu_Fe_,e__Cu_Fe_,
     +  e__Ba_Fe_,Class
        if(ar__(78:82) .EQ. '') v_C_Fe_ = rNULL__
        if(ar__(85:88) .EQ. '') e__C_Fe_ = rNULL__
        if(ar__(91:95) .EQ. '') v_N_Fe_ = rNULL__
        if(ar__(98:101) .EQ. '') e__N_Fe_ = rNULL__
        if(ar__(104:108) .EQ. '') v_O_Fe_ = rNULL__
        if(ar__(111:114) .EQ. '') e__O_Fe_ = rNULL__
        if(ar__(117:121) .EQ. '') v_Na_Fe_ = rNULL__
        if(ar__(124:127) .EQ. '') e__Na_Fe_ = rNULL__
        if(ar__(130:134) .EQ. '') v_Mg_Fe_ = rNULL__
        if(ar__(137:140) .EQ. '') e__Mg_Fe_ = rNULL__
        if(ar__(143:147) .EQ. '') v_Si_Fe_ = rNULL__
        if(ar__(150:153) .EQ. '') e__Si_Fe_ = rNULL__
        if(ar__(156:160) .EQ. '') v_Ca_Fe_ = rNULL__
        if(ar__(163:166) .EQ. '') e__Ca_Fe_ = rNULL__
        if(ar__(169:173) .EQ. '') v_Ti_Fe_ = rNULL__
        if(ar__(176:179) .EQ. '') e__Ti_Fe_ = rNULL__
        if(ar__(182:186) .EQ. '') v_V_Fe_ = rNULL__
        if(ar__(189:192) .EQ. '') e__V_Fe_ = rNULL__
        if(ar__(195:199) .EQ. '') v_Mn_Fe_ = rNULL__
        if(ar__(202:205) .EQ. '') e__Mn_Fe_ = rNULL__
        if(ar__(208:212) .EQ. '') v_Ni_Fe_ = rNULL__
        if(ar__(215:218) .EQ. '') e__Ni_Fe_ = rNULL__
        if(ar__(221:225) .EQ. '') v_Cu_Fe_ = rNULL__
        if(ar__(228:231) .EQ. '') e__Cu_Fe_ = rNULL__
        if(ar__(241:244) .EQ. '') e__Ba_Fe_ = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name,SpType,Vbroad,Teff,e_Teff,logg,e_logg,xi,e_xi,v_Fe_H_,
     +  e__Fe_H_,v_C_Fe_,e__C_Fe_,v_N_Fe_,e__N_Fe_,v_O_Fe_,e__O_Fe_,
     +  v_Na_Fe_,e__Na_Fe_,v_Mg_Fe_,e__Mg_Fe_,v_Si_Fe_,e__Si_Fe_,
     +  v_Ca_Fe_,e__Ca_Fe_,v_Ti_Fe_,e__Ti_Fe_,v_V_Fe_,e__V_Fe_,
     +  v_Mn_Fe_,e__Mn_Fe_,v_Ni_Fe_,e__Ni_Fe_,v_Cu_Fe_,e__Cu_Fe_,
     +  e__Ba_Fe_,Class
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! Photometric and evolutionary parameters together
*                               with the population membership

C  Format for file interpretation

    2 format(
     +  A10,2X,F5.3,2X,F5.2,2X,F5.1,2X,F6.3,2X,F6.3,2X,F5.3,2X,F4.2,
     +  2X,F4.2,2X,F4.1,2X,F4.1,2X,F4.1,2X,A10,2X,A8,2X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,309
        read(1,'(A111)')ar__1
        read(ar__1,2)
     +  Name_1,B_V,VMag,Dist,BC,logL,e_logL,Mass,e_Mass,Age,e_Age,
     +  E_Age_1,Popul,Rem,Ref
        if(ar__1(57:60) .EQ. '') Mass = rNULL__
        if(ar__1(63:66) .EQ. '') e_Mass = rNULL__
        if(ar__1(69:72) .EQ. '') Age = rNULL__
        if(ar__1(75:78) .EQ. '') e_Age = rNULL__
        if(ar__1(81:84) .EQ. '') E_Age_1 = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Name_1,B_V,VMag,Dist,BC,logL,e_logL,Mass,e_Mass,Age,e_Age,
     +  E_Age_1,Popul,Rem,Ref
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table8.dat'	! Slopes of the linear regressions on [X/Fe] vs. Tc

C  Format for file interpretation

    3 format(
     +  A10,2X,F9.6,2X,F8.6,2X,F5.2,2X,F4.2,2X,F9.6,2X,F8.6,2X,F5.2,
     +  2X,F4.2,2X,F9.6,2X,F8.6,2X,F5.2,2X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table8.dat')
      write(6,*) '....Loading file: table8.dat'
      do i__=1,120
        read(1,'(A112)')ar__2
        read(ar__2,3)
     +  Name_2,slope0,e_slope0,r0,std0,slope1,e_slope1,r1,std1,slope2,
     +  e_slope2,r2,std2
c    ..............Just test output...........
        write(6,3)
     +  Name_2,slope0,e_slope0,r0,std0,slope1,e_slope1,r1,std1,slope2,
     +  e_slope2,r2,std2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Atomic line parameters and solar EWs

C  Format for file interpretation

    4 format(F8.2,2X,A4,2X,F4.2,2X,F6.3,2X,F5.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,178
        read(1,'(A35)')ar__3
        read(ar__3,4)lambda0,Line,chi,loggf,EW
        if(ar__3(23:28) .EQ. '') loggf = rNULL__
c    ..............Just test output...........
        write(6,4)lambda0,Line,chi,loggf,EW
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Atomic parameters for lines with important
*                               hyperfine structure

C  Format for file interpretation

    5 format(A4,2X,F7.2,2X,F8.3,2X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,109
        read(1,'(A31)')ar__4
        read(ar__4,5)Line_1,lambda0_1,lambda,loggf_1
c    ..............Just test output...........
        write(6,5)Line_1,lambda0_1,lambda,loggf_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Atomic and molecular line parameters

C  Format for file interpretation

    6 format(F10.4,2X,F5.1,2X,F6.3,2X,E9.3,2X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,9183
        read(1,'(A43)')ar__5
        read(ar__5,6)lambda0_2,Line_2,chi_1,loggf_2,D0
        if(ar__5(39:43) .EQ. '') D0 = rNULL__
c    ..............Just test output...........
        write(6,6)lambda0_2,Line_2,chi_1,loggf_2,D0
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Atomic parameters for strong atomic lines

C  Format for file interpretation

    7 format(F10.4,2X,F4.1,2X,F5.3,2X,E9.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,57
        read(1,'(A34)')ar__6
        read(ar__6,7)lambda0_3,Line_3,chi_2,loggf_3
c    ..............Just test output...........
        write(6,7)lambda0_3,Line_3,chi_2,loggf_3
c    .......End.of.Just test output...........
      end do
      close(1)

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