FORTRAN Generation
(/./ftp/cats/J/AJ/118/1245)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/118/1245 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-16
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/118/1245   Elemental abundances in five stars in M54  (Brown+, 1999)
*================================================================================
*Elemental abundances in five stars in M54, a globular cluster associated
*with the Sagittarius galaxy
*    Brown J.A., Wallerstein G., Gonzalez G.
*   <Astron. J. 118, 1245 (1999)>
*   =1999AJ....118.1245B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Line data for the Ibata stars

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

      character*6   Ion         ! Ion name
      real*4        Abd         ! Log Ion's solar number abundance (H=12)
      real*8        Wave        ! (0.1nm) Wavelength of Ion
      real*4        ExPot       ! (eV) Excitation potential
      real*4        log_gf      ! Log of the oscillator strength
      real*4        EqWI1       ! (10-4nm) ? Equivalent width for star Ibata 1 (in m{AA})
      character*1   f_EqWI1     ! [a] Flag on EqWI1 (1)
      character*4   n_EqWI1     ! Special limit on EqWI1 ({<=} indicates
*                                 less than or equal to)
      real*4        EqWI2       ! (10-4nm) ? Equivalent width for star Ibata 2 (in m{AA})
      character*1   f_EqWI2     ! [a] Flag on EqWI2 (1)
      character*1   l_EqWI2     ! Limit on EqWI2
      real*4        EqWI10      ! (10-4nm) ? Equivalent width for star Ibata 10 (in m{AA})
      character*1   f_EqWI10    ! [a] Flag on EqWI10 (1)
      real*4        EqWI11      ! (10-4nm) ? Equivalent width for star Ibata 11 (in m{AA})
      character*1   f_EqWI11    ! [a] Flag on EqWI11 (1)
      character*1   l_EqWI11    ! Limit on EqWI11
      real*4        EqWI13      ! (10-4nm) ? Equivalent width for star Ibata 13
*                                 (in m{AA})
      character*1   f_EqWI13    ! [ab] Flag on EqWI13 (1)
*Note (1):
*    a = Line too strong (log(W/{lambda}) > -4.5) to be included in abundance
*        solution
*    b = The abundances from the Ba II lines of Ibata 13 are badly mutually
*        discrepant, and we have no reason to accept one over any of the
*        others; we accept no fit for Ba for Ibata 13

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

C  Loading file 'table2.dat'	! Line data for the Ibata stars

C  Format for file interpretation

    1 format(
     +  A6,1X,F4.2,2X,F7.2,3X,F5.2,1X,F6.2,1X,F5.1,1X,A1,1X,A4,F5.1,
     +  1X,A1,1X,A1,F5.1,1X,A1,2X,F5.1,1X,A1,1X,A1,F5.1,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,142
        read(1,'(A83)')ar__
        read(ar__,1)
     +  Ion,Abd,Wave,ExPot,log_gf,EqWI1,f_EqWI1,n_EqWI1,EqWI2,f_EqWI2,
     +  l_EqWI2,EqWI10,f_EqWI10,EqWI11,f_EqWI11,l_EqWI11,EqWI13,
     +  f_EqWI13
        if(ar__(37:41) .EQ. '') EqWI1 = rNULL__
        if(ar__(49:53) .EQ. '') EqWI2 = rNULL__
        if(ar__(58:62) .EQ. '') EqWI10 = rNULL__
        if(ar__(67:71) .EQ. '') EqWI11 = rNULL__
        if(ar__(76:80) .EQ. '') EqWI13 = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Ion,Abd,Wave,ExPot,log_gf,EqWI1,f_EqWI1,n_EqWI1,EqWI2,f_EqWI2,
     +  l_EqWI2,EqWI10,f_EqWI10,EqWI11,f_EqWI11,l_EqWI11,EqWI13,
     +  f_EqWI13
c    .......End.of.Just test output...........
      end do
      close(1)

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