FORTRAN Generation
(/./ftp/cats/J/A_A/635/A2)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/635/A2 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-Sep-10
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/635/A2     NGC6334 ALMA 87.6GHz continuum emission map (Sadaghiani+, 2020)
*================================================================================
*Physical properties of the star-forming clusters in NGC 6334.
*A study of the continuum dust emission with ALMA.
*    Sadaghiani M., Sanchez-Monge A., Schilke P., Liu H.B., Clarke S.D.,
*    Zhang Q., Girart J.M., Seifried D., Aghababaei A., Li H., Juarez C.,
*    Tang K.S.
*    <Astron. Astrophys. 635, A2 (2020)>
*    =2020A&A...635A...2S        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tablea1.dat'	! Properties of the ALMA continuum sources
                                 in NGC 6334

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

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

      integer*4     Seq        (nr__) ! ALMA 87.6GHz compact source sequential number
      integer*4     RAh        (nr__) ! (h) ALMA 87.6GHz Right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) ALMA 87.6GHz Right ascension (J2000)
      real*4        RAs        (nr__) ! (s) ALMA 87.6GHz Right ascension (J2000)
      character*1   DE_        (nr__) ! ALMA 87.6GHz Declination sign (J2000)
      integer*4     DEd        (nr__) ! (deg) ALMA 87.6GHz Declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) ALMA 87.6GHz Declination (J2000)
      real*4        DEs        (nr__) ! (arcsec) ALMA 87.6GHz Declination (J2000)
      real*4        I          (nr__) ! (mJy/beam) ALMA 87.6GHz peak intensity
      real*8        S          (nr__) ! (mJy) ALMA 87.6GHz flux density
      real*4        e_S        (nr__) ! (mJy) rms uncertainty on ALMA 87.6GHz flux density
      real*4        amaj       (nr__) ! (arcsec) ALMA 87.6GHz major axis
      real*4        bmin       (nr__) ! (arcsec) ALMA 87.6GHz minor axis
      integer*4     PA         (nr__) ! (deg) ? ALMA 87.6GHz position angle
      character*5   Free_Free  (nr__) ! Radio continuum contribution to the
*                                   ALMA 87.6 GHz  continuum flux (1)
      character*6   IR         (nr__) ! Association with infrared source (2)
      integer*4     T          (nr__) ! (K) ? Assumed temperature
      real*4        Mg_d       (nr__) ! (Msun) ? Dust and gas mass
      real*4        nH2        (nr__) ! (10+8cm-3) ? Volume density
      real*4        NH2_1      (nr__) ! (10+24cm-2) ? Column density
      character*7   Cluster    (nr__) ! Cluster to which the source is associated
      integer*4     Pmemb      (nr__) ! (%) ? Confidence level of membership in
*                                    percentage
      character*7   ONames     (nr__) ! Other names for each source (3)
*Note (1): Radio continuum contribution to the ALMA 87.6GHz continuum flux,
*  determined from observations published in Hunter et al. (2014ApJ...788..187H),
*  Brogan et al. (2016, Cat. J/ApJ/832/187), and
*  Medina et al. (2018, Cat. J/A+A/610/A27).
*Note (2): Association with infrared source from Willis et al. (2013,
*  Cat. J/ApJ/778/96). f* denotes field stars.
*Note (3): Other names for each source, from Brogan et al. (2016,
*  Cat. J/ApJ/832/187, [BHC2016] MMNN in Simbad) and 
*  Hunter et al. (2014ApJ...788..187H, [HBM2006b] I(N)-SMANN in Simbad).

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

C  Declarations for 'list.dat'	! Information on fits images

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        RAdeg_1    (nr__1) ! (deg) Right Ascension of center (J2000)
      real*8        DEdeg_1    (nr__1) ! (deg) Declination of center (J2000)
      integer*4     Nx         (nr__1) ! Number of pixels along X-axis
      integer*4     Ny         (nr__1) ! Number of pixels along Y-axis
      character*22  Obs_date   (nr__1) ! ("datime") Observation date
      real*8        Freq       (nr__1) ! (GHz) Observed frequency
      integer*4     size       (nr__1) ! (Kibyte) Size of FITS file
      character*72  FileName   (nr__1) ! Name of FITS file, in subdirectory fits
      character*46  Title      (nr__1) ! Title of the FITS file

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

C  Loading file 'tablea1.dat'	! Properties of the ALMA continuum sources
*                                 in NGC 6334

C  Format for file interpretation

    1 format(
     +  I3,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,F6.2,1X,F7.2,
     +  1X,F6.2,1X,F5.2,1X,F4.2,1X,I3,1X,A5,1X,A6,I3,1X,F6.2,1X,F5.2,
     +  1X,F5.2,1X,A7,1X,I3,1X,A7)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea1.dat')
      write(6,*) '....Loading file: tablea1.dat'
      do i__=1,142
        read(1,'(A121)')ar__
        read(ar__,1)
     +  Seq(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),I(i__),S(i__),e_S(i__),amaj(i__),bmin(i__),
     +  PA(i__),Free_Free(i__),IR(i__),T(i__),Mg_d(i__),nH2(i__),
     +  NH2_1(i__),Cluster(i__),Pmemb(i__),ONames(i__)
        if(ar__(64:66) .EQ. '') PA(i__) = iNULL__
        if(ar__(80:82) .EQ. '') T(i__) = iNULL__
        if(ar__(84:89) .EQ. '') Mg_d(i__) = rNULL__
        if(ar__(91:95) .EQ. '') nH2(i__) = rNULL__
        if(ar__(97:101) .EQ. '') NH2_1(i__) = rNULL__
        if(ar__(111:113) .EQ. '') Pmemb(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)
     +  Seq(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),I(i__),S(i__),e_S(i__),amaj(i__),bmin(i__),
     +  PA(i__),Free_Free(i__),IR(i__),T(i__),Mg_d(i__),nH2(i__),
     +  NH2_1(i__),Cluster(i__),Pmemb(i__),ONames(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 'list.dat'	! Information on fits images

C  Format for file interpretation

    2 format(F9.5,F9.5,1X,I4,1X,I4,1X,A22,1X,F7.4,1X,I5,1X,A72,1X,A46)

C  Effective file loading

      open(unit=1,status='old',file=
     +'list.dat')
      write(6,*) '....Loading file: list.dat'
      do i__=1,1
        read(1,'(A185)')ar__1
        read(ar__1,2)
     +  RAdeg_1(i__),DEdeg_1(i__),Nx(i__),Ny(i__),Obs_date(i__),
     +  Freq(i__),size(i__),FileName(i__),Title(i__)
c    ..............Just test output...........
        write(6,2)
     +  RAdeg_1(i__),DEdeg_1(i__),Nx(i__),Ny(i__),Obs_date(i__),
     +  Freq(i__),size(i__),FileName(i__),Title(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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