FORTRAN Generation
(/./ftp/cats/J/ApJS/144/47)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJS/144/47 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-08
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/ApJS/144/47       Outer galaxy molecular cloud catalog     (Brunt+, 2003)
*================================================================================
*An outer galaxy molecular cloud catalog.
*    Brunt C.M., Kerton C.R., Pomerleau C.
*   <Astrophys. J. Suppl. Ser. 144, 47 (2003)>
*   =2003ApJS..144...47B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! Properties of objects decomposed from the
                              Five College Radio Astronomy Observatory
                              12CO(J=1-0) Survey of the Outer Galaxy

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

C  Position composed of: GLON GLAT
      integer*4     v_BKP2003_ (nr__) ! Cloud Identification number (1)
      integer*4     OIN        (nr__) ! Cloud ID number (phase 1) (2)
      integer*4     Npix       (nr__) ! Number of pixels in cloud
      real*8        GLON       (nr__) ! (deg) Galactic Longitude of cloud centroid (3)
      real*4        GLAT       (nr__) ! (deg) Galactic Latitude of cloud centroid (3)
      real*8        Vlsr       (nr__) ! (km/s) LSR velocity of cloud centroid (4)
      real*8        GLONp      (nr__) ! (deg) Galactic Longitude of cloud peak
*                                    temperature (5)
      real*4        GLATp      (nr__) ! (deg) Galactic Latitude of cloud peak
*                                    temperature (5)
      real*8        Vlsrp      (nr__) ! (km/s) LSR velocity of cloud peak temperature (5)
      real*8        GLONm      (nr__) ! (deg) Minimum Galactic Longitude of cloud (6)
      real*8        GLONM_1    (nr__) ! (deg) Maximum Galactic Longitude of cloud (6)
      real*4        GLATm      (nr__) ! (deg) Minimum Galactic Latitude of cloud (6)
      real*4        GLATM_1    (nr__) ! (deg) Maximum Galactic Latitude of cloud (6)
      real*8        Vlsrm      (nr__) ! (km/s) Minimum LSR velocity of cloud (6)
      real*8        VlsrM_1    (nr__) ! (km/s) Maximum LSR velocity of cloud (6)
      real*4        Tpeak      (nr__) ! (K) Cloud peak temperature (7)
      real*8        Int        (nr__) ! (K.km/s) Cloud integrated intensity (8)
      real*4        s1         (nr__) ! (arcmin) Raw fitted major axis diameter (9)
      real*4        s2         (nr__) ! (arcmin) Raw fitted minor axis diameter (9)
      real*4        phi        (nr__) ! (deg) Raw fitted major axis position angle (10)
      real*4        u          (nr__) ! (km/s) Raw fitted linewidth (11)
      real*8        Ic         (nr__) ! (K.km/s) Corrected integrated intensity (12)
      real*4        s1cb       (nr__) ! (arcmin) Corrected major axis diameter (13)
      real*4        s2cb       (nr__) ! (arcmin) Corrected minor axis diameter (13)
      real*4        ucb        (nr__) ! (km/s) Corrected linewidth (14)
      real*8        e_Ic       (nr__) ! (K.km/s) Error on Ic (15)
      real*4        e_s1cb     (nr__) ! (arcmin) Error on s1cb (15)
      real*4        e_s2cb     (nr__) ! (arcmin) Error on s2cb (15)
      real*4        e_ucb      (nr__) ! (km/s) Error on ucb (15)
      integer*4     Ns         (nr__) ! Number of spatial pixels in cloud (16)
      integer*4     Flag       (nr__) ! Flag value (17)
*Note (1): Clouds with Subobject Identification Number (SIN) = 1,2,3
*    have been removed from the catalog, as they were determined to be
*    artifactual in nature.
*Note (2): Clouds with a common OIN were contiguous after simple
*    thresholding above T=0.8K; OIN=423 does not exist.
*Note (3): For clouds that are fitted with a 2D elliptical Gaussian, the
*    fitted central coordinates are recorded. If no fit was possible, the
*    temperature-weighted centroid coordinates are recorded (see Note 8).
*Note (4): For clouds with fitted Gaussian line profiles, the fitted
*    central velocity is recorded. If no fit was possible, the
*    temperature-weighted centroid velocity is recorded (see Note 10).
*Note (5): No fitting of the coordinates of the peak temperature position
*    was carried out; thus these coordinates are quantized on the data grid.
*Note (6): The boundaries of the clouds are extended by 1/2 pixel
*    (50.22/2arcsec) from the pixel-centered coordinates of the cloud edges
*    in each direction.
*Note (7): No fitting of peak temperature value was carried out.
*Note (8): Summation over all temperature values * spectroscopic channel
*     width (0.82446km/s).
*Note (9): 2D elliptical gaussian fits were attempted for all clouds with
*    Ns>=5 pixels. An entry of zero for the major and minor axis diameters
*    indicates that a fit was not attempted or the fit failed to converge.
*Note (10): The reference point for position angles (phi=0) points along a
*    line of constant Galactic latitude towards lower Galactic longitude;
*    phi is measured clockwise from this point, and takes values
*    0<=phi<=180.
*Note (11): A gaussian fit was attempted for all clouds defined over
*    at least 3 spectroscopic channels. An entry of zero for the linewidth
*    indicates that a fit was not attempted or the fit failed to converge.
*Note (12): Integrated intensity corrected for the effects of truncation
*    at T=0.8K, based upon analysis of global signal recovery fractions.
*    The corrected values are derived only for clouds with Tp>=1.6K (see
*    discussion in paper).
*Note (13): Major and minor axis diameters corrected for the effects of
*    truncation at T=0.8K and for the effects of beam-smearing. The
*    corrected values are derived only for clouds with Tp>=1.6K (see paper).
*Note (14): Linewidth corrected for the effects of truncation at T=0.8K
*    and for the effects of instrumental broadening. The corrected values
*    are derived only for clouds with Tp>=1.6K (see paper).
*Note (15): For the definition of these error estimates, see paper.
*Note (16): Ns is the number of spatial pixels over which the
*    velocity-integrated cloud is defined. (Ns/pi)^0.5^ may be used as an
*    alternative definition of cloud 'size'. The pixel size is 0.837arcmin.
*Note (17): Flags are multiplicative if non-zero.
*     (e.g. flag=35 means that flag=5 AND flag=7)
*    The bandpass ends are at +40km/s (+ve) and -152km/s (-ve).
*     0 : no flag
*     2 : Cloud adjoins longitude boundary of the data
*     3 : Cloud adjoins latitude boundary of the data
*     5 : Cloud adjoins velocity boundary of the data
*     7 : Possible artifacts in the spectral channels near the positive
*          VLSR bandpass end
*    11 : Possible artifacts in the spectral channels near the negative
*          VLSR bandpass end
*    13 : Anomalous spectral line intensities compared to the surrounding
*          emission; the affected block is rectangular in shape and
*          coincident with the FCRAO array pointing position

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

C  Loading file 'table3.dat'	! Properties of objects decomposed from the
*                              Five College Radio Astronomy Observatory
*                              12CO(J=1-0) Survey of the Outer Galaxy

C  Format for file interpretation

    1 format(
     +  I5,1X,I4,1X,I5,1X,F7.3,1X,F6.3,1X,F7.2,1X,F7.3,1X,F6.3,1X,
     +  F7.2,1X,F7.3,1X,F7.3,1X,F6.3,1X,F6.3,1X,F7.2,1X,F7.2,1X,F5.2,
     +  1X,F8.2,1X,F5.2,1X,F5.2,1X,F5.1,1X,F5.2,1X,F8.2,1X,F5.2,1X,
     +  F5.2,1X,F5.2,1X,F8.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,I5,1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,14592
        read(1,'(A211)')ar__
        read(ar__,1)
     +  v_BKP2003_(i__),OIN(i__),Npix(i__),GLON(i__),GLAT(i__),
     +  Vlsr(i__),GLONp(i__),GLATp(i__),Vlsrp(i__),GLONm(i__),
     +  GLONM_1(i__),GLATm(i__),GLATM_1(i__),Vlsrm(i__),VlsrM_1(i__),
     +  Tpeak(i__),Int(i__),s1(i__),s2(i__),phi(i__),u(i__),Ic(i__),
     +  s1cb(i__),s2cb(i__),ucb(i__),e_Ic(i__),e_s1cb(i__),
     +  e_s2cb(i__),e_ucb(i__),Ns(i__),Flag(i__)
c    ..............Just test output...........
        write(6,1)
     +  v_BKP2003_(i__),OIN(i__),Npix(i__),GLON(i__),GLAT(i__),
     +  Vlsr(i__),GLONp(i__),GLATp(i__),Vlsrp(i__),GLONm(i__),
     +  GLONM_1(i__),GLATm(i__),GLATM_1(i__),Vlsrm(i__),VlsrM_1(i__),
     +  Tpeak(i__),Int(i__),s1(i__),s2(i__),phi(i__),u(i__),Ic(i__),
     +  s1cb(i__),s2cb(i__),ucb(i__),e_Ic(i__),e_s1cb(i__),
     +  e_s2cb(i__),e_ucb(i__),Ns(i__),Flag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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