FORTRAN Generation
(/./ftp/cats/J/AJ/131/431)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/131/431 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 2024-Apr-20
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/AJ/131/431          Abundances of Galactic G dwarfs            (Brewer+, 2006)
*================================================================================
*A comparison of the chemical evolutionary histories of the galactic thin disk
*and thick disk stellar populations.
*    Brewer M.-M, Carney B.W.
*   <Astron. J. 131, 431 (2006)>
*   =2006AJ....131..431B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Radial velocities

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

      character*11  Name       (nr__) ! Name
      integer*4     Nobs       (nr__) ! Number of observations
      integer*4     Span       (nr__) ! (d) Span of observations
      real*4        RV         (nr__) ! (km/s) Mean radial velocity
      real*4        e_RV       (nr__) ! (km/s) Error in RV
      real*4        eERV       (nr__) ! (km/s) External error E of mean velocity (1)
      real*4        eIRV       (nr__) ! (km/s) Internal error I of mean velocity (2)
      real*4        eERV_eIRV  (nr__) ! Ratio E/I (3)
      real*8        P_chi2     (nr__) ! Probability of constant RV
      character*1   n_P_chi2   (nr__) ! Note on P(chi2) (4)
*Note (1): External error derived from the individual velocities.
*Note (2): Internal error estimated from the ratio of the height of the
*          peak in the power spectrum to the mean noise level.
*Note (3): Values above 1.5 generally indicate velocity variability.
*Note (4): Note on P(chi2), defined as follows:
*    a = A single-lined spectroscopic binary, with P=1402days.
*    b = A possible single-lined spectroscopic binary, with an undetermined
*        orbital period.
*    c = A single-lined spectroscopic binary, with P=742days.
*    d = A double-lined spectroscopic binary, with P=23.58days.
*    e = A single-lined spectroscopic binary, with an undetermined but long
*        orbital period.

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

C  Declarations for 'table2.dat'	! Photometric data

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

      character*11  Name_1     (nr__1) ! Object name
      integer*4     HD         (nr__1) ! HD name
      real*4        VmagL      (nr__1) ! (mag) Literature V magnitude
      real*4        b_y        (nr__1) ! (mag) b-y color index
      real*4        m1         (nr__1) ! (mag) Stroemgren m1 index
      real*4        c1         (nr__1) ! (mag) Stroemgren c1 index
      real*4        beta       (nr__1) ! (mag) ? Stroemgren {beta} index
      real*4        Kmag       (nr__1) ! (mag) 2MASS K magnitude
      real*4        J_K        (nr__1) ! (mag) 2MASS J-K color index
      real*4        V_K        (nr__1) ! (mag) V-K color index

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

C  Declarations for 'table3.dat'	! Photometric temperatures and kinematics

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

      character*11  Name_2     (nr__2) ! Object name
      real*4        v_Fe_H_    (nr__2) ! ([Sun]) Photometric metallicity estimate
      integer*4     T_b_y      (nr__2) ! (K) Effective temperature derived from b-y
      integer*4     T_V_K      (nr__2) ! (K) Effective temperature derived from V-K
      integer*4     Uvel       (nr__2) ! (km/s) U space velocity
      integer*4     Vvel       (nr__2) ! (km/s) V space velocity
      integer*4     Wvel       (nr__2) ! (km/s) W space velocity
      real*4        thin       (nr__2) ! (%) Thin disk membership probability
      real*4        thick      (nr__2) ! (%) Thick disk membership probability

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

C  Declarations for 'table5.dat'	! Observational data

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

C  J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg      (nr__3) ! (deg) Right Ascension J2000.0
      real*8        DEdeg      (nr__3) ! (deg)     Declination J2000.0
C  ---------------------------------- ! (position vector(s) in degrees)

      character*11  Name_3     (nr__3) ! Object name
      integer*4     RAh        (nr__3) ! (h) Hour of Right Ascension (J2000.0)
      integer*4     RAm        (nr__3) ! (min) Minute of Right Ascension (J2000.0)
      real*4        RAs        (nr__3) ! (s) Second of Right Ascension (J2000.0)
      character*1   DE_        (nr__3) ! Sign of the Declination (J2000.0)
      integer*4     DEd        (nr__3) ! (deg) Degree of Declination (J2000.0)
      integer*4     DEm        (nr__3) ! (arcmin) Arcminute of Declination (J2000.0)
      real*4        DEs        (nr__3) ! (arcsec) Arcsecond of Declination (J2000.0)
      real*4        Vmag       (nr__3) ! (mag) Observed V magnitude
      character*7   RDate      (nr__3) ! ("YYYY/MM") Red exposure date
      integer*4     RExp       (nr__3) ! (min) Red exposure time
      integer*4     RS_N       (nr__3) ! Red signal-to-noise ratio (1)
      character*7   BDate      (nr__3) ! ("YYYY/MM") Blue exposure date
      integer*4     BExp       (nr__3) ! (min) Blue exposure time
      integer*4     BS_N       (nr__3) ! Blue signal to noise ratio (1)
      character*7   BDate2     (nr__3) ! ("YYYY/MM") Second blue exposure date
      integer*4     BExp2      (nr__3) ! (min) ? Second blue exposure time
      integer*4     BS_N2      (nr__3) ! ? Second blue signal to noise ratio (1)
*Note (1): The S/N level cited is per resolution element. A spectroscopic
*          resolution element covers 2 pixels. In the red, the reference
*          wavelength is 6645{AA}, and in the blue it is 4130{AA}.

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

C  Declarations for 'table6.dat'	! Atmospheric parameters

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

      character*11  Name_4     (nr__4) ! Object name
      integer*4     Teff       (nr__4) ! (K) Effective temperature
      real*4        v_M_H_     (nr__4) ! ([Sun]) Metallicity
      real*4        Vturb      (nr__4) ! (km/s) Microturbulent velocity
      real*4        log_g      (nr__4) ! ([cm/s2]) Surface gravity
      real*4        v_FeI_H_   (nr__4) ! ([Sun]) Derived FeI abundance
      integer*4     N1         (nr__4) ! Number of absorption lines
      real*4        e__FeI_H_  (nr__4) ! ([Sun]) Error in [FeI/H] (1)
      real*4        v_FeII_H_  (nr__4) ! ([Sun]) Derived FeII abundance
      integer*4     N2         (nr__4) ! Number of abundance lines
      real*4        e__FeII_H_ (nr__4) ! ([Sun]) Error in [FeII/H] (1)
*Note (1): Standard deviation of the abundances from individual absorption lines
*          from the mean abundance.

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

C  Declarations for 'table10.dat'	! Abundances - Thin disk stars

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

      character*11  Name_5     (nr__5) ! Object name
      character*9   Element    (nr__5) ! Element
      real*4        Abundance  (nr__5) ! ([Sun]) Abundance value
      real*4        e_Abundance(nr__5) ! ([Sun]) ? The 1{sigma} error in Abundance
      integer*4     o_Abundance(nr__5) ! ? Number of lines used to derive Name

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

C  Declarations for 'table11.dat'	! Abundances - Thick disk stars

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

      character*11  Name_6     (nr__6) ! Object name
      character*9   Element_1  (nr__6) ! Element
      real*4        Abundance_1(nr__6) ! ([Sun]) Abundance value
      real*4        e_Abundance_1(nr__6) ! ([Sun]) ? The 1{sigma} error in Abundance
      integer*4     o_Abundance_1(nr__6) ! ? Number of lines used to derive Name

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

C  Loading file 'table1.dat'	! Radial velocities

C  Format for file interpretation

    1 format(
     +  A11,1X,I2,1X,I4,1X,F5.1,1X,F3.1,1X,F4.1,1X,F3.1,1X,F4.1,1X,
     +  F8.6,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,23
        read(1,'(A53)')ar__
        read(ar__,1)
     +  Name(i__),Nobs(i__),Span(i__),RV(i__),e_RV(i__),eERV(i__),
     +  eIRV(i__),eERV_eIRV(i__),P_chi2(i__),n_P_chi2(i__)
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),Nobs(i__),Span(i__),RV(i__),e_RV(i__),eERV(i__),
     +  eIRV(i__),eERV_eIRV(i__),P_chi2(i__),n_P_chi2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Photometric data

C  Format for file interpretation

    2 format(
     +  A11,1X,I6,1X,F4.2,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F4.2,1X,
     +  F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,23
        read(1,'(A62)')ar__1
        read(ar__1,2)
     +  Name_1(i__),HD(i__),VmagL(i__),b_y(i__),m1(i__),c1(i__),
     +  beta(i__),Kmag(i__),J_K(i__),V_K(i__)
        if(ar__1(43:47) .EQ. '') beta(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Name_1(i__),HD(i__),VmagL(i__),b_y(i__),m1(i__),c1(i__),
     +  beta(i__),Kmag(i__),J_K(i__),V_K(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Photometric temperatures and kinematics

C  Format for file interpretation

    3 format(
     +  A11,1X,F5.2,1X,I4,1X,I4,1X,I3,1X,I3,1X,I3,1X,F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,23
        read(1,'(A49)')ar__2
        read(ar__2,3)
     +  Name_2(i__),v_Fe_H_(i__),T_b_y(i__),T_V_K(i__),Uvel(i__),
     +  Vvel(i__),Wvel(i__),thin(i__),thick(i__)
c    ..............Just test output...........
        write(6,3)
     +  Name_2(i__),v_Fe_H_(i__),T_b_y(i__),T_V_K(i__),Uvel(i__),
     +  Vvel(i__),Wvel(i__),thin(i__),thick(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Observational data

C  Format for file interpretation

    4 format(
     +  A11,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F4.2,1X,A7,
     +  1X,I2,1X,I3,1X,A7,1X,I2,1X,I3,1X,A7,1X,I2,1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,23
        read(1,'(A85)')ar__3
        read(ar__3,4)
     +  Name_3(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Vmag(i__),RDate(i__),RExp(i__),RS_N(i__),
     +  BDate(i__),BExp(i__),BS_N(i__),BDate2(i__),BExp2(i__),
     +  BS_N2(i__)
        if(ar__3(80:81) .EQ. '') BExp2(i__) = iNULL__
        if(ar__3(83:85) .EQ. '') BS_N2(i__) = iNULL__
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,4)
     +  Name_3(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Vmag(i__),RDate(i__),RExp(i__),RS_N(i__),
     +  BDate(i__),BExp(i__),BS_N(i__),BDate2(i__),BExp2(i__),
     +  BS_N2(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Atmospheric parameters

C  Format for file interpretation

    5 format(
     +  A11,1X,I4,1X,F4.1,1X,F4.2,1X,F4.2,1X,F6.3,1X,I3,1X,F5.3,1X,
     +  F6.3,1X,I2,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,23
        read(1,'(A64)')ar__4
        read(ar__4,5)
     +  Name_4(i__),Teff(i__),v_M_H_(i__),Vturb(i__),log_g(i__),
     +  v_FeI_H_(i__),N1(i__),e__FeI_H_(i__),v_FeII_H_(i__),N2(i__),
     +  e__FeII_H_(i__)
c    ..............Just test output...........
        write(6,5)
     +  Name_4(i__),Teff(i__),v_M_H_(i__),Vturb(i__),log_g(i__),
     +  v_FeI_H_(i__),N1(i__),e__FeI_H_(i__),v_FeII_H_(i__),N2(i__),
     +  e__FeII_H_(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table10.dat'	! Abundances - Thin disk stars

C  Format for file interpretation

    6 format(A11,1X,A9,1X,F6.3,1X,F5.3,1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table10.dat')
      write(6,*) '....Loading file: table10.dat'
      do i__=1,241
        read(1,'(A38)')ar__5
        read(ar__5,6)
     +  Name_5(i__),Element(i__),Abundance(i__),e_Abundance(i__),
     +  o_Abundance(i__)
        if(ar__5(30:34) .EQ. '') e_Abundance(i__) = rNULL__
        if(ar__5(36:38) .EQ. '') o_Abundance(i__) = iNULL__
c    ..............Just test output...........
        write(6,6)
     +  Name_5(i__),Element(i__),Abundance(i__),e_Abundance(i__),
     +  o_Abundance(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table11.dat'	! Abundances - Thick disk stars

C  Format for file interpretation

    7 format(A11,1X,A9,1X,F6.3,1X,F5.3,1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table11.dat')
      write(6,*) '....Loading file: table11.dat'
      do i__=1,370
        read(1,'(A38)')ar__6
        read(ar__6,7)
     +  Name_6(i__),Element_1(i__),Abundance_1(i__),
     +  e_Abundance_1(i__),o_Abundance_1(i__)
        if(ar__6(30:34) .EQ. '') e_Abundance_1(i__) = rNULL__
        if(ar__6(36:38) .EQ. '') o_Abundance_1(i__) = iNULL__
c    ..............Just test output...........
        write(6,7)
     +  Name_6(i__),Element_1(i__),Abundance_1(i__),
     +  e_Abundance_1(i__),o_Abundance_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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