FORTRAN Generation
(/./ftp/cats/J/A_A/314/615)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/314/615 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 2024-Mar-28
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/314/615       Maps of the 36 GHz methanol emission (Liechti+, 1996)
*================================================================================
*Maps of the 36 GHz methanol emission
*     Liechti S., Wilson T.L.
*    <Astron. Astrophys. 314, 615 (1996)>
*    =1996A&A...314..615L      (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1'	! Line parameters for detected sources

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

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

      character*14  Name       (nr__) ! Source name (1)
      integer*4     RAh        (nr__) ! (h) Right ascension 1950 (hours) (1)
      integer*4     RAm        (nr__) ! (min) Right ascension 1950 (minutes) (1)
      real*4        RAs        (nr__) ! (s) Right ascension 1950 (seconds) (1)
      character*1   DE_        (nr__) ! Declination sign
      integer*4     DEd        (nr__) ! (deg) Declination 1950 (degrees) (1)
      integer*4     DEm        (nr__) ! (arcmin) Declination 1950 (arcminutes) (1)
      integer*4     DEs        (nr__) ! (arcsec) Declination 1950 (arcseconds) (1)
      real*4        S          (nr__) ! (Jy.km/s) ? Integrated flux density of the feature (2)
      real*4        e_S        (nr__) ! (Jy.km/s) ? 1 sigma uncertainty on integrated flux
      real*4        V          (nr__) ! (km/s) ? Center velocity of the feature (3)
      real*4        e_V        (nr__) ! (km/s) ? 1 sigma uncertainty on center velocity
      real*4        W          (nr__) ! (km/s) ? Width of the feature (3)
      real*4        e_W        (nr__) ! (km/s) ? 1 sigma uncertainty on width
      integer*4     dRA        (nr__) ! (arcsec) ? R.A. position offset of the feature (4)
      integer*4     e_dRA      (nr__) ! (arcsec) ? 1 sigma uncertainty on R.A. position offset
      integer*4     dDE        (nr__) ! (arcsec) ? Dec. position offset of  the feature (4)
      integer*4     e_dDE      (nr__) ! (arcsec) ? 1 sigma uncertainty on dec. position offset
      integer*4     theta      (nr__) ! (arcsec) ? Angular size of the feature (5)
      integer*4     e_theta    (nr__) ! (arcsec) ? 1 sigma uncertainty on angular size
      character*11  Rem        (nr__) ! Remarks (6)
      character*11  F_name     (nr__) ! Other name for the position of the feature
*Note (1): The source name and coordinates are repeated for each detected
*          feature. The sources are ordered in increasing right ascension.
*Note (2): The integrated flux density (determined from spectral gaussian fit
*          of the feature) is the one at the peak position (see note (3)). If no
*          peak position was determined, it is the maximum integrated area of
*          the different observed positions.
*Note (3): The velocity (with respect to the l.s.r.) and width is the mean over
*          the all the observed positions and the 1 sigma uncertainty is the
*          statistical error of this mean.
*Note (4): The offset is with respect to the R.A. and Dec. position of the
*          source.The position of the emission peak of the feature has been
*          determined by a spatial 2-dimension gaussian fit on the integrated
*          area of the line. The error is the error of the fit and does not
*          include pointing errors. When no fit was performed (line too weak,
*          extended or on the edge of the map), the position given is the
*          position where the maximum flux density has been detected.
*Note (5): Theta is the mean size of the source assuming a gaussian shape,
*          calculated from the mean of the minor and major axis half power width
*          of the elliptical 2-dimensional gaussian fitted on the line area
*          contour map (assuming a 26" HPBW for the telescope beam). Theta is
*          not given when the peak of the detected emission is on the edge of
*          the map, or when the 2-dimension gaussian fit was not performed
*          (2 peaks, too extended, line too weak, ...).
*Note (6): P: point-like source in our beam (i.e. < 10")
*          td: tentative detection
*          em: peak of the detected emission on the edge of the observed map
*          ex: extended emission
*          uncomp: map uncomplete
*          mf: many features, only the strongest are given

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

C  Declarations for 'table2'	! Non detected sources

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

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

      character*9   Name_1     (nr__1) ! Source name
      integer*4     RAh_1      (nr__1) ! (h) Right ascension 1950
      integer*4     RAm_1      (nr__1) ! (min) Right ascension 1950
      real*4        RAs_1      (nr__1) ! (s) Right ascension 1950
      character*1   DE__1      (nr__1) ! Declination sign
      integer*4     DEd_1      (nr__1) ! (deg) Declination 1950
      integer*4     DEm_1      (nr__1) ! (arcmin) Declination 1950
      integer*4     DEs_1      (nr__1) ! (arcsec) Declination 1950
      real*4        Vcen       (nr__1) ! (km/s) Center velocity of observation
      real*4        rms        (nr__1) ! (Jy) 1 sigma upper limit (spectrum r.m.s. noise)

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

C  Declarations for 'table3'	! Main detected features in Sgr B2

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

      integer*4     Fpeak      (nr__2) ! (Jy) Peak flux density of the feature
      real*4        Vcen_1     (nr__2) ! (km/s) Center velocity of the feature
      real*4        e_Vcen     (nr__2) ! (km/s) 1 sigma uncertainty on center velocity
      real*4        Width      (nr__2) ! (km/s) Width of the feature
      real*4        e_Width    (nr__2) ! (km/s) 1 sigma uncertainty on width
      integer*4     dRA_1      (nr__2) ! (arcsec) Feature right ascension position offset (1)
      integer*4     dDE_1      (nr__2) ! (arcsec) Feature declination position offset (1)
*Note (1): The offsets are with respect to the position given in Table 1 for
*          Sgr B2 (Table 3) and Sgr A-A (Table 4).

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

C  Declarations for 'table4'	! Main detected features in Sgr A-A

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

      integer*4     Fpeak_1    (nr__3) ! (Jy) Peak flux density of the feature
      real*4        Vcen_2     (nr__3) ! (km/s) Center velocity of the feature
      real*4        e_Vcen_1   (nr__3) ! (km/s) 1 sigma uncertainty on center velocity
      real*4        Width_1    (nr__3) ! (km/s) Width of the feature
      real*4        e_Width_1  (nr__3) ! (km/s) 1 sigma uncertainty on width
      integer*4     dRA_2      (nr__3) ! (arcsec) Feature right ascension position offset (1)
      integer*4     dDE_2      (nr__3) ! (arcsec) Feature declination position offset (1)
*Note (1): The offsets are with respect to the position given in Table 1 for
*          Sgr B2 (Table 3) and Sgr A-A (Table 4).

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

C  Loading file 'table1'	! Line parameters for detected sources

C  Format for file interpretation

    1 format(
     +  A14,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,F5.1,1X,F4.1,
     +  2X,F6.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,I3,1X,I1,2X,I3,1X,I1,3X,I2,
     +  1X,I1,2X,A11,1X,A11)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1')
      write(6,*) '....Loading file: table1'
      do i__=1,116
        read(1,'(A115)')ar__
        read(ar__,1)
     +  Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),S(i__),e_S(i__),V(i__),e_V(i__),W(i__),
     +  e_W(i__),dRA(i__),e_dRA(i__),dDE(i__),e_dDE(i__),theta(i__),
     +  e_theta(i__),Rem(i__),F_name(i__)
        if(ar__(37:41) .EQ. '') S(i__) = rNULL__
        if(ar__(43:46) .EQ. '') e_S(i__) = rNULL__
        if(ar__(49:54) .EQ. '') V(i__) = rNULL__
        if(ar__(56:59) .EQ. '') e_V(i__) = rNULL__
        if(ar__(61:65) .EQ. '') W(i__) = rNULL__
        if(ar__(67:70) .EQ. '') e_W(i__) = rNULL__
        if(ar__(72:74) .EQ. '') dRA(i__) = iNULL__
        if(ar__(76:76) .EQ. '') e_dRA(i__) = iNULL__
        if(ar__(79:81) .EQ. '') dDE(i__) = iNULL__
        if(ar__(83:83) .EQ. '') e_dDE(i__) = iNULL__
        if(ar__(87:88) .EQ. '') theta(i__) = iNULL__
        if(ar__(90:90) .EQ. '') e_theta(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)
     +  Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),S(i__),e_S(i__),V(i__),e_V(i__),W(i__),
     +  e_W(i__),dRA(i__),e_dRA(i__),dDE(i__),e_dDE(i__),theta(i__),
     +  e_theta(i__),Rem(i__),F_name(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 'table2'	! Non detected sources

C  Format for file interpretation

    2 format(
     +  A9,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,2X,F5.1,1X,F3.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2')
      write(6,*) '....Loading file: table2'
      do i__=1,7
        read(1,'(A42)')ar__1
        read(ar__1,2)
     +  Name_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
     +  DEd_1(i__),DEm_1(i__),DEs_1(i__),Vcen(i__),rms(i__)
        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)
     +  Name_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
     +  DEd_1(i__),DEm_1(i__),DEs_1(i__),Vcen(i__),rms(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3'	! Main detected features in Sgr B2

C  Format for file interpretation

    3 format(I4,1X,F5.1,1X,F3.1,2X,F4.1,1X,F3.1,2X,I3,1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3')
      write(6,*) '....Loading file: table3'
      do i__=1,29
        read(1,'(A33)')ar__2
        read(ar__2,3)
     +  Fpeak(i__),Vcen_1(i__),e_Vcen(i__),Width(i__),e_Width(i__),
     +  dRA_1(i__),dDE_1(i__)
c    ..............Just test output...........
        write(6,3)
     +  Fpeak(i__),Vcen_1(i__),e_Vcen(i__),Width(i__),e_Width(i__),
     +  dRA_1(i__),dDE_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4'	! Main detected features in Sgr A-A

C  Format for file interpretation

    4 format(I4,1X,F5.1,1X,F3.1,2X,F4.1,1X,F3.1,2X,I3,1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4')
      write(6,*) '....Loading file: table4'
      do i__=1,18
        read(1,'(A33)')ar__3
        read(ar__3,4)
     +  Fpeak_1(i__),Vcen_2(i__),e_Vcen_1(i__),Width_1(i__),
     +  e_Width_1(i__),dRA_2(i__),dDE_2(i__)
c    ..............Just test output...........
        write(6,4)
     +  Fpeak_1(i__),Vcen_2(i__),e_Vcen_1(i__),Width_1(i__),
     +  e_Width_1(i__),dRA_2(i__),dDE_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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