FORTRAN Generation
(/./ftp/cats/J/MNRAS/411/705)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/411/705 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-Oct-13
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/MNRAS/411/705    Spectrophotometric distances of HII regions   (Moises+, 2011)
*================================================================================
*Spectrophotometric distances to Galactic H II regions.
*    Moises A.P., Damineli A., Figueredo E., Blum R.D., Conti P.S., Barbosa C.L.
*   <Mon. Not. R. Astron. Soc., 411, 705-760 (2011)>
*   =2011MNRAS.411..705M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Massive YSOs identified using the color-color
                              and color-magnitude diagrams and with a
                              counterpart in their respective Spitzer images

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg       ! (deg) Right Ascension J2000
      real*8        DEdeg       ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*10  v_MDF2011_  ! Region designation, GLLL.ll+B.bb
      character*1   r__MDF2011_ ! [abcde] Reference for the region (1)
      character*10  Name        ! Other name of the region, or [MDF2011]
      integer*4     Cand        ! Candidate number,
*                                   [MDF2011] GLLL.ll+B.bb NNNN in Simbad
      integer*4     RAh         ! (h) Right ascension (J2000)
      integer*4     RAm         ! (min) Right ascension (J2000)
      real*4        RAs         ! (s) Right ascension (J2000)
      character*1   DE_         ! Declination sign (J2000)
      integer*4     DEd         ! (deg) Declination (J2000)
      integer*4     DEm         ! (arcmin) Declination (J2000)
      real*4        DEs         ! (arcsec) Declination (J2000)
      real*4        Ksmag       ! (mag) MYSO Ks-band magnitude
      real*4        v_3_6_      ! (mag) ? IRAC 3.6um magnitude
      integer*4     n__3_6_     ! [1/3]? reason of non-detection in [3.6] (2)
      real*4        v_4_5_      ! (mag) ? IRAC 4.5um magnitude
      integer*4     n__4_5_     ! [1/3]? reason of non-detection in [4.5] (2)
      real*4        v_5_8_      ! (mag) ? IRAC 5.8um magnitude
      integer*4     n__5_8_     ! [1/3]? reason of non-detection in [5.8] (2)
      real*4        v_8_0_      ! (mag) ? IRAC 8.0um magnitude
      integer*4     n__8_0_     ! [1/4]? reason of non-detection in [8.0] (2)
      character*4   Class       ! Classificiation of the MYSO, when possible
*Note (1): References as follows:
*   a = Blum et al. (2001AJ....121.3149B)
*   b = Blum et al. (2000AJ....119.1860B
*   c = Blum et al. (1999AJ....117.1392B)
*   d = Figueredo et al. (2008AJ....136..221F)
*   e = Figueredo et al. (2005AJ....129.1523F)
*Note (2): Identification of non-detected objects code as follows:
*   1 = undetected object
*   2 = saturated object
*   3 = strong nebulosity obscurating the object
*   4 = crowded cluster

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

C  Declarations for 'table3.dat'	! Regions with distances derived from the
                              trigonometric parallax

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

C  Position composed of: GLON GLAT
      real*4        GLON        ! (deg) Galactic longitude
      real*4        GLAT        ! (deg) Galactic latitude
      character*10  Name_1      ! Name of the HII region
      real*4        Dkin        ! (kpc) Kinematic distance (1)
      real*4        Dplx        ! (kpc) Distance derived from the trigonometric parallax
      real*4        E_Dplx      ! (kpc) Error on Dplx (upper value)
      real*4        e_Dplx_1    ! (kpc) Error on Dplx (lower value)
      integer*4     r_Dplx      ! References for Dplx (2)
*Note (1): Kinematic distance from From Reid et al. (2009ApJ...700..137R)
*Note (2): References for the adopted distance moduli as follows:
*   1 = Reid et al. (2009ApJ...693..397R)
*   2 = Moscadelli et al. (2009ApJ...693..406M)
*   3 = Xu et al. (2009ApJ...693..413X)
*   4 = Zhang et al. (2009ApJ...693..419Z)
*   5 = Brunthaler et al. (2009ApJ...693..424B)
*   6 = Bartkiewicz et al. (2008A&A...490..787B)
*   7 = Moellenbrock, Claussen & Goss (2009ApJ...694..192M)
*   8 = Sato et al. (2008PASJ...60..975S)
*   9 = Xu et al. (2006Sci...311...54X),
*       Hachisuka et al. (2006ApJ...645..337H)
*  10 = Hachisuka et al. (2009ApJ...696.1981H)
*  11 = Honma et al. (2007PASJ...59..889H)
*  12 = Hirota et al. (2007PASJ...59..897H),
*       Menten et al. (2007A&A...474..515M)
*  13 = Choi et al. (2008PASJ...60.1007C)
*  14 = Reid et al. (2009ApJ...705.1548R)

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

C  Declarations for 'table4.dat'	! Spectrophotometric distances

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

C  Position composed of: GLON GLAT
      real*4        GLON_1      ! (deg) Galactic longitude
      real*4        GLAT_1      ! (deg) Galactic latitude
      character*10  Name_2      ! Name of the HII region
      integer*4     r_Dist      ! Reference for adopted distance moduli (1)
      integer*4     Nstar       ! Number of stars used in each region
      real*4        Dkin_1      ! (kpc) Kinematic distance (2)
      real*4        e_Dkin      ! (kpc) rms uncertainty on Dkin
      real*4        DM          ! (kpc) Spectrophotometric distance using the Mathis
*                                   (1990ARA&A..28...37M) interstellar
*                                   extinction law
      real*4        e_DM        ! (kpc) rms uncertainty on DM
      real*4        DS          ! (kpc) Spectrophotometric distance using the
*                                   Stead & Hoare (2009MNRAS.400..731S)
*                                   interstellar extinction law
      real*4        e_DS        ! (kpc) rms uncertainty on DS
      real*4        v_Dspec_    ! (kpc) Average of both spectrophotometric distances
*Note (1): References for the adopted distance moduli as follows:
*   1 = Bik et al. (2005A&A...440..121B)
*   2 = Blum et al. (2001AJ....121.3149B)
*   3 = Hanson et al. (1996, Cat. J/ApJS/107/281)
*   4 = Blum et al. (2000AJ....119.1860B)
*   5 = Blum et al. (1999AJ....117.1392B)
*   6 = Figueredo et al. (2008AJ....136..221F)
*   7 = Navarete et al. (in preparation)
*   8 = Figueredo et al. (2005AJ....129.1523F)
*Note (2): All kinematic distances are from Russeil (2003, Cat. J/A+A/397/133)
*     except for W31-South and W31-North with distances from
*     Corbel & Eikenberry (2004A&A...419..191C).

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

C  Loading file 'table2.dat'	! Massive YSOs identified using the color-color
*                              and color-magnitude diagrams and with a
*                              counterpart in their respective Spitzer images

C  Format for file interpretation

    1 format(
     +  A10,A1,1X,A10,I4,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,
     +  1X,F5.2,1X,F5.2,1X,I1,1X,F5.2,1X,I1,1X,F5.2,1X,I1,1X,F4.2,1X,
     +  I1,1X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,65
        read(1,'(A93)')ar__
        read(ar__,1)
     +  v_MDF2011_,r__MDF2011_,Name,Cand,RAh,RAm,RAs,DE_,DEd,DEm,DEs,
     +  Ksmag,v_3_6_,n__3_6_,v_4_5_,n__4_5_,v_5_8_,n__5_8_,v_8_0_,
     +  n__8_0_,Class
        if(ar__(59:63) .EQ. '') v_3_6_ = rNULL__
        if(ar__(65:65) .EQ. '') n__3_6_ = iNULL__
        if(ar__(67:71) .EQ. '') v_4_5_ = rNULL__
        if(ar__(73:73) .EQ. '') n__4_5_ = iNULL__
        if(ar__(75:79) .EQ. '') v_5_8_ = rNULL__
        if(ar__(81:81) .EQ. '') n__5_8_ = iNULL__
        if(ar__(83:86) .EQ. '') v_8_0_ = rNULL__
        if(ar__(88:88) .EQ. '') n__8_0_ = iNULL__
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  v_MDF2011_,r__MDF2011_,Name,Cand,RAh,RAm,RAs,DE_,DEd,DEm,DEs,
     +  Ksmag,v_3_6_,n__3_6_,v_4_5_,n__4_5_,v_5_8_,n__5_8_,v_8_0_,
     +  n__8_0_,Class
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Regions with distances derived from the
*                              trigonometric parallax

C  Format for file interpretation

    2 format(
     +  F6.2,1X,F6.2,1X,A10,2X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,19
        read(1,'(A48)')ar__1
        read(ar__1,2)GLON,GLAT,Name_1,Dkin,Dplx,E_Dplx,e_Dplx_1,r_Dplx
c    ..............Just test output...........
        write(6,2)GLON,GLAT,Name_1,Dkin,Dplx,E_Dplx,e_Dplx_1,r_Dplx
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Spectrophotometric distances

C  Format for file interpretation

    3 format(
     +  F5.1,1X,F4.1,1X,A10,1X,I1,1X,I1,1X,F5.2,1X,F3.1,1X,F5.2,1X,
     +  F4.2,1X,F5.2,1X,F4.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,27
        read(1,'(A63)')ar__2
        read(ar__2,3)
     +  GLON_1,GLAT_1,Name_2,r_Dist,Nstar,Dkin_1,e_Dkin,DM,e_DM,DS,
     +  e_DS,v_Dspec_
c    ..............Just test output...........
        write(6,3)
     +  GLON_1,GLAT_1,Name_2,r_Dist,Nstar,Dkin_1,e_Dkin,DM,e_DM,DS,
     +  e_DS,v_Dspec_
c    .......End.of.Just test output...........
      end do
      close(1)

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