FORTRAN Generation
(/./home/cats/J/ApJS/211/29)

Conversion of standardized ReadMe file for file /./home/cats/J/ApJS/211/29 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 2026-May-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/ApJS/211/29 Atlas of HI absorption toward HII regions in SGPS I (Brown+, 2014)
*================================================================================
*A complete atlas of H I absorption toward H II regions in the Southern
*Galactic Plane Survey (SGPS I).
*    Brown C., Dickey J.M., Dawson J.R., McClure-Griffiths N.M.
*   <Astrophys. J. Suppl. Ser., 211, 29 (2014)>
*   =2014ApJS..211...29B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! HII region catalog

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

C  Position composed of: GLON GLAT
      real*8        GLON        ! (deg) [254.6/353.2] Galactic Longitude
      real*4        GLAT        ! (deg) [-1.3/1.5] Galactic Latitude
      character*23  Name        ! Simbad identifier for this region
      character*1   Q           ! [A-F] Quality factor (A=best) (1)
      integer*4     Tcont       ! (K) [5/1377] Continuum temperature
      real*4        Vrrl1       ! (km/s) [-122/66] First RRL (radio recombination
*                                   lines) velocity
      real*4        Vrrl2       ! (km/s) ? Second RRL velocity
      integer*4     Ref         ! Source reference code (2)
*Note (1): A series of five tests were devised to measure the quality of
*     each HI absorption spectrum (see Figure 2) - resulting in six quality
*     categories A-F. See section 3.2 for further explanations.
*Note (2): Reference as follows:
*    1 = Caswell & Haynes (1987, Cat. J/A+A/171/261);
*    2 = Bania et al. (2010ApJ...718L.106B);
*    3 = Lockman (1989, Cat. VIII/58);
*    4 = Wilson et al. (1970A&A.....6..364W).

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

C  Declarations for 'data/*'	! Individual files in ASCII format of HI
                              emission/absorption spectrum for each HII region

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

      real*8        Vel         ! (km/s) [-227.6/265.5] Velocity channel
      real*8        Ton         ! (K) On source brightness temperature (T_on_)
      real*8        Toff        ! (K) Average of the three off source brightness
*                           temperatures (i.e., the emission spectrum)
      real*8        e_Toff      ! (K) Toff uncertainty (1)
      real*4        tau         ! Absorption value {tau} [exp(-{tau})=(Ton-Toff)/Tcont]
      real*4        e_tau       ! Absorption uncertainty envelope ({Delta}_abs_)
*Note (1): The uncertainty in T_off_, caused by the differences
*     in the three off source positions, 3{sigma}(T_off_)

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

C  Loading file 'table1.dat'	! HII region catalog

C  Format for file interpretation

    1 format(F7.3,1X,F6.3,1X,A23,1X,A1,1X,I4,1X,F6.1,1X,F6.1,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,252
        read(1,'(A61)')ar__
        read(ar__,1)GLON,GLAT,Name,Q,Tcont,Vrrl1,Vrrl2,Ref
        if(ar__(54:59) .EQ. '') Vrrl2 = rNULL__
c    ..............Just test output...........
        write(6,1)GLON,GLAT,Name,Q,Tcont,Vrrl1,Vrrl2,Ref
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'data/*'	! Individual files in ASCII format of HI
*                              emission/absorption spectrum for each HII region

C  Format for file interpretation

    2 format(F7.2,1X,F8.2,1X,F8.2,1X,F7.2,1X,F5.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'data/*')
      write(6,*) '....Loading file: data/*'
      do i__=1,245
        read(1,'(A45)')ar__1
        read(ar__1,2)Vel,Ton,Toff,e_Toff,tau,e_tau
c    ..............Just test output...........
        write(6,2)Vel,Ton,Toff,e_Toff,tau,e_tau
c    .......End.of.Just test output...........
      end do
      close(1)

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