FORTRAN Generation
(/./ftp/cats/J/AJ/138/1380)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/138/1380 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-16
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/AJ/138/1380     Dust clumps in the Galactic Plane     (Matthews+, 2009)
*================================================================================
*Looking through the Galactic Plane: imaging cold dust toward l = 44{deg}.
*    Matthews H., Kirk H., Johnstone D., Weferling B., Cohen M., Jenness T.,
*    Evans A., Davis G., Dent W.R.F., Fuller G., Jackson J.M., Rathborne J.,
*    Richer J., Simon R.
*   <Astron. J., 138, 1380-1402 (2009)>
*   =2009AJ....138.1380M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Clumps identified in the 850um image

      integer*4 nr__
      parameter (nr__=132)	! Number of records
      character*69 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)

      integer*4     Seq         ! Clump number (<[MKJ2009] NNN> in Simbad)
      character*13  v_MKJ2009_  ! Name (GLL.lll+B.bbb) (1)
      integer*4     RAh         ! (h) Hour of right ascension (J2000) (2)
      integer*4     RAm         ! (min) Minute of right ascension (J2000) (2)
      real*4        RAs         ! (s) Second of right ascension (J2000) (2)
      character*1   DE_         ! Sign of declination (J2000) (2)
      integer*4     DEd         ! (deg) Degree of declination (J2000) (2)
      integer*4     DEm         ! (arcmin) Arcminute of declination (J2000) (2)
      integer*4     DEs         ! (arcsec) Arcsecond of declination (J2000) (2)
      real*4        P850        ! (Jy) 850um peak flux of the clump in Jy/beam unit (3)
      real*4        S850        ! (Jy) SCUBA/JCMT 850um total flux of the clump (3)
      real*4        Reff        ! (arcsec) Effective radius of the clump (3)
      real*4        P1200       ! (Jy) Peak flux at 1200um in Jy/beam unit (4)
      real*4        S1200       ! (Jy) SIMBA/SEST total flux at 1200um (4)
*Note (1): Name formed from equivalent Galactic coordinates, accurate to
*     approximately 4".
*Note (2): Position of peak surface brightness within the clump at 850um
*     (positional accuracy about 4").
*Note (3): Peak flux, total flux, and effective radius of the clumps as
*     determined by clfind (Williams et al. 1994, Cat. J/ApJ/428/693). The
*     absolute flux calibration is uncertain at a level of about 20%. The
*     effective radius has not been deconvolved from the telescope beam.
*Note (4): Peak flux and total flux at 1200um determined using the 850um
*     clump locations.

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

C  Declarations for 'table6.dat'	! Distance determinations obtained from
                             ^13^CO(1-0) and HI data

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

      integer*4     Seq_1       ! Clump number (as in table 2)
      real*4        Pk          ! (K) Peak ^13^CO(1-0) intensity
      real*4        Vlsr        ! (km/s) Local standard of rest velocity
      character*1   n_Dist      ! [N/F] Near/Far clump distance resolution
      real*4        Dist        ! (kpc) Clump distance based on clump velocity
      integer*4     HI          ! ?=0 HI catalogue cloud number (maintained locally
*                               at Boston University)
      character*1   n_Dist1     ! [N/F/0] Near/Far distance resolution based on HI
*                               cloud data
      real*4        Dist1       ! (kpc) ?=0 Cloud distance derived from HI cloud data

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

C  Declarations for 'table7.dat'	! Clump masses based on clump and cloud distance
                             determinations

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

      integer*4     Seq_2       ! Clump number
      real*8        Mclp        ! (Msun) Clump mass derived from the clump distance (5)
      real*8        Mcld        ! (Msun) ? Clump mass derived from the cloud distance (6)
*Note (5): Clump mass derived from the clump distance as listed in Table 6.
*Note (6): Clump mass derived from the cloud distance as listed in Table 6.

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

C  Declarations for 'table8.dat'	! Sources of emission probably associated with
                             dust clumps

      integer*4 nr__3
      parameter (nr__3=132)	! Number of records
      character*68 ar__3  	! Full-size record

      integer*4     Seq_3       ! Clump number
      character*64  Assoc       ! Association(s) (7)
*Note (7): Other sources of emission probably associated with this dust clump,
*          within a radius of 1 arcmin from the dust clump position.

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

C  Loading file 'table2.dat'	! Clumps identified in the 850um image

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,132
        read(1,'(A69)')ar__
        read(ar__,1)
     +  Seq,v_MKJ2009_,RAh,RAm,RAs,DE_,DEd,DEm,DEs,P850,S850,Reff,
     +  P1200,S1200
        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)
     +  Seq,v_MKJ2009_,RAh,RAm,RAs,DE_,DEd,DEm,DEs,P850,S850,Reff,
     +  P1200,S1200
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Distance determinations obtained from
*                             ^13^CO(1-0) and HI data

C  Format for file interpretation

    2 format(I3,1X,F5.3,1X,F6.2,1X,A1,1X,F5.2,1X,I3,1X,A1,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,132
        read(1,'(A36)')ar__1
        read(ar__1,2)Seq_1,Pk,Vlsr,n_Dist,Dist,HI,n_Dist1,Dist1
c    ..............Just test output...........
        write(6,2)Seq_1,Pk,Vlsr,n_Dist,Dist,HI,n_Dist1,Dist1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! Clump masses based on clump and cloud distance
*                             determinations

C  Format for file interpretation

    3 format(I3,1X,F8.1,1X,F8.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,132
        read(1,'(A21)')ar__2
        read(ar__2,3)Seq_2,Mclp,Mcld
        if(ar__2(14:21) .EQ. '') Mcld = rNULL__
c    ..............Just test output...........
        write(6,3)Seq_2,Mclp,Mcld
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table8.dat'	! Sources of emission probably associated with
*                             dust clumps

C  Format for file interpretation

    4 format(I3,1X,A64)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table8.dat')
      write(6,*) '....Loading file: table8.dat'
      do i__=1,132
        read(1,'(A68)')ar__3
        read(ar__3,4)Seq_3,Assoc
c    ..............Just test output...........
        write(6,4)Seq_3,Assoc
c    .......End.of.Just test output...........
      end do
      close(1)

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