FORTRAN Generation
(/./ftp/cats/J/A_A/584/A92)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/584/A92 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 2026-May-19
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/A+A/584/A92   Galactic Cold Cores. IV. Cold sub-mm sources (Montillaud+, 2015)
*================================================================================
*Galactic Cold Cores.
*IV. Cold sub-millimetre sources: catalogue and statistical analysis.
*    Montillaud J., Juvela M., Rivera-Ingraham A., Malinen J., Pelkonen V.-M.,
*    Ristorcelli I., Montier L., Marshall D.J., Marton G., Pagani L., Toth L.V.,
*    Zahorecz S., Ysard N., McGehee P., Paladini R., Falgarone E.,
*    Bernard J.-P., Motte F., Zavagno A., Doi Y.
*    <Astron. Astrophys. 584, A92 (2015)>
*    =2015A&A...584A..92M        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! General properties of Herschel fields

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

      character*13  Field       ! Field name
      real*4        Dist        ! (kpc) ?=- Adopted distance
      real*4        E_Dist      ! (kpc) ? Error on Dist (upper value)
      real*4        e_Dist_1    ! (kpc) ? Error on Dist (lower value)
      character*1   Flag        ! [0/2] Reliability flag on Dist (1)
      real*4        RG          ! (kpc) ?=- Galactic radius (galactocentric distance)
      integer*4     AltG        ! (pc) ?=- Galactic altitude
      real*4        T0_1        ! (K) 0.1th percentile dust temperature in the field
      real*4        T90         ! (K) 90th percentile dust temperature in the field
      real*4        Nh2         ! (cm-2) Median H_2_ column index in the field
      real*4        Mass        ! (Msun) ?=- Total mass in the field
      real*4        C90         ! (Msun) ?=- Mass at 90% completeness
      real*4        C50         ! (Msun) ?=- Mass at 90% completeness
      character*176 Assoc       ! Associated clouds and masers (2)
*Note (1): Reliability flag as follows:
*     0 = weak
*     1 = medium
*     2 = high level of confidence
*Note (2): the names of clouds from the LDN, MBM and TGU catalogues that lie
*  within 1.5 degrees of the field, in order of increasing distance from the
*  centre of the field. Known masers are also reported. We added horizontal lines
*  to mark the 90, 180 and 270 values of galactic longitude.

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

C  Declarations for 'gccscat.dat'	! The GCC source catalogue

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     ID          ! Source number in this catalogue
      character*13  Field_1     ! Name of the Herschel field where sources 
*                                     were extracted (GLLL.l+BB.bb)
      real*4        Dist_1      ! (kpc) Adopted distance
      real*4        E_Dist_2    ! (kpc) Upper distance uncertainty
      real*4        e_Dist_3    ! (kpc) Lower distance uncertainty
      character*1   Dflag       ! [0/2] Distance quality flag (1)
      real*8        RAdeg       ! (deg) Right ascension (J2000)
      real*8        DEdeg       ! (deg) Declination (J2000)
      real*8        GLON        ! (deg) Galactic longitude
      real*8        GLAT        ! (deg) Galactic latitude
      real*4        SIGGLO      ! Global significance of the source
*                                     extraction (2)
      character*1   FG          ! [0/3] getsources quality flag (2)(3)
      real*4        GOOD        ! Goodness of the extraction (2)
      real*4        SIGMONO1    ! Monochromatic significance of the source
*                                     extraction at 160 microns (2)
      integer*4     FM1         ! ? Monochromatic quality flag for the source
*                                     extraction at 160um (2) (4)
      real*4        FXPBEST1    ! (Jy/beam) ?=0 Peak flux value in the source at 160um
*                                     (Jansky/beam) (2) (5)
      real*4        e_FXPBEST1  ! (Jy/beam) ?=0 Uncertainty on the peak flux value in
*                                     the source at 160um (Jansky/beam) (2) (5)
      real*4        FXTBEST1    ! (Jy) ?=0 Total flux value in the source 
*                                     at 160um (2)
      real*4        e_FXTBEST1  ! (Jy) ?=0 Uncertainty on the total flux value in 
*                                     the source at 160um (2)
      real*4        AFWHM1      ! (arcsec) FWHM of the source major axis at 160um (2)
      real*4        BFWHM1      ! (arcsec) FWHM of the source minor axis at 160um (2)
      real*4        PA1         ! (deg) Position angle of the source major axis at
*                                     160um (2) (6)
      real*4        SIGMONO2    ! Monochromatic significance of the source
*                                     extraction at 250 microns (2)
      character*1   FM2         ! [0/2] Monochromatic quality flag for the
*                                   source extraction at 250um (2) (4)
      real*4        FXPBEST2    ! (Jy/beam) ?=0 Peak flux value in the source at 250um
*                                     (Jansky/beam) (2) (5)
      real*4        e_FXPBEST2  ! (Jy/beam) ?=0 Uncertainty on the peak flux value in 
*                                     the source at 250um (Jansky/beam) (2) (5)
      real*4        FXTBEST2    ! (Jy) ?=0 Total flux value in the source at 
*                                     250um (2)
      real*4        e_FXTBEST2  ! (Jy) ?=0 Uncertainty on the total flux value in 
*                                     the source at 250um (2)
      real*4        AFWHM2      ! (arcsec) FWHM of the source major axis at 250um (2)
      real*4        BFWHM2      ! (arcsec) FWHM of the source minor axis at 250um (2)
      real*4        PA2         ! (deg) Position angle of the source major axis 
*                                     at 250um (2) (6)
      real*4        SIGMONO3    ! Monochromatic significance of the source
*                                     extraction at 350 microns (2)
      character*1   FM3         ! [0/1] Monochromatic quality flag for the
*                                     source extraction at 350um (2) (4)
      real*4        FXPBEST3    ! (Jy/beam) ?=0 Peak flux value in the source at 350um
*                                     (Jansky/beam) (2) (5)
      real*4        e_FXPBEST3  ! (Jy/beam) ?=0 Uncertainty on the peak flux value in 
*                                     the source at 350um (Jansky/beam) (2) (5)
      real*4        FXTBEST3    ! (Jy) ?=0 Total flux value in the source 
*                                     at 350um (2)
      real*4        e_FXTBEST3  ! (Jy) ?=0 Uncertainty on the total flux value in 
*                                     the source at 350um (2)
      real*4        AFWHM3      ! (arcsec) FWHM of the source major axis at 350um (2)
      real*4        BFWHM3      ! (arcsec) FWHM of the source minor axis at 350um (2)
      real*4        PA3         ! (deg) Position angle of the source major axis 
*                                     at 350um (2) (6)
      real*4        SIGMONO4    ! Monochromatic significance of the source
*                                     extraction at 500 microns (2)
      character*1   FM4         ! [0/1] Monochromatic quality flag for the
*                                     source extraction at 500um (2) (4)
      real*4        FXPBEST4    ! (Jy/beam) ?=0 Peak flux value in the source at 500um
*                                     (Jansky/beam) (2) (5)
      real*4        e_FXPBEST4  ! (Jy/beam) ?=0 Uncertainty on the peak flux value in 
*                                     the source at 500um (Jansky/beam) (2) (5)
      real*4        FXTBEST4    ! (Jy) ?=0 Total flux value in the source 
*                                      at 500um (2)
      real*4        e_FXTBEST4  ! (Jy) ?=0 Uncertainty on the total flux value in 
*                                     the source at 500um (2)
      real*4        AFWHM4      ! (arcsec) FWHM of the source major axis at 500um (2)
      real*4        BFWHM4      ! (arcsec) FWHM of the source minor axis at 500um (2)
      real*4        PA4         ! (deg) Position angle of the source major axis at
*                                     500um (2) (6)
      real*4        SIGMONO5    ! Monochromatic significance of the source
*                                     extraction in the opacity map (tau_200) (2)
      character*1   FM5         ! [0/2] Monochromatic quality flag for the
*                                     source extraction in the opacity map
*                                     (tau_200) (2) (4)
      real*4        FXPBEST5    ! (beam-1) ?=0 Peak flux value in the source in the 
*                                     opacity map (tau_200) (beam-1) (2) (5)
      real*4        e_FXPBEST5  ! (beam-1) ?=0 Uncertainty on the peak flux value in 
*                                      the source in the opacity map (tau_200)
*                                     (beam-1) (2) (5)
      real*4        FXTBEST5    ! ?=0 Total flux value in the source in the 
*                                     opacity map (tau_200) (2)
      real*4        e_FXTBEST5  ! ?=0 Uncertainty on the total flux value in 
*                                      the source in the opacity map 
*                                      (tau_200) (2)
      real*4        AFWHM5      ! (arcsec) FWHM of the source major axis in the opacity
*                                     map (tau_200) (2)
      real*4        BFWHM5      ! (arcsec) FWHM of the source minor axis in the opacity
*                                     map (tau_200) (2)
      real*4        PA5         ! (deg) Position angle of the source major axis in 
*                                     the opacity map (tau_200) (2) (6)
      real*4        I200        ! (deg) Calculated surface brightness at 200um (7)
      real*4        Tdust       ! (K) Dust temperature (7)
      real*4        NH2_1       ! (cm-2) Column density (7)
      real*4        Lbol        ! (Lsun) Bolometric luminosity (7)
      real*4        Mass_1      ! (Msun) Source mass (7)
      real*8        Chi2        ! Chi2 of the SED fit (7)
      real*4        NH2bg       ! (cm-2) Background column density (7)
      real*8        aBE         ! Ratio of Bonnor-Ebert mass to estimated
*                                     mass (7)
      character*1   WKGalFlag   ! [0/3] Galactic/extragalactic flag using WISE
*                                     data and Koenig et al. 
*                                     (2012AAS...21932007K) method (8)
      character*1   XgalFlag    ! [0/1] Galactic/extragalactic flag after
*                                     combining all methods (9)
      character*1   StateNIR    ! [0/4] State of evolution derived from
*                                      near-IR data (10)
      character*1   Class       ! [0/9] Class of the embedded YSO (11)
      character*1   StateFIR    ! [0/2] State of evolution derived from
*                                     mid-IR data (12)
      character*1   State       ! [0/4] Final state of evolution (13)
*Note (1): Distance quality flag as follows:
*     0 = unreliable
*     1 = reliable estimate from only one method. Needs to be compared with an
*          independent method
*     2 = reliable estimates from several independent methods
*Note (2): getsources output are described in Men'shchikov et al.,
*     2012A&A...542A..81M.
*Note (3): We report here the definition given in the output file of getsources,
*     FG: Flag identifying global properties over all wavelengths, as follows:
*     0 = isolated source (not blended with any other source in any waveband)
*     1 = blended source (footprints intersect by more than 20% in at least
*          one waveband)
*     2 = sub-structured source (the inner 25% area of its footprint contains
*          an entire footprint of at least one source)
*     3 = sub-structuring source (causing a larger source to be flagged as
*          sub-structured)
*Note (4): We report here the definition given in the output file of getsources,
*     FM: Flag identifying monochromatic properties, as follows:
*     0 = no problems identified for the source at this wavelength
*     1 = substantially larger than its characteristic size:
*          AFWHMN>sqrt(2)*SCALEN
*     2 = larger than the desired maximum of [93 120 163 202 184] arcsec:
*          AFWHMN>sqrt(2)*max(SRCMAXSIZEN,APERTUREN)
*     3 = larger than both the characteristic size and the desired
*         maximum size or aperture
*     10 = peak intensity is not measurable: FXP_BESTN/FXP_ERRON<1.0
*     20 = total flux is not measurable: FXT_BESTN/FXT_ERRON<1.0
*     30 = both total flux and peak intensity are not measurable
*    100 = sub-structured (the inner 25% area of its footprint
*         contains an entire footprint of at least one source)
*    200 = significance is low: SIG_MONON<3.5
*Note (5): The beam FWHM are 38.5 arcsec for all 160, 250, 350, and 500 microns
*     maps, and 40.0 arcsec for the opacity maps.
*Note (6): East from North
*Note (7): Derived from the modified blackbody fit of the getsources total fluxes
*     FXTBEST2, FXTBEST3, FXTBEST4, with a fixed spectral index beta=2.
*Note (8): classification of galactic vs extragalactic sources using only WISE
*     data and Koenig et al. (2012AAS...21932007K)'s method (see Sect. 4.3)
*     as follows:
*      0 = galactic source
*      1 = source contaminated by galaxies
*      2 = the source is a group of galaxies
*      3 = extragalactic source
*Note (9): final classification of galactic vs extragalactic sources as follows:
*      0 = galactic source
*      1 = extragalactic source
*Note (10): classification of starless vs protostellar sources, using only WISE
*     data and Koenig et al. (2012AAS...21932007K)'s method (see Sect. 4.4.2)
*     as follows:
*      0 = irrelevant (because the source is extragalactic)
*      1 = undetermined (the method is not conclusive)
*      2 = starless
*      3 = protostellar
*      4 = protostellar, but one WISE source within the Herschel source was
*           originally classified as extragalactic (WKGalFlag>1 but XgalFlag=0)
*Note (11): Class (I or II) of the embedded YSO derived using WISE data and
*     Koenig et al. (2012AAS...21932007K)'s method.
*     Class 0 objects are also reported on the basis of WISE 22 microns and
*     AKARI 65 microns observations (Sect. 4.4.2). If several NIR objects are
*     classified in the Herschel source, or if the object is eligible to
*     several classes, the most advanced class is reported.
*      0 = Class 0
*      1 = Class I
*      2 = Class II
*      9 = undetermined or irrelevant
*Note (12): Classification of starless vs protostellar sources, using only
*      Herschel data (see Sect. 4.4.1) as follows:
*     0 = undetermined or irrelevant
*     1 = starless
*     2 = protostellar
*Note (13): Final classification of starless vs protostellar sources, combining
*      both methods as follows:
*     0 = undetermined or irrelevant
*     1 = probable starless source (flag 1 in Sect. 4.4.3)
*     2 = reliable starless source (flag 2 in Sect. 4.4.3)
*     3 = probable protostellar source (flag 1 Sect. 4.4.3)
*     4 = reliable protostellar source (flag 2 Sect. 4.4.3)

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

C  Loading file 'table1.dat'	! General properties of Herschel fields

C  Format for file interpretation

    1 format(
     +  A13,1X,F5.3,1X,F5.3,1X,F5.3,1X,A1,1X,F5.2,1X,I4,1X,F4.1,1X,
     +  F4.1,1X,E7.2,2X,E7.2,1X,E7.2,2X,E7.2,1X,A176)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,116
        read(1,'(A265)')ar__
        read(ar__,1)
     +  Field,Dist,E_Dist,e_Dist_1,Flag,RG,AltG,T0_1,T90,Nh2,Mass,C90,
     +  C50,Assoc
        if (idig(ar__(15:19)).EQ.0) Dist =  rNULL__
        if(ar__(21:25) .EQ. '') E_Dist = rNULL__
        if(ar__(27:31) .EQ. '') e_Dist_1 = rNULL__
        if (idig(ar__(35:39)).EQ.0) RG =  rNULL__
        if (AltG .EQ. 45) AltG =  iNULL__
        if (idig(ar__(65:71)).EQ.0) Mass =  rNULL__
        if (idig(ar__(73:79)).EQ.0) C90 =  rNULL__
        if (idig(ar__(82:88)).EQ.0) C50 =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Field,Dist,E_Dist,e_Dist_1,Flag,RG,AltG,T0_1,T90,Nh2,Mass,C90,
     +  C50,Assoc
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'gccscat.dat'	! The GCC source catalogue

C  Format for file interpretation

    2 format(
     +  I4,1X,A13,1X,F5.3,1X,F5.3,1X,F5.3,1X,A1,1X,F12.8,1X,F12.8,1X,
     +  F12.8,1X,F12.8,1X,E9.3,1X,A1,1X,F4.2,1X,E9.3,1X,I3,1X,E10.3,
     +  1X,E9.3,1X,E10.3,1X,E9.3,1X,F6.2,1X,F6.2,1X,F6.2,1X,E9.3,1X,
     +  A1,1X,E9.3,1X,E9.3,1X,E9.3,1X,E9.3,1X,F6.2,1X,F6.2,1X,F6.2,1X,
     +  E9.3,1X,A1,1X,E9.3,1X,E9.3,1X,E9.3,1X,E9.3,1X,F6.2,1X,F6.2,1X,
     +  F6.2,1X,E9.3,1X,A1,1X,E9.3,1X,E9.3,1X,E9.3,1X,E9.3,1X,F6.2,1X,
     +  F6.2,1X,F6.2,1X,E9.3,1X,A1,1X,E9.3,1X,E9.3,1X,E9.3,1X,E9.3,1X,
     +  F6.2,1X,F6.2,1X,F6.2,1X,E11.5,1X,F5.2,1X,E11.5,1X,E11.5,1X,
     +  E11.5,1X,F7.5,1X,E11.5,1X,F8.2,1X,A1,1X,A1,1X,A1,1X,A1,1X,A1,
     +  1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'gccscat.dat')
      write(6,*) '....Loading file: gccscat.dat'
      do i__=1,4466
        read(1,'(A571)')ar__1
        read(ar__1,2)
     +  ID,Field_1,Dist_1,E_Dist_2,e_Dist_3,Dflag,RAdeg,DEdeg,GLON,
     +  GLAT,SIGGLO,FG,GOOD,SIGMONO1,FM1,FXPBEST1,e_FXPBEST1,FXTBEST1,
     +  e_FXTBEST1,AFWHM1,BFWHM1,PA1,SIGMONO2,FM2,FXPBEST2,e_FXPBEST2,
     +  FXTBEST2,e_FXTBEST2,AFWHM2,BFWHM2,PA2,SIGMONO3,FM3,FXPBEST3,
     +  e_FXPBEST3,FXTBEST3,e_FXTBEST3,AFWHM3,BFWHM3,PA3,SIGMONO4,FM4,
     +  FXPBEST4,e_FXPBEST4,FXTBEST4,e_FXTBEST4,AFWHM4,BFWHM4,PA4,
     +  SIGMONO5,FM5,FXPBEST5,e_FXPBEST5,FXTBEST5,e_FXTBEST5,AFWHM5,
     +  BFWHM5,PA5,I200,Tdust,NH2_1,Lbol,Mass_1,Chi2,NH2bg,aBE,
     +  WKGalFlag,XgalFlag,StateNIR,Class,StateFIR,State
        if(ar__1(119:121) .EQ. '') FM1 = iNULL__
c    ..............Just test output...........
        write(6,2)
     +  ID,Field_1,Dist_1,E_Dist_2,e_Dist_3,Dflag,RAdeg,DEdeg,GLON,
     +  GLAT,SIGGLO,FG,GOOD,SIGMONO1,FM1,FXPBEST1,e_FXPBEST1,FXTBEST1,
     +  e_FXTBEST1,AFWHM1,BFWHM1,PA1,SIGMONO2,FM2,FXPBEST2,e_FXPBEST2,
     +  FXTBEST2,e_FXTBEST2,AFWHM2,BFWHM2,PA2,SIGMONO3,FM3,FXPBEST3,
     +  e_FXPBEST3,FXTBEST3,e_FXTBEST3,AFWHM3,BFWHM3,PA3,SIGMONO4,FM4,
     +  FXPBEST4,e_FXPBEST4,FXTBEST4,e_FXTBEST4,AFWHM4,BFWHM4,PA4,
     +  SIGMONO5,FM5,FXPBEST5,e_FXPBEST5,FXTBEST5,e_FXTBEST5,AFWHM5,
     +  BFWHM5,PA5,I200,Tdust,NH2_1,Lbol,Mass_1,Chi2,NH2bg,aBE,
     +  WKGalFlag,XgalFlag,StateNIR,Class,StateFIR,State
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end