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 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-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      (nr__) ! (deg) Right Ascension J2000.0
      real*8        DEdeg      (nr__) ! (deg)     Declination J2000.0
C  ---------------------------------- ! (position vector(s) in degrees)

      character*8   Source     (nr__) ! Source name (1)
      integer*4     RAh        (nr__) ! (h) ? Right ascension (J2000.0)
      integer*4     RAm        (nr__) ! (min) ? Right ascension (J2000.0)
      real*4        RAs        (nr__) ! (s) ? Right ascension (J2000.0)
      character*1   DE_        (nr__) ! Declination sign (J2000.0)
      integer*4     DEd        (nr__) ! (deg) ? Declination (J2000.0)
      integer*4     DEm        (nr__) ! (arcmin) ? Declination (J2000.0)
      integer*4     DEs        (nr__) ! (arcsec) ? Declination (J2000.0)
      integer*4     S350um     (nr__) ! (Jy) Flux density at 350{mu}m, within 22" aperture
      integer*4     e_S350um   (nr__) ! (Jy) rms uncertainty on S350um
      character*1   l_S2_7mm   (nr__) ! Limit flag on S2.7mm
*                                     (upper limits are 3{sigma})
      real*4        S2_7mm     (nr__) ! (Jy) Flux density at 2.7mm, within 22" aperture
      real*4        e_S2_7mm   (nr__) ! (Jy) ? rms uncertainty on S2.7mm
      integer*4     Mass       (nr__) ! (solMass) Mass (2)
      integer*4     e_Mass     (nr__) ! (solMass) rms uncertainty on Mass
      real*4        logNH      (nr__) ! ([cm-2]) ? Hydrogen column density (3)
      real*4        e_logNH    (nr__) ! ([cm-2]) ? rms uncertainty on logNH
      integer*4     AV         (nr__) ! [52/144]? Extinction in V band, in magnitudes,
*                                   AV=NH/(4*10^21^) (4)
      real*4        AK         (nr__) ! (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    (nr__1) ! (deg) Right Ascension J2000.0
      real*8        DEdeg_1    (nr__1) ! (deg)     Declination J2000.0
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     C18O       (nr__1) ! Sequential number, [HZS2004] C18O NN
      integer*4     RAh_1      (nr__1) ! (h) Right ascension (J2000.0)
      integer*4     RAm_1      (nr__1) ! (min) Right ascension (J2000.0)
      real*4        RAs_1      (nr__1) ! (s) Right ascension (J2000.0)
      character*1   DE__1      (nr__1) ! Declination sign (J2000.0)
      integer*4     DEd_1      (nr__1) ! (deg) Declination (J2000.0)
      integer*4     DEm_1      (nr__1) ! (arcmin) Declination (J2000.0)
      real*4        DEs_1      (nr__1) ! (arcsec) Declination (J2000.0)
      real*4        Emi        (nr__1) ! (Jy.km/s) Emission
      real*4        logN_C18O  (nr__1) ! ([cm-2]) C^18^O column density
      real*4        AK_1       (nr__1) ! (mag) Extinction in K band
      integer*4     MH2        (nr__1) ! (solMass) H_2_ mass
      real*4        Vel        (nr__1) ! (km/s) Velocity
      real*4        e_Vel      (nr__1) ! (km/s) rms uncertainty on Vel
      real*4        PFlux      (nr__1) ! (Jy) Peak flux, in Jy/beam
      real*4        e_PFlux    (nr__1) ! (Jy) rms uncertainty on PFlux, in Jy/beam
      real*4        Width      (nr__1) ! (km/s) Line width
      real*4        e_Width    (nr__1) ! (km/s) rms uncertainty on Width
      integer*4     Mvirial    (nr__1) ! (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       (nr__2) ! Star number given in Figure 12 and 13,
*                                   [HZS2004] Star NNN
      character*1   f_Star     (nr__2) ! [a] Flag on Star (1)
      character*16  v2MASS     (nr__2) ! 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(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),S350um(i__),e_S350um(i__),l_S2_7mm(i__),
     +  S2_7mm(i__),e_S2_7mm(i__),Mass(i__),e_Mass(i__),logNH(i__),
     +  e_logNH(i__),AV(i__),AK(i__)
        if(ar__(10:11) .EQ. '') RAh(i__) = iNULL__
        if(ar__(13:14) .EQ. '') RAm(i__) = iNULL__
        if(ar__(16:19) .EQ. '') RAs(i__) = rNULL__
        if(ar__(22:23) .EQ. '') DEd(i__) = iNULL__
        if(ar__(25:26) .EQ. '') DEm(i__) = iNULL__
        if(ar__(28:29) .EQ. '') DEs(i__) = iNULL__
        if(ar__(45:48) .EQ. '') e_S2_7mm(i__) = rNULL__
        if(ar__(59:63) .EQ. '') logNH(i__) = rNULL__
        if(ar__(65:68) .EQ. '') e_logNH(i__) = rNULL__
        if(ar__(70:72) .EQ. '') AV(i__) = iNULL__
        if(ar__(74:77) .EQ. '') AK(i__) = rNULL__
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  Source(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),S350um(i__),e_S350um(i__),l_S2_7mm(i__),
     +  S2_7mm(i__),e_S2_7mm(i__),Mass(i__),e_Mass(i__),logNH(i__),
     +  e_logNH(i__),AV(i__),AK(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
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(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
     +  DEd_1(i__),DEm_1(i__),DEs_1(i__),Emi(i__),logN_C18O(i__),
     +  AK_1(i__),MH2(i__),Vel(i__),e_Vel(i__),PFlux(i__),
     +  e_PFlux(i__),Width(i__),e_Width(i__),Mvirial(i__)
        RAdeg_1(i__) = rNULL__
        DEdeg_1(i__) = 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(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
        if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
        if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
        if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
        if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
        if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
        if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  C18O(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
     +  DEd_1(i__),DEm_1(i__),DEs_1(i__),Emi(i__),logN_C18O(i__),
     +  AK_1(i__),MH2(i__),Vel(i__),e_Vel(i__),PFlux(i__),
     +  e_PFlux(i__),Width(i__),e_Width(i__),Mvirial(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
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(i__),f_Star(i__),v2MASS(i__)
c    ..............Just test output...........
        write(6,3)Star(i__),f_Star(i__),v2MASS(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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