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 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-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/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        (nr__) ! Ion name
      real*4        Abd        (nr__) ! Log Ion's solar number abundance (H=12)
      real*8        Wave       (nr__) ! (0.1nm) Wavelength of Ion
      real*4        ExPot      (nr__) ! (eV) Excitation potential
      real*4        log_gf     (nr__) ! Log of the oscillator strength
      real*4        EqWI1      (nr__) ! (10-4nm) ? Equivalent width for star Ibata 1 (in m{AA})
      character*1   f_EqWI1    (nr__) ! [a] Flag on EqWI1 (1)
      character*4   n_EqWI1    (nr__) ! Special limit on EqWI1 ({<=} indicates
*                                 less than or equal to)
      real*4        EqWI2      (nr__) ! (10-4nm) ? Equivalent width for star Ibata 2 (in m{AA})
      character*1   f_EqWI2    (nr__) ! [a] Flag on EqWI2 (1)
      character*1   l_EqWI2    (nr__) ! Limit on EqWI2
      real*4        EqWI10     (nr__) ! (10-4nm) ? Equivalent width for star Ibata 10 (in m{AA})
      character*1   f_EqWI10   (nr__) ! [a] Flag on EqWI10 (1)
      real*4        EqWI11     (nr__) ! (10-4nm) ? Equivalent width for star Ibata 11 (in m{AA})
      character*1   f_EqWI11   (nr__) ! [a] Flag on EqWI11 (1)
      character*1   l_EqWI11   (nr__) ! Limit on EqWI11
      real*4        EqWI13     (nr__) ! (10-4nm) ? Equivalent width for star Ibata 13
*                                 (in m{AA})
      character*1   f_EqWI13   (nr__) ! [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(i__),Abd(i__),Wave(i__),ExPot(i__),log_gf(i__),EqWI1(i__),
     +  f_EqWI1(i__),n_EqWI1(i__),EqWI2(i__),f_EqWI2(i__),
     +  l_EqWI2(i__),EqWI10(i__),f_EqWI10(i__),EqWI11(i__),
     +  f_EqWI11(i__),l_EqWI11(i__),EqWI13(i__),f_EqWI13(i__)
        if(ar__(37:41) .EQ. '') EqWI1(i__) = rNULL__
        if(ar__(49:53) .EQ. '') EqWI2(i__) = rNULL__
        if(ar__(58:62) .EQ. '') EqWI10(i__) = rNULL__
        if(ar__(67:71) .EQ. '') EqWI11(i__) = rNULL__
        if(ar__(76:80) .EQ. '') EqWI13(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Ion(i__),Abd(i__),Wave(i__),ExPot(i__),log_gf(i__),EqWI1(i__),
     +  f_EqWI1(i__),n_EqWI1(i__),EqWI2(i__),f_EqWI2(i__),
     +  l_EqWI2(i__),EqWI10(i__),f_EqWI10(i__),EqWI11(i__),
     +  f_EqWI11(i__),l_EqWI11(i__),EqWI13(i__),f_EqWI13(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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