FORTRAN Generation
(/./ftp/cats/J/ApJ/810/42)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/810/42 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-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/ApJ/810/42     Hydrogen RRL parameters of H II regions       (Anderson+, 2015)
*================================================================================
*Untangling the recombination line emission from H II regions with multiple
*velocity components.
*    Anderson L.D., Hough L.A., Wenger T.V., Bania T.M., Balser D.S.
*   <Astrophys. J., 810, 42 (2015)>
*   =2015ApJ...810...42A    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! On-target Hydrogen RRL Parameters of Literature
                                H II Regions

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

C  Position composed of: GLON GLAT
      character*14  Source     (nr__) ! Source name (GLLL.lll+B.bbb) (only in table1)
      character*1   n_Source   (nr__) ! [abc ] Note on Source (only in table1) (1)
      real*4        GLON       (nr__) ! (deg) Galactic longitude
      real*4        GLAT       (nr__) ! (deg) Galactic latitude
      real*4        Sep        (nr__) ! (arcmin) ? Separation (2)
      real*4        TL         (nr__) ! (mK) Derived radio recombination line (RRL) peak
*                                 antenna temperature
      real*4        e_TL       (nr__) ! (mK) Uncertainty in TL
      real*4        VLSR       (nr__) ! (km/s) Local Standard of Rest velocity
      real*4        e_VLSR     (nr__) ! (km/s) Uncertainty in VLSR
      real*4        DeltaV     (nr__) ! (km/s) Line FWHM
      real*4        e_DeltaV   (nr__) ! (km/s) Uncertainty in DeltaV
      real*4        rms        (nr__) ! (mK) rms noise
      character*63  Region     (nr__) ! Multiple-velocity H II region(s) that use this
*                                 off-target position in our subsequent analyses
*                                 (GLLL.lll+BB.bbb) (only in table2)
*Note (1): When multiple RRL components are detected, we follow our usual
*          convention and append "a" to the source name of the strongest
*          component, "b" to the source name of the next strongest component,
*          etc.
*Note (2): From the nominal centroid position of the nearest multiple-velocity
*          H II region.

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

C  Declarations for 'table2.dat'	! Off-target Hydrogen RRL Parameters for the Full
                                Sample

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

C  Position composed of: GLON GLAT
      character*14  Source_1   (nr__1) ! Source name (GLLL.lll+B.bbb) (only in table1)
      character*1   n_Source_1 (nr__1) ! [abc ] Note on Source (only in table1) (1)
      real*4        GLON_1     (nr__1) ! (deg) Galactic longitude
      real*4        GLAT_1     (nr__1) ! (deg) Galactic latitude
      real*4        Sep_1      (nr__1) ! (arcmin) ? Separation (2)
      real*4        TL_1       (nr__1) ! (mK) Derived radio recombination line (RRL) peak
*                                 antenna temperature
      real*4        e_TL_1     (nr__1) ! (mK) Uncertainty in TL
      real*4        VLSR_1     (nr__1) ! (km/s) Local Standard of Rest velocity
      real*4        e_VLSR_1   (nr__1) ! (km/s) Uncertainty in VLSR
      real*4        DeltaV_1   (nr__1) ! (km/s) Line FWHM
      real*4        e_DeltaV_1 (nr__1) ! (km/s) Uncertainty in DeltaV
      real*4        rms_1      (nr__1) ! (mK) rms noise
      character*63  Region_1   (nr__1) ! Multiple-velocity H II region(s) that use this
*                                 off-target position in our subsequent analyses
*                                 (GLLL.lll+BB.bbb) (only in table2)
*Note (1): When multiple RRL components are detected, we follow our usual
*          convention and append "a" to the source name of the strongest
*          component, "b" to the source name of the next strongest component,
*          etc.
*Note (2): From the nominal centroid position of the nearest multiple-velocity
*          H II region.

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

C  Declarations for 'table4.dat'	! H II Region Velocities and Distances

      integer*4 nr__2
      parameter (nr__2=103)	! Number of records
      character*63 ar__2  	! Full-size record

      character*15  Source_2   (nr__2) ! Source name (GLLL.lll+BB.bbb)
      real*4        VLSR_2     (nr__2) ! (km/s) Local Standard of Rest velocity
      real*4        DN         (nr__2) ! (kpc) ? Near kinematic distance
      real*4        DF         (nr__2) ! (kpc) Far kinematic distance
      real*4        DTP        (nr__2) ! (kpc) Tangent point kinematic distance
      character*1   KDAR       (nr__2) ! [FNT-] Kinematic distance ambiguity resolution
*                               (F:Far, N:Near or T:Tangent) (1)
      character*1   QF         (nr__2) ! [ABC-] Quality factor for the KDAR (2)
      real*4        Rgal       (nr__2) ! (kpc) Galactocentric radius
      real*4        Dist       (nr__2) ! (kpc) ? Heliocentric distance
      integer*4     Z          (nr__2) ! (pc) ? Height above the plane
      character*10  Crit       (nr__2) ! Criteria used to determine the H II region
*                               velocity (3)
*Note (1): Using H I absorption, in the same manner as Anderson & Bania
*          (2009, J/ApJ/690/706) and Anderson et al. (2012, J/ApJ/754/62).
*Note (2): We assign each KDAR a quality factor based on our qualitative
*          assessment of our confidence in the KDAR.
*  Quality factor as follows:
*  A = Very certain;
*  B = Less certain;
*  C = We cannot resolve the KDAR.
*Note (3): Criteria as follows:
*   1 = Only one on-target velocity component was detected (literature sources
*       only);
*   2 = One on-target velocity component has a negative LSR velocity;
*  3a = The intensity of one off-target line component is at least 50 mK less
*       than that of the on-target position;
*  3b = The intensity of one off-target line component is between 20 and 50 mK
*       less than that of the on-target position (the former being the more
*       reliable criterion);
*  4a = The electron temperature derived from only one line component is within
*       the reasonable range, for high quality sources;
*  4b = The electron temperature derived from only one line component is within
*       the reasonable range, for low quality sources;
*  5a = Anderson et al. (2009, J/ApJS/181/255) find CO emission matching the
*       source morphology at only at one velocity (their quality factors of "A"
*       or "B");
*  5b = Dense molecular gas, compiled in the WISE catalog of Galactic H II
*       regions (Anderson et al. 2014, J/ApJS/212/1), is only found at one
*       velocity;
*   6 = A carbon RRL is found at only one of the RRL velocities.

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

C  Loading file 'table1.dat'	! On-target Hydrogen RRL Parameters of Literature
*                                H II Regions

C  Format for file interpretation

    1 format(
     +  A14,A1,1X,F6.3,1X,F6.3,1X,F4.1,1X,F5.1,1X,F3.1,1X,F5.1,1X,
     +  F3.1,1X,F4.1,1X,F3.1,1X,F3.1,1X,A63)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,53
        read(1,'(A131)')ar__
        read(ar__,1)
     +  Source(i__),n_Source(i__),GLON(i__),GLAT(i__),Sep(i__),
     +  TL(i__),e_TL(i__),VLSR(i__),e_VLSR(i__),DeltaV(i__),
     +  e_DeltaV(i__),rms(i__),Region(i__)
        if(ar__(31:34) .EQ. '') Sep(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Source(i__),n_Source(i__),GLON(i__),GLAT(i__),Sep(i__),
     +  TL(i__),e_TL(i__),VLSR(i__),e_VLSR(i__),DeltaV(i__),
     +  e_DeltaV(i__),rms(i__),Region(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Off-target Hydrogen RRL Parameters for the Full
*                                Sample

C  Format for file interpretation

    2 format(
     +  A14,A1,1X,F6.3,1X,F6.3,1X,F4.1,1X,F5.1,1X,F3.1,1X,F5.1,1X,
     +  F3.1,1X,F4.1,1X,F3.1,1X,F3.1,1X,A63)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,225
        read(1,'(A131)')ar__1
        read(ar__1,2)
     +  Source_1(i__),n_Source_1(i__),GLON_1(i__),GLAT_1(i__),
     +  Sep_1(i__),TL_1(i__),e_TL_1(i__),VLSR_1(i__),e_VLSR_1(i__),
     +  DeltaV_1(i__),e_DeltaV_1(i__),rms_1(i__),Region_1(i__)
        if(ar__1(31:34) .EQ. '') Sep_1(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Source_1(i__),n_Source_1(i__),GLON_1(i__),GLAT_1(i__),
     +  Sep_1(i__),TL_1(i__),e_TL_1(i__),VLSR_1(i__),e_VLSR_1(i__),
     +  DeltaV_1(i__),e_DeltaV_1(i__),rms_1(i__),Region_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! H II Region Velocities and Distances

C  Format for file interpretation

    3 format(
     +  A15,1X,F5.1,1X,F3.1,1X,F4.1,1X,F3.1,1X,A1,1X,A1,1X,F4.1,1X,
     +  F4.1,1X,I3,1X,A10)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,103
        read(1,'(A63)')ar__2
        read(ar__2,3)
     +  Source_2(i__),VLSR_2(i__),DN(i__),DF(i__),DTP(i__),KDAR(i__),
     +  QF(i__),Rgal(i__),Dist(i__),Z(i__),Crit(i__)
        if(ar__2(23:25) .EQ. '') DN(i__) = rNULL__
        if(ar__2(45:48) .EQ. '') Dist(i__) = rNULL__
        if(ar__2(50:52) .EQ. '') Z(i__) = iNULL__
c    ..............Just test output...........
        write(6,3)
     +  Source_2(i__),VLSR_2(i__),DN(i__),DF(i__),DTP(i__),KDAR(i__),
     +  QF(i__),Rgal(i__),Dist(i__),Z(i__),Crit(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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