FORTRAN Generation
(/./ftp/cats/J/A_A/421/937)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/421/937 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-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/A+A/421/937       Metal abundances of LMC RR Lyrae           (Gratton+, 2004)
*================================================================================
*Metal abundances of RR Lyrae stars in the bar of the Large Magellanic Cloud.
*    Gratton, R.G., Bragaglia, A., Clementini, G., Carretta, E., Di Fabrizio, L.,
*    Maio, M., Taribello, E.
*   <Astron. Astrophys. 421, 937 (2004)>
*   =2004A&A...421..937G
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table7.dat'	! Line indices and metal abundances

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

      character*8   Star        ! Star designation
      character*3   VType       ! Variable type (1)
      real*4        Vmag        ! (mag) ? Mean apparent V magnitude
      real*4        V0mag       ! (mag) ? Mean dereddened V magnitude
      real*8        HJD         ! (d) Heliocentric Julian day
      real*4        K           ! (0.1nm) K index (2)
      real*4        Hdelta      ! (0.1nm) H{delta} index
      real*4        Hgamma      ! (0.1nm) H{gamma} index
      real*4        Hbeta       ! (0.1nm) H{beta} index
      real*4        v_H_        ! (0.1nm) Average H index (2)
      real*4        MI          ! ? Metallicity Index
      real*4        v_Fe_H_     ! ([Sun]) Metallicity [Fe/H] from individual observations
      real*4        e__Fe_H_    ! ([Sun]) Error in [Fe/H] from individual observations
      real*4        v_Fe_H_a    ! ([Sun]) ? Average [Fe/H]
      real*4        e__Fe_H_a   ! ([Sun]) ? Error in average [Fe/H]
      integer*4     Note        ! [0/4]?  Notes (3)
*Note (1): Variable type:
*           ab = ab-type RR Lyrae
*            c = c-type RR Lyrae
*            d = d-type RR Lyrae
*          SPC = short period Cepheid
*Note (2): Indices:
*           K is a measure of the strength of the Ca II K line.
*           <H> is essentially a measure of the strength of the hydrogen lines.
*           K and <H> are function of the temperature T, gravity g, and metal
*            abundance [Fe/H].
*           MI = (K-K1)/(K2-K1), where
*               K1=0.3093-1.2815<H>+1.3043H^2^ and K2=0.6432-2.6043<H>+3.0820H^2^
*Note (3): Notes:
*           0 = None
*           1 = Blazhko
*           2 = Shift
*           3 = Incomplete
*           4 = Blend

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

C  Loading file 'table7.dat'	! Line indices and metal abundances

C  Format for file interpretation

    1 format(
     +  A8,1X,A3,1X,F6.3,1X,F6.3,2X,F12.4,2X,F5.3,2X,F5.3,1X,F6.3,2X,
     +  F5.3,2X,F5.3,1X,F6.3,2X,F5.2,1X,F5.2,2X,F5.2,1X,F5.2,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,164
        read(1,'(A110)')ar__
        read(ar__,1)
     +  Star,VType,Vmag,V0mag,HJD,K,Hdelta,Hgamma,Hbeta,v_H_,MI,
     +  v_Fe_H_,e__Fe_H_,v_Fe_H_a,e__Fe_H_a,Note
        if(ar__(14:19) .EQ. '') Vmag = rNULL__
        if(ar__(21:26) .EQ. '') V0mag = rNULL__
        if(ar__(77:82) .EQ. '') MI = rNULL__
        if(ar__(98:102) .EQ. '') v_Fe_H_a = rNULL__
        if(ar__(104:108) .EQ. '') e__Fe_H_a = rNULL__
        if(ar__(110:110) .EQ. '') Note = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  Star,VType,Vmag,V0mag,HJD,K,Hdelta,Hgamma,Hbeta,v_H_,MI,
     +  v_Fe_H_,e__Fe_H_,v_Fe_H_a,e__Fe_H_a,Note
c    .......End.of.Just test output...........
      end do
      close(1)

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