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

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/464/953 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-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/953       Abundances of red giants in NGC 6441        (Gratton+, 2007)
*================================================================================
*Na-O anticorrelation and horizontal branches.
*V. The Na-O anticorrelation in NGC 6441 from Giraffe spectra.
*    Gratton R.G., LucatelloS., Bragaglia A., Carretta E.,  Cassisi S.,
*    Momany Y., Pancino E., Valenti E., Caloi V., Claudi R., D'Antona F.,
*    Desidera S., Francois P., James G., Moehler S., Ortolani S., Pasquini L.,
*    Piotto G., Recio-Blanco A.
*   <Astron. Astrophys. 464, 953 (2007)>
*   =2007A&A...464..953G
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Photometry and spectroscopic data for stars
                              observed with Giraffe

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     Star        ! Sequential number of the star
      character*5   Gratings    ! [11+13 ] Grating(s) used
      real*8        RAdeg       ! (deg) Right ascension (J2000) in decimal degrees
      real*8        DEdeg       ! (deg) Declination  (J2000) in decimal degrees
      integer*4     Dist        ! (arcsec) Distance from the cluster center
      real*4        Vmag        ! (mag) Johnson V magnitude
      real*4        V_Ic        ! (mag) Johnson-Cousins V-Ic colour index
      real*4        V_K         ! (mag) ? Johnson V-K colour index
      real*4        RV          ! (km/s) Radial velocity
      integer*4     S_NHR11     ! ? HR11 signal-to-noise ratio
      integer*4     S_NHR13     ! ? HR13 signal-to-noise ratio
      real*4        e_EW        ! (0.1pm) rms uncertainty on equivalent width (m{AA})
      real*4        v_Fe_H_     ! ([Sun]) Metallicity

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

C  Declarations for 'table3.dat'	! Equivalent Widths from Giraffe spectra

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

      integer*4     Star_1      ! Sequential number of the star
      real*4        Ion         ! Element and ionisation stage, e.g. 26.1 = FeI
      real*8        Lambda      ! (0.1nm) Wavelength of the line
      real*4        EP          ! (eV) Potential energy
      real*4        loggf       ! Oscillator strength
      real*4        EW          ! (0.1pm) ? Equivalent width (m{AA})

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

C  Loading file 'table2.dat'	! Photometry and spectroscopic data for stars
*                              observed with Giraffe

C  Format for file interpretation

    1 format(
     +  I7,1X,A5,1X,F8.4,1X,F8.4,1X,I3,1X,F6.3,1X,F5.3,1X,F5.3,1X,
     +  F4.1,1X,I2,1X,I2,1X,F4.1,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,25
        read(1,'(A76)')ar__
        read(ar__,1)
     +  Star,Gratings,RAdeg,DEdeg,Dist,Vmag,V_Ic,V_K,RV,S_NHR11,
     +  S_NHR13,e_EW,v_Fe_H_
        if(ar__(50:54) .EQ. '') V_K = rNULL__
        if(ar__(61:62) .EQ. '') S_NHR11 = iNULL__
        if(ar__(64:65) .EQ. '') S_NHR13 = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  Star,Gratings,RAdeg,DEdeg,Dist,Vmag,V_Ic,V_K,RV,S_NHR11,
     +  S_NHR13,e_EW,v_Fe_H_
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Equivalent Widths from Giraffe spectra

C  Format for file interpretation

    2 format(I7,1X,F4.1,1X,F7.2,1X,F4.2,1X,F6.2,1X,F5.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,2375
        read(1,'(A38)')ar__1
        read(ar__1,2)Star_1,Ion,Lambda,EP,loggf,EW
        if(ar__1(34:38) .EQ. '') EW = rNULL__
c    ..............Just test output...........
        write(6,2)Star_1,Ion,Lambda,EP,loggf,EW
c    .......End.of.Just test output...........
      end do
      close(1)

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