FORTRAN Generation
(/./ftp/cats/J/A_A/464/939)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/464/939 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-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/A+A/464/939       Abundances of red giants in NGC 6218       (Carretta+, 2007)
*================================================================================
*Na-O Anticorrelation and HB. IV. Detection of He-rich and He-poor stellar
*populations in the globular cluster NGC 6218.
*    Carretta E., Bragaglia A., Gratton R.G., Catanzaro G., Leone F., Sabbi E.,
*    Cassisi S., Claudi R., D'Antona F., Francois P., James G., Piotto G.
*   <Astron. Astrophys. 464, 939 (2007)>
*   =2007A&A...464..939C
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Identification, equatorial coordinates,
                              BVJK magnitudes, heliocentric radial velocity

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

C  J2000.0 position composed of: RAdeg DEdeg
      integer*4     Seq        (nr__) ! [1/92] Sequential number
      integer*4     ID         (nr__) ! Identification number
*                                  (Sabbi et al., 2006, in prep.)
      real*8        RAdeg      (nr__) ! (deg) Right ascension (J2000.0)
      real*8        DEdeg      (nr__) ! (deg) Declination (J2000.0)
      real*4        Bmag       (nr__) ! (mag) Johnson B magnitude
      real*4        Vmag       (nr__) ! (mag) Johnson V magnitude
      real*4        Jmag       (nr__) ! (mag) 2MASS J magnitude
      real*4        Kmag       (nr__) ! (mag) 2MASS K magnitude
      real*4        RV11       (nr__) ! (km/s) ? Heliocentric radial velocity for grating HR11
      real*4        RV13       (nr__) ! (km/s) ? Heliocentric radial velocity for grating HR13
      character*9   HR         (nr__) ! [HR11,HR13 ] Grating(s) used
      character*1   Flag       (nr__) ! [*] *: stars not used in analysis
      character*3   Mem        (nr__) ! [NM? ] Non member (NM) or doubtful member (NM?)

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

C  Declarations for 'table3.dat'	! Atmospheric parameters and iron abundance

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

      integer*4     ID_1       (nr__1) ! Identification number
*                                   (Sabbi et al., 2006, in prep.)
      integer*4     Teff       (nr__1) ! (K) Effective temperature
      real*4        logg       (nr__1) ! ([cm/s2]) Gravity
      real*4        v_A_H_     (nr__1) ! ([Sun]) Metallicity
      real*4        Vt         (nr__1) ! (km/s) Microturbulent velocity
      integer*4     o_FeI      (nr__1) ! Number of lines of Fe I
      real*4        v_Fe_H_I   (nr__1) ! ([Sun]) Average star [Fe/H]I
      real*4        e__Fe_H_I  (nr__1) ! ([Sun]) rms uncertainty on [Fe/H]I
      integer*4     o_FeII     (nr__1) ! ? Number of lines of Fe II
      real*4        v_Fe_H_II  (nr__1) ! ([Sun]) ? Average star [Fe/H]II
      real*4        e__Fe_H_II (nr__1) ! ([Sun]) ? rms uncertainty on [Fe/H]II

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

C  Declarations for 'table5.dat'	! O and Na abundances

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

      integer*4     ID_2       (nr__2) ! Identification number
*                                   (Sabbi et al., 2006, in prep.)
      integer*4     o_O        (nr__2) ! ? Number of lines of O
      real*4        v_O_Fe_    (nr__2) ! ([Sun]) ? Average [O/Fe]
      real*4        e__O_Fe_   (nr__2) ! ([Sun]) ? rms uncertainty on [O/Fe]
      integer*4     o_Na       (nr__2) ! ? Number of lines of Na
      real*4        v_Na_Fe_   (nr__2) ! ([Sun]) ? Average [Na/Fe]
      real*4        e__Na_Fe_  (nr__2) ! ([Sun]) ? rms uncertainty on [Na/Fe]
      integer*4     gr         (nr__2) ! [1/3]? Grating used (1)
      integer*4     l_O        (nr__2) ! [0/1]? Flag for measure/limit for O (2)
*Note (1): Flags for grating as follows:
*      1 = HR13 only
*      2 = both HR11 & HR13
*      3 = only HR11
*Note (2): Flags for measure/limit for O as follows:
*      0 = O upper limit
*      1 = O measured

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

C  Declarations for 'tablea.dat'	! Equivalent widths for 79 objects

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

      integer*4     ID_3       (nr__3) ! Identification number
*                                   (Sabbi et al., 2006, in prep.)
      real*8        lambda     (nr__3) ! (0.1nm) Wavelength
      real*4        EP         (nr__3) ! (eV) Excitation potential
      real*4        loggf      (nr__3) ! ([cm/s2]) Surface gravity
      real*4        EW         (nr__3) ! (0.1pm) Equivalent width
*Note (1): NN.1 for neutral, NN.2 for singly ionized

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

C  Loading file 'table2.dat'	! Identification, equatorial coordinates,
*                              BVJK magnitudes, heliocentric radial velocity

C  Format for file interpretation

    1 format(
     +  1X,I2,1X,I6,1X,F11.7,1X,F10.7,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,
     +  1X,F6.2,1X,F6.2,1X,A9,1X,A1,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,92
        read(1,'(A91)')ar__
        read(ar__,1)
     +  Seq(i__),ID(i__),RAdeg(i__),DEdeg(i__),Bmag(i__),Vmag(i__),
     +  Jmag(i__),Kmag(i__),RV11(i__),RV13(i__),HR(i__),Flag(i__),
     +  Mem(i__)
        if(ar__(63:68) .EQ. '') RV11(i__) = rNULL__
        if(ar__(70:75) .EQ. '') RV13(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Seq(i__),ID(i__),RAdeg(i__),DEdeg(i__),Bmag(i__),Vmag(i__),
     +  Jmag(i__),Kmag(i__),RV11(i__),RV13(i__),HR(i__),Flag(i__),
     +  Mem(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Atmospheric parameters and iron abundance

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,79
        read(1,'(A56)')ar__1
        read(ar__1,2)
     +  ID_1(i__),Teff(i__),logg(i__),v_A_H_(i__),Vt(i__),o_FeI(i__),
     +  v_Fe_H_I(i__),e__Fe_H_I(i__),o_FeII(i__),v_Fe_H_II(i__),
     +  e__Fe_H_II(i__)
        if(ar__1(44:44) .EQ. '') o_FeII(i__) = iNULL__
        if(ar__1(46:50) .EQ. '') v_Fe_H_II(i__) = rNULL__
        if(ar__1(52:56) .EQ. '') e__Fe_H_II(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  ID_1(i__),Teff(i__),logg(i__),v_A_H_(i__),Vt(i__),o_FeI(i__),
     +  v_Fe_H_I(i__),e__Fe_H_I(i__),o_FeII(i__),v_Fe_H_II(i__),
     +  e__Fe_H_II(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! O and Na abundances

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,79
        read(1,'(A37)')ar__2
        read(ar__2,3)
     +  ID_2(i__),o_O(i__),v_O_Fe_(i__),e__O_Fe_(i__),o_Na(i__),
     +  v_Na_Fe_(i__),e__Na_Fe_(i__),gr(i__),l_O(i__)
        if(ar__2(8:8) .EQ. '') o_O(i__) = iNULL__
        if(ar__2(10:14) .EQ. '') v_O_Fe_(i__) = rNULL__
        if(ar__2(16:19) .EQ. '') e__O_Fe_(i__) = rNULL__
        if(ar__2(22:22) .EQ. '') o_Na(i__) = iNULL__
        if(ar__2(24:28) .EQ. '') v_Na_Fe_(i__) = rNULL__
        if(ar__2(30:33) .EQ. '') e__Na_Fe_(i__) = rNULL__
        if(ar__2(35:35) .EQ. '') gr(i__) = iNULL__
        if(ar__2(37:37) .EQ. '') l_O(i__) = iNULL__
c    ..............Just test output...........
        write(6,3)
     +  ID_2(i__),o_O(i__),v_O_Fe_(i__),e__O_Fe_(i__),o_Na(i__),
     +  v_Na_Fe_(i__),e__Na_Fe_(i__),gr(i__),l_O(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tablea.dat'	! Equivalent widths for 79 objects

C  Format for file interpretation

    4 format(I6,6X,F7.2,1X,F4.2,1X,F6.2,1X,F5.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea.dat')
      write(6,*) '....Loading file: tablea.dat'
      do i__=1,4819
        read(1,'(A37)')ar__3
        read(ar__3,4)ID_3(i__),lambda(i__),EP(i__),loggf(i__),EW(i__)
c    ..............Just test output...........
        write(6,4)ID_3(i__),lambda(i__),EP(i__),loggf(i__),EW(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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