FORTRAN Generation
(/./ftp/cats/J/ApJ/668/906)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/668/906 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 2026-Oct-14
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/668/906       Massive clumps in NGC 6334               (Munoz+, 2007)
*================================================================================
*Massive clumps in the NGC 6334 star-forming region.
*    Munoz D.J., Mardones D., Garay G., Rebolledo D., Brooks K., Bontemps S.
*   <Astrophys. J., 668, 906-917 (2007)>
*   =2007ApJ...668..906M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Radio, FIR, and Millimeter Sources in NGC 6334

      integer*4 nr__
      parameter (nr__=8)	! Number of records
      character*104 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*12  RName      (nr__) ! Radio name (1)
      integer*4     RAh        (nr__) ! (h) ? Radio right ascension (J2000.0)
      integer*4     RAm        (nr__) ! (min) ? Radio right ascension (J2000.0)
      real*4        RAs        (nr__) ! (s) ? Radio right ascension (J2000.0)
      character*1   DE_        (nr__) ! Radio declination sign (J2000.0)
      integer*4     DEd        (nr__) ! (deg) ? Radio declination (J2000.0)
      integer*4     DEm        (nr__) ! (arcmin) ? Radio declination (J2000.0)
      integer*4     DEs        (nr__) ! (arcsec) ? Radio declination (J2000.0)
      character*4   FIR        (nr__) ! Far-IR name
      integer*4     RAFh       (nr__) ! (h) ? FIR right ascension (J2000.0)
      integer*4     RAFm       (nr__) ! (min) ? FIR right ascension (J2000.0)
      real*4        RAFs       (nr__) ! (s) ? FIR right ascension (J2000.0)
      character*1   DEF_       (nr__) ! FIR declination sign (J2000.0)
      integer*4     DEFd       (nr__) ! (deg) ? FIR declination (J2000.0)
      integer*4     DEFm       (nr__) ! (arcmin) ? FIR declination (J2000.0)
      integer*4     DEFs       (nr__) ! (arcsec) ? FIR declination (J2000.0)
      character*6   SIMBA      (nr__) ! SIMBA name
      character*10  SIMBAs     (nr__) ! Other SIMBA names
      integer*4     RASh       (nr__) ! (h) ? SIMBA right ascension (J2000.0)
      integer*4     RASm       (nr__) ! (min) ? SIMBA right ascension (J2000.0)
      real*4        RASs       (nr__) ! (s) ? SIMBA right ascension (J2000.0)
      character*1   DES_       (nr__) ! SIMBA declination sign (J2000.0)
      integer*4     DESd       (nr__) ! (deg) ? SIMBA declination (J2000.0)
      integer*4     DESm       (nr__) ! (arcmin) ? SIMBA declination (J2000.0)
      integer*4     DESs       (nr__) ! (arcsec) ? SIMBA declination (J2000.0)
      character*5   Ref        (nr__) ! References (2)
*Note (1): The radio counterpart for FIR source V is observed at 1.6GHz with
*     similar peak intensity to G351.20+0.70, but was not identified earlier
*     as an HII region but as part of a PDR shell (Moran et al.
*     1990ApJ...348..147M; Jackson & Kraemer 1999ApJ...512..260J; Burton et
*     al. 2000ApJ...542..359B).
*     For sources, A, C, D, E, F, [MMG2007] Radio A in Simbad.
*Note (2): References as follows:
*      1 = Rodriguez et al., 1982ApJ...255..103R
*      2 = McBreen et al., 1979ApJ...232L.183M
*      3 = Gezari, 1982ApJ...259L..29G
*      4 = Moran et al., 1990ApJ...348..147M
*      5 = this work

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

C  Declarations for 'table4.dat'	! Clump properties in NGC 6334

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

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

      character*6   v_MMG2007_ (nr__1) ! SIMBA clump identification, cl NNN (1)
      character*1   f__MMG2007_(nr__1) ! [B] indicates a significantly warmer cloud
      integer*4     RAh_1      (nr__1) ! (h) Hour of Right Ascension (J2000)
      integer*4     RAm_1      (nr__1) ! (min) Minute of Right Ascension (J2000)
      real*4        RAs_1      (nr__1) ! (s) Second of Right Ascension (J2000)
      character*1   DE__1      (nr__1) ! Sign of the Declination (J2000)
      integer*4     DEd_1      (nr__1) ! (deg) Degree of Declination (J2000)
      integer*4     DEm_1      (nr__1) ! (arcmin) Arcminute of Declination (J2000)
      real*4        DEs_1      (nr__1) ! (arcsec) Arcsecond of Declination (J2000)
      real*4        Sp         (nr__1) ! (Jy) Peak intensity at 1.2mm
      real*4        S          (nr__1) ! (Jy) Flux density at 1.2mm
      real*4        Reff       (nr__1) ! (pc) Clump effective radius
      real*4        Mass1_2    (nr__1) ! (solMass) Clump mass from the 1.2mm data (3)
      real*4        Mass2T     (nr__1) ! (solMass) ? Clump mass from 2 temperature clump
*                                    ensemble (4)
      real*4        Nden       (nr__1) ! (cm-3) ? Average number density (5)
      character*22  Reg        (nr__1) ! Region name
*Note (1): Clump 210 has an undetermined mass after subtracting the
*     free-free emission at 1.2mm.
*Note (3): Computed from all the emission at 1.2 mm and assuming a
*     temperature of 17K. while M considers the two-temperature clump
*     ensemble and the correction by free-free emission.
*Note (4): Corrected by free-free emission.
*Note (5): Computed using Reff and Mass2T and assuming spherical clumps with
*     a mean molecular weight of {mu}=2.3.

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

C  Loading file 'table1.dat'	! Radio, FIR, and Millimeter Sources in NGC 6334

C  Format for file interpretation

    1 format(
     +  A12,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,A4,1X,I2,1X,
     +  I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,A6,1X,A10,1X,I2,1X,I2,1X,
     +  F4.1,1X,A1,I2,1X,I2,1X,I2,1X,A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,8
        read(1,'(A104)')ar__
        read(ar__,1)
     +  RName(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),FIR(i__),RAFh(i__),RAFm(i__),RAFs(i__),
     +  DEF_(i__),DEFd(i__),DEFm(i__),DEFs(i__),SIMBA(i__),
     +  SIMBAs(i__),RASh(i__),RASm(i__),RASs(i__),DES_(i__),DESd(i__),
     +  DESm(i__),DESs(i__),Ref(i__)
        if(ar__(14:15) .EQ. '') RAh(i__) = iNULL__
        if(ar__(17:18) .EQ. '') RAm(i__) = iNULL__
        if(ar__(20:23) .EQ. '') RAs(i__) = rNULL__
        if(ar__(26:27) .EQ. '') DEd(i__) = iNULL__
        if(ar__(29:30) .EQ. '') DEm(i__) = iNULL__
        if(ar__(32:33) .EQ. '') DEs(i__) = iNULL__
        if(ar__(40:41) .EQ. '') RAFh(i__) = iNULL__
        if(ar__(43:44) .EQ. '') RAFm(i__) = iNULL__
        if(ar__(46:49) .EQ. '') RAFs(i__) = rNULL__
        if(ar__(52:53) .EQ. '') DEFd(i__) = iNULL__
        if(ar__(55:56) .EQ. '') DEFm(i__) = iNULL__
        if(ar__(58:59) .EQ. '') DEFs(i__) = iNULL__
        if(ar__(79:80) .EQ. '') RASh(i__) = iNULL__
        if(ar__(82:83) .EQ. '') RASm(i__) = iNULL__
        if(ar__(85:88) .EQ. '') RASs(i__) = rNULL__
        if(ar__(91:92) .EQ. '') DESd(i__) = iNULL__
        if(ar__(94:95) .EQ. '') DESm(i__) = iNULL__
        if(ar__(97:98) .EQ. '') DESs(i__) = iNULL__
        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)
     +  RName(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),FIR(i__),RAFh(i__),RAFm(i__),RAFs(i__),
     +  DEF_(i__),DEFd(i__),DEFm(i__),DEFs(i__),SIMBA(i__),
     +  SIMBAs(i__),RASh(i__),RASm(i__),RASs(i__),DES_(i__),DESd(i__),
     +  DESm(i__),DESs(i__),Ref(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 'table4.dat'	! Clump properties in NGC 6334

C  Format for file interpretation

    2 format(
     +  A6,1X,A1,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F4.1,1X,F5.2,
     +  1X,F5.2,1X,F4.2,1X,E7.2,1X,E7.2,1X,E7.2,1X,A22)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,182
        read(1,'(A95)')ar__1
        read(ar__1,2)
     +  v_MMG2007_(i__),f__MMG2007_(i__),RAh_1(i__),RAm_1(i__),
     +  RAs_1(i__),DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),
     +  Sp(i__),S(i__),Reff(i__),Mass1_2(i__),Mass2T(i__),Nden(i__),
     +  Reg(i__)
        if(ar__1(58:64) .EQ. '') Mass2T(i__) = rNULL__
        if(ar__1(66:72) .EQ. '') Nden(i__) = rNULL__
        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)
     +  v_MMG2007_(i__),f__MMG2007_(i__),RAh_1(i__),RAm_1(i__),
     +  RAs_1(i__),DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),
     +  Sp(i__),S(i__),Reff(i__),Mass1_2(i__),Mass2T(i__),Nden(i__),
     +  Reg(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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