FORTRAN Generation
(/./ftp/cats/J/ApJ/513/168)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/513/168 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-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/ApJ/513/168  HST observations of carbon in spiral galaxies  (Garnett+, 1999)
*================================================================================
*Carbon in spiral galaxies from Hubble space telescope spectroscopy
*    Garnett D.R., Shields G.A., Peimbert M., Torres-Peimbert S., Skillman
*    E.D., Dufour R.J., Terlevich E., Terlevich R.J.
*   <Astrophys. J. 513, 168 (1999)>
*   =1999ApJ...513..168G
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Spectra for M101 and NGC 2403 HII regions

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

      character*8   Name       (nr__) ! H II region name
      character*8   Ion        (nr__) ! Ion
      integer*4     Wave       (nr__) ! (0.1nm) Wavelength of Ion
      character*1   l_Flux     (nr__) ! Indicates a lower limit in Flux
      real*4        Flux       (nr__) ! Observed flux relative to H{beta}
      real*4        e_Flux     (nr__) ! ? Uncertainty (1{sigma}) in Flux
      character*1   l_F3_1     (nr__) ! Indicates a lower limit in F3.1
      real*4        F3_1       (nr__) ! Extinction Corrected flux (R=3.1) relative
*                                   to H{beta}
      real*4        e_F3_1     (nr__) ! ? Uncertainty (1{sigma}) in F3.1
      character*1   l_F5       (nr__) ! Indicates a lower limit in F5
      real*4        F5         (nr__) ! Extinction Corrected flux (R=5) relative
*                                   to H{beta}
      real*4        e_F5       (nr__) ! ? Uncertainty (1{sigma}) in F5
      real*4        A3_1       (nr__) ! (mag) Extinction (R=3.1) at H{beta}
      real*4        e_A3_1     (nr__) ! (mag) Uncertainty in A3.1
      real*4        A5         (nr__) ! (mag) Extinction (R=5) at H{beta}
      real*4        e_A5       (nr__) ! (mag) Uncertainty in A5

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

C  Loading file 'table2.dat'	! Spectra for M101 and NGC 2403 HII regions

C  Format for file interpretation

    1 format(
     +  A8,2X,A8,1X,I4,6X,A1,F5.3,1X,F5.3,3X,A1,F5.3,2X,F5.3,2X,A1,
     +  F5.3,3X,F5.3,2X,F4.2,1X,F4.2,5X,F4.2,2X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,152
        read(1,'(A99)')ar__
        read(ar__,1)
     +  Name(i__),Ion(i__),Wave(i__),l_Flux(i__),Flux(i__),
     +  e_Flux(i__),l_F3_1(i__),F3_1(i__),e_F3_1(i__),l_F5(i__),
     +  F5(i__),e_F5(i__),A3_1(i__),e_A3_1(i__),A5(i__),e_A5(i__)
        if(ar__(37:41) .EQ. '') e_Flux(i__) = rNULL__
        if(ar__(53:57) .EQ. '') e_F3_1(i__) = rNULL__
        if(ar__(69:73) .EQ. '') e_F5(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),Ion(i__),Wave(i__),l_Flux(i__),Flux(i__),
     +  e_Flux(i__),l_F3_1(i__),F3_1(i__),e_F3_1(i__),l_F5(i__),
     +  F5(i__),e_F5(i__),A3_1(i__),e_A3_1(i__),A5(i__),e_A5(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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