FORTRAN Generation
(/./ftp/cats/J/ApJ/606/929)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/606/929 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 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/606/929       IR to mm observations of IRAS 18317-0757     (Hunter+, 2004)
*================================================================================
*IRAS 18317-0757: a cluster of embedded massive stars and protostars.
*    Hunter T.R., Zhang Q., Sridharan T.K.
*   <Astrophys. J., 606, 929-942 (2004)>
*   =2004ApJ...606..929H
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Observed emission properties of submillimeter
                              clumps

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

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

      character*8   Source      ! Source name (1)
      integer*4     RAh         ! (h) ? Right ascension (J2000.0)
      integer*4     RAm         ! (min) ? Right ascension (J2000.0)
      real*4        RAs         ! (s) ? Right ascension (J2000.0)
      character*1   DE_         ! Declination sign (J2000.0)
      integer*4     DEd         ! (deg) ? Declination (J2000.0)
      integer*4     DEm         ! (arcmin) ? Declination (J2000.0)
      integer*4     DEs         ! (arcsec) ? Declination (J2000.0)
      integer*4     S350um      ! (Jy) Flux density at 350{mu}m, within 22" aperture
      integer*4     e_S350um    ! (Jy) rms uncertainty on S350um
      character*1   l_S2_7mm    ! Limit flag on S2.7mm
*                                     (upper limits are 3{sigma})
      real*4        S2_7mm      ! (Jy) Flux density at 2.7mm, within 22" aperture
      real*4        e_S2_7mm    ! (Jy) ? rms uncertainty on S2.7mm
      integer*4     Mass        ! (solMass) Mass (2)
      integer*4     e_Mass      ! (solMass) rms uncertainty on Mass
      real*4        logNH       ! ([cm-2]) ? Hydrogen column density (3)
      real*4        e_logNH     ! ([cm-2]) ? rms uncertainty on logNH
      integer*4     AV          ! [52/144]? Extinction in V band, in magnitudes,
*                                   AV=NH/(4*10^21^) (4)
      real*4        AK          ! (mag) ? Extinction in K band, AK=0.112*AV (4)
*Note (1): Clumps are identified as [HCW2000] IRAS 18317-0757 SMM N in Simbad.
*     "Total" represents the total flux including extended emission within
*     dotted region of Fig.2.
*Note (2): Mass, Assuming T=25K and grain emissivity Q=1.0x10^-4^ at 350um
*          (Hildebrand, 1983QJRAS..24..267H)
*Note (3): Hydrogen column density Assuming uniform emission of diameter 11"
*          (0.25pc).
*Note (4): Extinction to a star at the center of the dust core, i.e.,
*    half the column density, reduced by a factor of 2 to more accurately
*    estimate the extinction toward a young star at the center of the
*    clump, rather than behind it.

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

C  Declarations for 'table5.dat'	! Position and mass of C^18^O (1-0) clumps

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

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

      integer*4     C18O        ! Sequential number, [HZS2004] C18O NN
      integer*4     RAh_1       ! (h) Right ascension (J2000.0)
      integer*4     RAm_1       ! (min) Right ascension (J2000.0)
      real*4        RAs_1       ! (s) Right ascension (J2000.0)
      character*1   DE__1       ! Declination sign (J2000.0)
      integer*4     DEd_1       ! (deg) Declination (J2000.0)
      integer*4     DEm_1       ! (arcmin) Declination (J2000.0)
      real*4        DEs_1       ! (arcsec) Declination (J2000.0)
      real*4        Emi         ! (Jy.km/s) Emission
      real*4        logN_C18O   ! ([cm-2]) C^18^O column density
      real*4        AK_1        ! (mag) Extinction in K band
      integer*4     MH2         ! (solMass) H_2_ mass
      real*4        Vel         ! (km/s) Velocity
      real*4        e_Vel       ! (km/s) rms uncertainty on Vel
      real*4        PFlux       ! (Jy) Peak flux, in Jy/beam
      real*4        e_PFlux     ! (Jy) rms uncertainty on PFlux, in Jy/beam
      real*4        Width       ! (km/s) Line width
      real*4        e_Width     ! (km/s) rms uncertainty on Width
      integer*4     Mvirial     ! (solMass) Virial mass (1)
*Note (1):
*                          ---------------------------
*                          Emission    MH2    Mvirial
*                          ---------------------------
*   Total clump component    352      2930    2915
*   Extended component       527      4410
*   Total emission           879      7340
*                          ---------------------------

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

C  Declarations for 'table7.dat'	! Stars detected in all three 2MASS bands

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

      integer*4     Star        ! Star number given in Figure 12 and 13,
*                                   [HZS2004] Star NNN
      character*1   f_Star      ! [a] Flag on Star (1)
      character*16  v2MASS      ! The 2MASS PSC name
*Note (1): a: Stars with A_V_>10, according to the color-color diagram
*     shown in Figure 12.

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

C  Loading file 'table1.dat'	! Observed emission properties of submillimeter
*                              clumps

C  Format for file interpretation

    1 format(
     +  A8,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,I3,1X,I2,1X,A1,
     +  F5.3,1X,F4.2,1X,I4,1X,I3,1X,F5.2,1X,F4.2,1X,I3,1X,F4.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,7
        read(1,'(A88)')ar__
        read(ar__,1)
     +  Source,RAh,RAm,RAs,DE_,DEd,DEm,DEs,S350um,e_S350um,l_S2_7mm,
     +  S2_7mm,e_S2_7mm,Mass,e_Mass,logNH,e_logNH,AV,AK
        if(ar__(10:11) .EQ. '') RAh = iNULL__
        if(ar__(13:14) .EQ. '') RAm = iNULL__
        if(ar__(16:19) .EQ. '') RAs = rNULL__
        if(ar__(22:23) .EQ. '') DEd = iNULL__
        if(ar__(25:26) .EQ. '') DEm = iNULL__
        if(ar__(28:29) .EQ. '') DEs = iNULL__
        if(ar__(45:48) .EQ. '') e_S2_7mm = rNULL__
        if(ar__(59:63) .EQ. '') logNH = rNULL__
        if(ar__(65:68) .EQ. '') e_logNH = rNULL__
        if(ar__(70:72) .EQ. '') AV = iNULL__
        if(ar__(74:77) .EQ. '') AK = rNULL__
        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)
     +  Source,RAh,RAm,RAs,DE_,DEd,DEm,DEs,S350um,e_S350um,l_S2_7mm,
     +  S2_7mm,e_S2_7mm,Mass,e_Mass,logNH,e_logNH,AV,AK
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Position and mass of C^18^O (1-0) clumps

C  Format for file interpretation

    2 format(
     +  I2,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,F4.1,1X,F5.2,
     +  1X,F4.1,1X,I3,1X,F4.1,1X,F3.1,1X,F3.1,1X,F3.1,1X,F3.1,1X,F3.1,
     +  1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,26
        read(1,'(A77)')ar__1
        read(ar__1,2)
     +  C18O,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Emi,logN_C18O,
     +  AK_1,MH2,Vel,e_Vel,PFlux,e_PFlux,Width,e_Width,Mvirial
        RAdeg_1 = rNULL__
        DEdeg_1 = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
        if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
        if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
        if(DEd_1 .GE. 0) DEdeg_1=DEd_1
        if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
        if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600.
        if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c    ..............Just test output...........
        write(6,2)
     +  C18O,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Emi,logN_C18O,
     +  AK_1,MH2,Vel,e_Vel,PFlux,e_PFlux,Width,e_Width,Mvirial
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! Stars detected in all three 2MASS bands

C  Format for file interpretation

    3 format(I3,1X,A1,1X,A16)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,44
        read(1,'(A23)')ar__2
        read(ar__2,3)Star,f_Star,v2MASS
c    ..............Just test output...........
        write(6,3)Star,f_Star,v2MASS
c    .......End.of.Just test output...........
      end do
      close(1)

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