FORTRAN Generation
(/./ftp/cats/J/A_A/538/A100)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/538/A100 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 2024-Mar-28
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/538/A100     Abundances red giants in Carina dSph      (Lemasle+, 2012)
*================================================================================
*VLT/FLAMES spectroscopy of red giant branch stars in the Carina dwarf
*spheroidal galaxy.
*    Lemasle B., Hill V., Tolstoy E., Venn K.A., Shetrone M.D., Irwin M.J.,
*    de Boer T.J.L., Starkenburg E., Salvadori S.
*   <Astron. Astrophys. 538, A100 (2012)>
*   =2012A&A...538A.100L
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! Photometric information for our FLAMES targets

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

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

      character*7   Name        ! Name MKVNNNN
      integer*4     RAh         ! (h) Right ascension (J2000)
      integer*4     RAm         ! (min) Right ascension (J2000)
      real*4        RAs         ! (s) Right ascension (J2000)
      character*1   DE_         ! Declination sign (J2000)
      integer*4     DEd         ! (deg) Declination (J2000)
      integer*4     DEm         ! (arcmin) Declination (J2000)
      real*4        DEs         ! (arcsec) Declination (J2000)
      real*4        Vmag        ! (mag) ESO-WFI V magnitude
      real*4        Imag        ! (mag) ESO-WFI I magnitude
      real*4        Jmag        ! (mag) ? ESO-SOFI J magnitude (1)
      real*4        Hmag        ! (mag) ? ESO-SOFI H magnitude (1)
      real*4        Kmag        ! (mag) ? ESO-SOFI K magnitude (1)
      real*4        HRV         ! (km/s) Heliocentric radial velocity (2)
      real*4        e_HRV       ! (km/s) rms uncertainty on HRV (2)
      character*10  Memb        ! Membership
*Note (1): From M. Gullieuszik (private communication)
*Note (2): our measured radial velocities

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

C  Declarations for 'table4.dat'	! List of all spectral lines, their atomic
                              parameters and their measured EWs for all the
                              35 RGB stars in the Carina dSph

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

      character*7   Name_1      ! Star name
      real*8        lambda      ! (0.1nm) Wavelength
      character*3   El          ! Element
      real*4        ExPot       ! (eV) Excitation potential
      real*4        loggf       ! ([-]) Oscillator strength
      integer*4     EW          ! (0.1pm) ?=- Equivalent width

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

C  Declarations for 'table7.dat'	! The abundances and errors of iron and
                              {alpha}-elements in our sample of RGB stars
                              in the Carina dSph

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

      character*7   Name_2      ! Star name
      real*4        v_Fe1_H_    ! ([-]) Abundance [FeI/H]
      real*4        e__Fe1_H_   ! ([-]) rms uncertainty on [FeI/H]
      integer*4     o__Fe1_H_   ! Number of line used for [FeI/H]
      real*4        v_Fe2_H_    ! ([-]) ?=- Abundance [FeII/H]
      real*4        e__Fe2_H_   ! ([-]) ?=- rms uncertainty on [FeII/H]
      integer*4     o__Fe2_H_   ! ?=- Number of line used for [FeII/H]
      real*4        v_Mg1_H_    ! ([-]) ?=- Abundance [MgI/H]
      real*4        e__Mg1_H_   ! ([-]) ?=- rms uncertainty on [MgI/H]
      integer*4     o__Mg1_H_   ! ?=- Number of line used for [MgI/H]
      real*4        v_Ca1_H_    ! ([-]) ?=- Abundance [CaI/H]
      real*4        e__Ca1_H_   ! ([-]) ?=- rms uncertainty on [CaI/H]
      integer*4     o__Ca1_H_   ! ?=- Number of line used for [CaI/H]
      real*4        v_Ti1_H_    ! ([-]) ?=- Abundance [TiI/H]
      real*4        e__Ti1_H_   ! ([-]) ?=- rms uncertainty on [TiI/H]
      integer*4     o__Ti1_H_   ! ?=- Number of line used for [TiI/H]
      real*4        v_Ti2_H_    ! ([-]) ?=- Abundance [TiII/H]
      real*4        e__Ti2_H_   ! ([-]) ?=- rms uncertainty on [TiII/H]
      integer*4     o__Ti2_H_   ! ?=- Number of line used for [TiII/H]

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

C  Declarations for 'table8.dat'	! The abundances and errors of iron-peak and
                              heavy elements in our sample of RGB stars
                              in the Carina dSph

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

      character*7   Name_3      ! Star name
      real*4        v_Fe1_H__1  ! ([-]) Abundance [FeI/H]
      real*4        e__Fe1_H__1 ! ([-]) rms uncertainty on [FeI/H]
      integer*4     o__Fe1_H__1 ! Number of line used for [FeI/H]
      real*4        v_Cr1_H_    ! ([-]) ?=- Abundance [CrI/H]
      real*4        e__Cr1_H_   ! ([-]) ?=- rms uncertainty on [CrI/H]
      integer*4     o__Cr1_H_   ! ?=- Number of line used for [CrI/H]
      real*4        v_Co1_H_    ! ([-]) ?=- Abundance [CoI/H]
      real*4        e__Co1_H_   ! ([-]) ?=- rms uncertainty on [CoI/H]
      integer*4     o__Co1_H_   ! ?=- Number of line used for [CoI/H]
      real*4        v_Ni1_H_    ! ([-]) ?=- Abundance [NiI/H]
      real*4        e__Ni1_H_   ! ([-]) ?=- rms uncertainty on [NiI/H]
      integer*4     o__Ni1_H_   ! ?=- Number of line used for [NiI/H]
      real*4        v_Ba2_H_    ! ([-]) ?=- Abundance [BaII/H]
      real*4        e__Ba2_H_   ! ([-]) ?=- rms uncertainty on [BaII/H]
      integer*4     o__Ba2_H_   ! ?=- Number of line used for [BaII/H]

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

C  Declarations for 'table9.dat'	! The abundances and errors for elements that
                              could be measured from single lines in only
                              a handful of stars

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

      character*7   Name_4      ! Star name
      real*4        v_Na1_H_    ! ([-]) ?=- Abundance [NaI/H]
      real*4        e__Na1_H_   ! ([-]) ?=- rms uncertainty on [NaI/H]
      integer*4     o__Na1_H_   ! ?=- Number of line used for [NaI/H]
      real*4        v_Si1_H_    ! ([-]) ?=- Abundance [SiI/H]
      real*4        e__Si1_H_   ! ([-]) ?=- rms uncertainty on [SiI/H]
      integer*4     o__Si1_H_   ! ?=- Number of line used for [SiI/H]
      real*4        v_Sc2_H_    ! ([-]) ?=- Abundance [ScII/H]
      real*4        e__Sc2_H_   ! ([-]) ?=- rms uncertainty on [ScII/H]
      integer*4     o__Sc2_H_   ! ?=- Number of line used for [ScII/H]
      real*4        v_Y2_H_     ! ([-]) ?=- Abundance [YII/H]
      real*4        e__Y2_H_    ! ([-]) ?=- rms uncertainty on [YII/H]
      integer*4     o__Y2_H_    ! ?=- Number of line used for [YII/H]
      real*4        v_La2_H_    ! ([-]) ?=- Abundance [LaII/H]
      real*4        e__La2_H_   ! ([-]) ?=- rms uncertainty on [LaII/H]
      integer*4     o__La2_H_   ! ?=- Number of line used for [LaII/H]
      real*4        v_Nd2_H_    ! ([-]) ?=- Abundance [NdII/H]
      real*4        e__Nd2_H_   ! ([-]) ?=- rms uncertainty on [NdII/H]
      integer*4     o__Nd2_H_   ! ?=- Number of line used for [NdII/H]
      real*4        v_Eu2_H_    ! ([-]) ?=- Abundance [EuII/H]
      real*4        e__Eu2_H_   ! ([-]) ?=- rms uncertainty on [EuII/H]
      integer*4     o__Eu2_H_   ! ?=- Number of line used for [EuII/H]

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

C  Loading file 'table3.dat'	! Photometric information for our FLAMES targets

C  Format for file interpretation

    1 format(
     +  A7,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,1X,F6.3,1X,F6.3,
     +  1X,F6.3,1X,F6.3,1X,F6.3,1X,F5.1,1X,F3.1,1X,A10)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,98
        read(1,'(A88)')ar__
        read(ar__,1)
     +  Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag,Imag,Jmag,Hmag,Kmag,HRV,
     +  e_HRV,Memb
        if(ar__(48:53) .EQ. '') Jmag = rNULL__
        if(ar__(55:60) .EQ. '') Hmag = rNULL__
        if(ar__(62:67) .EQ. '') Kmag = rNULL__
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag,Imag,Jmag,Hmag,Kmag,HRV,
     +  e_HRV,Memb
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! List of all spectral lines, their atomic
*                              parameters and their measured EWs for all the
*                              35 RGB stars in the Carina dSph

C  Format for file interpretation

    2 format(A7,1X,F7.2,1X,A3,1X,F5.3,1X,F6.3,1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,3360
        read(1,'(A36)')ar__1
        read(ar__1,2)Name_1,lambda,El,ExPot,loggf,EW
        if (EW .EQ. 45) EW =  iNULL__
c    ..............Just test output...........
        write(6,2)Name_1,lambda,El,ExPot,loggf,EW
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! The abundances and errors of iron and
*                              {alpha}-elements in our sample of RGB stars
*                              in the Carina dSph

C  Format for file interpretation

    3 format(
     +  A7,1X,F5.2,1X,F4.2,1X,I2,1X,F5.2,1X,F4.2,1X,I1,1X,F5.2,1X,
     +  F4.2,1X,I1,1X,F5.2,1X,F4.2,1X,I1,1X,F5.2,1X,F4.2,1X,I1,1X,
     +  F5.2,1X,F4.2,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,35
        read(1,'(A86)')ar__2
        read(ar__2,3)
     +  Name_2,v_Fe1_H_,e__Fe1_H_,o__Fe1_H_,v_Fe2_H_,e__Fe2_H_,
     +  o__Fe2_H_,v_Mg1_H_,e__Mg1_H_,o__Mg1_H_,v_Ca1_H_,e__Ca1_H_,
     +  o__Ca1_H_,v_Ti1_H_,e__Ti1_H_,o__Ti1_H_,v_Ti2_H_,e__Ti2_H_,
     +  o__Ti2_H_
        if (idig(ar__2(23:27)).EQ.0) v_Fe2_H_ =  rNULL__
        if (idig(ar__2(29:32)).EQ.0) e__Fe2_H_ =  rNULL__
        if (o__Fe2_H_ .EQ. 45) o__Fe2_H_ =  iNULL__
        if (idig(ar__2(36:40)).EQ.0) v_Mg1_H_ =  rNULL__
        if (idig(ar__2(42:45)).EQ.0) e__Mg1_H_ =  rNULL__
        if (o__Mg1_H_ .EQ. 45) o__Mg1_H_ =  iNULL__
        if (idig(ar__2(49:53)).EQ.0) v_Ca1_H_ =  rNULL__
        if (idig(ar__2(55:58)).EQ.0) e__Ca1_H_ =  rNULL__
        if (o__Ca1_H_ .EQ. 45) o__Ca1_H_ =  iNULL__
        if (idig(ar__2(62:66)).EQ.0) v_Ti1_H_ =  rNULL__
        if (idig(ar__2(68:71)).EQ.0) e__Ti1_H_ =  rNULL__
        if (o__Ti1_H_ .EQ. 45) o__Ti1_H_ =  iNULL__
        if (idig(ar__2(75:79)).EQ.0) v_Ti2_H_ =  rNULL__
        if (idig(ar__2(81:84)).EQ.0) e__Ti2_H_ =  rNULL__
        if (o__Ti2_H_ .EQ. 45) o__Ti2_H_ =  iNULL__
c    ..............Just test output...........
        write(6,3)
     +  Name_2,v_Fe1_H_,e__Fe1_H_,o__Fe1_H_,v_Fe2_H_,e__Fe2_H_,
     +  o__Fe2_H_,v_Mg1_H_,e__Mg1_H_,o__Mg1_H_,v_Ca1_H_,e__Ca1_H_,
     +  o__Ca1_H_,v_Ti1_H_,e__Ti1_H_,o__Ti1_H_,v_Ti2_H_,e__Ti2_H_,
     +  o__Ti2_H_
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table8.dat'	! The abundances and errors of iron-peak and
*                              heavy elements in our sample of RGB stars
*                              in the Carina dSph

C  Format for file interpretation

    4 format(
     +  A7,1X,F5.2,1X,F4.2,1X,I2,1X,F5.2,1X,F4.2,1X,I1,1X,F5.2,1X,
     +  F4.2,1X,I1,1X,F5.2,1X,F4.2,1X,I1,1X,F5.2,1X,F4.2,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table8.dat')
      write(6,*) '....Loading file: table8.dat'
      do i__=1,35
        read(1,'(A73)')ar__3
        read(ar__3,4)
     +  Name_3,v_Fe1_H__1,e__Fe1_H__1,o__Fe1_H__1,v_Cr1_H_,e__Cr1_H_,
     +  o__Cr1_H_,v_Co1_H_,e__Co1_H_,o__Co1_H_,v_Ni1_H_,e__Ni1_H_,
     +  o__Ni1_H_,v_Ba2_H_,e__Ba2_H_,o__Ba2_H_
        if (idig(ar__3(23:27)).EQ.0) v_Cr1_H_ =  rNULL__
        if (idig(ar__3(29:32)).EQ.0) e__Cr1_H_ =  rNULL__
        if (o__Cr1_H_ .EQ. 45) o__Cr1_H_ =  iNULL__
        if (idig(ar__3(36:40)).EQ.0) v_Co1_H_ =  rNULL__
        if (idig(ar__3(42:45)).EQ.0) e__Co1_H_ =  rNULL__
        if (o__Co1_H_ .EQ. 45) o__Co1_H_ =  iNULL__
        if (idig(ar__3(49:53)).EQ.0) v_Ni1_H_ =  rNULL__
        if (idig(ar__3(55:58)).EQ.0) e__Ni1_H_ =  rNULL__
        if (o__Ni1_H_ .EQ. 45) o__Ni1_H_ =  iNULL__
        if (idig(ar__3(62:66)).EQ.0) v_Ba2_H_ =  rNULL__
        if (idig(ar__3(68:71)).EQ.0) e__Ba2_H_ =  rNULL__
        if (o__Ba2_H_ .EQ. 45) o__Ba2_H_ =  iNULL__
c    ..............Just test output...........
        write(6,4)
     +  Name_3,v_Fe1_H__1,e__Fe1_H__1,o__Fe1_H__1,v_Cr1_H_,e__Cr1_H_,
     +  o__Cr1_H_,v_Co1_H_,e__Co1_H_,o__Co1_H_,v_Ni1_H_,e__Ni1_H_,
     +  o__Ni1_H_,v_Ba2_H_,e__Ba2_H_,o__Ba2_H_
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table9.dat'	! The abundances and errors for elements that
*                              could be measured from single lines in only
*                              a handful of stars

C  Format for file interpretation

    5 format(
     +  A7,1X,F5.2,1X,F4.2,1X,I1,1X,F5.2,1X,F4.2,1X,I1,1X,F5.2,1X,
     +  F4.2,1X,I1,1X,F5.2,1X,F4.2,1X,I1,1X,F5.2,1X,F4.2,1X,I1,1X,
     +  F5.2,1X,F4.2,1X,I1,1X,F5.2,1X,F4.2,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table9.dat')
      write(6,*) '....Loading file: table9.dat'
      do i__=1,8
        read(1,'(A98)')ar__4
        read(ar__4,5)
     +  Name_4,v_Na1_H_,e__Na1_H_,o__Na1_H_,v_Si1_H_,e__Si1_H_,
     +  o__Si1_H_,v_Sc2_H_,e__Sc2_H_,o__Sc2_H_,v_Y2_H_,e__Y2_H_,
     +  o__Y2_H_,v_La2_H_,e__La2_H_,o__La2_H_,v_Nd2_H_,e__Nd2_H_,
     +  o__Nd2_H_,v_Eu2_H_,e__Eu2_H_,o__Eu2_H_
        if (idig(ar__4(9:13)).EQ.0) v_Na1_H_ =  rNULL__
        if (idig(ar__4(15:18)).EQ.0) e__Na1_H_ =  rNULL__
        if (o__Na1_H_ .EQ. 45) o__Na1_H_ =  iNULL__
        if (idig(ar__4(22:26)).EQ.0) v_Si1_H_ =  rNULL__
        if (idig(ar__4(28:31)).EQ.0) e__Si1_H_ =  rNULL__
        if (o__Si1_H_ .EQ. 45) o__Si1_H_ =  iNULL__
        if (idig(ar__4(35:39)).EQ.0) v_Sc2_H_ =  rNULL__
        if (idig(ar__4(41:44)).EQ.0) e__Sc2_H_ =  rNULL__
        if (o__Sc2_H_ .EQ. 45) o__Sc2_H_ =  iNULL__
        if (idig(ar__4(48:52)).EQ.0) v_Y2_H_ =  rNULL__
        if (idig(ar__4(54:57)).EQ.0) e__Y2_H_ =  rNULL__
        if (o__Y2_H_ .EQ. 45) o__Y2_H_ =  iNULL__
        if (idig(ar__4(61:65)).EQ.0) v_La2_H_ =  rNULL__
        if (idig(ar__4(67:70)).EQ.0) e__La2_H_ =  rNULL__
        if (o__La2_H_ .EQ. 45) o__La2_H_ =  iNULL__
        if (idig(ar__4(74:78)).EQ.0) v_Nd2_H_ =  rNULL__
        if (idig(ar__4(80:83)).EQ.0) e__Nd2_H_ =  rNULL__
        if (o__Nd2_H_ .EQ. 45) o__Nd2_H_ =  iNULL__
        if (idig(ar__4(87:91)).EQ.0) v_Eu2_H_ =  rNULL__
        if (idig(ar__4(93:96)).EQ.0) e__Eu2_H_ =  rNULL__
        if (o__Eu2_H_ .EQ. 45) o__Eu2_H_ =  iNULL__
c    ..............Just test output...........
        write(6,5)
     +  Name_4,v_Na1_H_,e__Na1_H_,o__Na1_H_,v_Si1_H_,e__Si1_H_,
     +  o__Si1_H_,v_Sc2_H_,e__Sc2_H_,o__Sc2_H_,v_Y2_H_,e__Y2_H_,
     +  o__Y2_H_,v_La2_H_,e__La2_H_,o__La2_H_,v_Nd2_H_,e__Nd2_H_,
     +  o__Nd2_H_,v_Eu2_H_,e__Eu2_H_,o__Eu2_H_
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end