FORTRAN Generation
(/./ftp/cats/J/ApJ/700/654)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/700/654 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.5, on 2013-May-23
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__=-1.e37)     	! NULL real number
      parameter  (iNULL__=-2147483647)	! NULL int  number

C=============================================================================
Cat. J/ApJ/700/654  Keck spectroscopy of extragalactic HII regions   (Esteban+ 2009)
*================================================================================
*Keck HIRES spectroscopy of extragalactic H II regions: C and O abundances from
*recombination lines.
*    Esteban C., Bresolin F., Peimbert M., Garcia-Rojas J., Peimbert A.,
*    Mesa-Delgado A.
*   <Astrophys. J., 700, 654-678 (2009)>
*   =2009ApJ...700..654E
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'sources.dat'	! Journal of observations and H{beta} values

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

      real*8        RA_         ! (deg) Right Ascension J2000.0
      real*8        Dec         ! (deg)     Declination J2000.0
      character*8   Gal         ! Host Galaxy
      character*11  Name        ! HII region name
      character*1   n_Name      ! [bcdefg] Note (1)
      integer*4     RAh         ! (h) Slit center right ascension (J2000.0)
      integer*4     RAm         ! (min) Slit center right ascension (J2000.0)
      real*4        RAs         ! (s) Slit center right ascension (J2000.0)
      character*1   DE_         ! Declination sign (J2000)
      integer*4     DEd         ! (deg) Declination (J2000)
      integer*4     DEm         ! (arcmin) Declination (J2000)
      integer*4     DEs         ! (arcsec) Declination (J2000)
      real*4        RG          ! (kpc) ?=- Galactocentric distance
      real*4        R_R0        ! ?=- Relative galactocentric distance R/R_0_
      character*10  Date        ! ("YYYY/MM/DD") Observation date
      character*4   Tel         ! Telescope
      integer*4     PA          ! (deg) Slit position angle
      character*6   t_exp       ! (s) Exposure time
      real*4        cHb         ! H{beta} reddening constant
      real*4        e_cHb       ! rms uncertainty on cHb
      real*4        FHb         ! (10-16W/m2) Integrated H{beta} flux (10^-13^erg/cm^2^/s)
      real*4        e_FHb       ! (10-16W/m2) rms uncertainty on FHb
      integer*4     EWHb        ! (0.1nm) H{beta} equivalent width
      real*4        EWabs       ! (0.1nm) ? Equivalent width of the absorption in the
*                                    hydrogen lines, used to correct the
*                                    observed line intensities
      real*4        FWRb1       ! (aW/m2) ? Flux of the W-R blue bump {lambda}=4640{AA}
      real*4        e_FWRb1     ! (aW/m2) ? rms uncertainty on FWRb1
      real*4        FWRb2       ! (aW/m2) ? Flux of the W-R blue bump {lambda}=4686{AA}
      real*4        e_FWRb2     ! (aW/m2) ? rms uncertainty on FWRb2
*Note (1): Notes as follows:
*   b = Walterbos & Braun (1992, Cat. J/A+AS/92/625) and
*       Galarza et al. (1999AJ....118.2775G)
*   c = Zone C, Hickson (1982, Cat. VII/213)
*   d = Veron & Sauvayre (1965AnAp...28..698V)
*   e = Region no. 70, Cedres & Cepa (2002, Cat. J/A+A/391/809)
*   f = Brightest H II region of NGC 4861, Gil de Paz et al.
*       (2003, cat. J/ApJS/147/29)
*   g = Hodge et al. (1990, Cat. J/ApJS/73/661)

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

C  Declarations for 'tab234.dat'	! Dereddened line intensity ratios with respect
                             to I(H{beta})=100 (Tables 2-4 of the paper)

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

      character*11  Name_1      ! HII region name
      real*8        lambda0     ! (0.1nm) ? Adopted laboratory wavelength
      character*8   Ion         ! Ion designation
      character*6   line        ! Line identification
      real*4        Flambda     ! ? Reddening curve normalized to H{beta} using
*                                  the Seaton (1979MNRAS.187p..73S) law used
      real*8        lambda      ! (0.1nm) ?=- Observed wavelength in the heliocentric
*                                    rest frame
      character*1   n_lambda    ! [abcde] Note on lambda (1)
      character*1   l_Int       ! Limit flag on Int
      real*8        Int         ! ?=- Reddening-corrected flux relative to H{beta}
      character*1   u_Int       ! Uncertainty flag on Int
      real*4        e_Int       ! ? rms uncertainty on Int
*Note (1): Notes as follows:
*   a = Blended with the W-R blue bump emission at 4640{AA}
*   b = Blend of OII {lambda}4649.13 and {lambda}4650.84 lines
*   c = Blend of OI {lambda}6046.23, {lambda}6046.44, and {lambda}6046.49 lines
*   d = Blend of [OII] {lambda}7318.39 and {lambda}7319.99 lines
*   e = Blend of [OII] {lambda}7329.66 and {lambda}7330.73 lines

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

C  Loading file 'sources.dat'	! Journal of observations and H{beta} values

C  Format for file interpretation

    1 format(
     +  A8,1X,A11,1X,A1,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,
     +  F5.2,1X,F5.3,1X,A10,1X,A4,1X,I3,1X,A6,1X,F4.2,1X,F4.2,1X,F4.2,
     +  1X,F4.2,1X,I3,1X,F3.1,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,file='sources.dat', status='old')
      write(6,*) '....Loading file: sources.dat'
      do i__=1,14
        read(1,'(A130)')ar__
        read(ar__,1)
     +  Gal,Name,n_Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,RG,R_R0,Date,Tel,
     +  PA,t_exp,cHb,e_cHb,FHb,e_FHb,EWHb,EWabs,FWRb1,e_FWRb1,FWRb2,
     +  e_FWRb2
        if (RG .EQ. 2.2233e-322) RG =  rNULL__
        if (R_R0 .EQ. 2.2233e-322) R_R0 =  rNULL__
        if(ar__(108:110) .EQ. '') EWabs = rNULL__
        if(ar__(112:115) .EQ. '') FWRb1 = rNULL__
        if(ar__(117:120) .EQ. '') e_FWRb1 = rNULL__
        if(ar__(122:125) .EQ. '') FWRb2 = rNULL__
        if(ar__(127:130) .EQ. '') e_FWRb2 = rNULL__
c       Derive coordinates RA_ and Dec from input data
c       (RA_ and Dec are set to rNULL_ when unknown)
        RA_ = RAh
        if(RAh .GE. 0) RA_=RAh*15.
        if(RAm .GE. 0) RA_=RA_+RAm/4.
        if(RAs .GE. 0) RA_=RA_+RAs/240.
        Dec = DEd
        if(DEm .GE. 0) Dec=Dec+DEm/60.
        if(DEs .GE. 0) Dec=Dec+DEs/3600.
        if(DE_.EQ.'-'.AND.Dec.GE.0) Dec=-Dec
c    ..............Just test output...........
        write(6,1)
     +  Gal,Name,n_Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,RG,R_R0,Date,Tel,
     +  PA,t_exp,cHb,e_cHb,FHb,e_FHb,EWHb,EWabs,FWRb1,e_FWRb1,FWRb2,
     +  e_FWRb2
        write(6,'(6H Pos: 2F8.4)') RA_,Dec
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tab234.dat'	! Dereddened line intensity ratios with respect
*                             to I(H{beta})=100 (Tables 2-4 of the paper)

C  Format for file interpretation

    2 format(
     +  A11,1X,F7.2,1X,A8,1X,A6,1X,F6.3,1X,F7.2,A1,1X,A1,F7.3,A1,F6.3)

C  Effective file loading

      open(unit=1,file='tab234.dat', status='old')
      write(6,*) '....Loading file: tab234.dat'
      do i__=1,1837
        read(1,'(A67)')ar__1
        read(ar__1,2)
     +  Name_1,lambda0,Ion,line,Flambda,lambda,n_lambda,l_Int,Int,
     +  u_Int,e_Int
        if(ar__1(13:19) .EQ. '') lambda0 = rNULL__
        if(ar__1(37:42) .EQ. '') Flambda = rNULL__
        if (lambda .EQ. 2.2233e-322) lambda =  rNULL__
        if (Int .EQ. 2.2233e-322) Int =  rNULL__
        if(ar__1(62:67) .EQ. '') e_Int = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Name_1,lambda0,Ion,line,Flambda,lambda,n_lambda,l_Int,Int,
     +  u_Int,e_Int
c    .......End.of.Just test output...........
      end do
      close(1)

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