FORTRAN Generation
(/./ftp/cats/J/ApJ/803/97)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/803/97 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-Apr-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/ApJ/803/97     Transitions of methyl formate toward Orion KL    (Sakai+, 2015)
*================================================================================
*An ALMA imaging study of methyl formate (HCOOCH_3_) in torsionally excited
*states toward Orion KL.
*    Sakai Y., Kobayashi K., Hirota T.
*   <Astrophys. J., 803, 97 (2015)>
*   =2015ApJ...803...97S    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Transition List for the Compact Ridge

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

      real*8        Freq       (nr__) ! (MHz) The rest frequency of methyl formate
      integer*4     vt         (nr__) ! [0/2] Quantum number of the torsional state
      integer*4     J_         (nr__) ! [6/39] Rotational quantum number of the lower
*                                 state
      integer*4     Ka_        (nr__) ! [0/17] Lower Ka quantum number
      integer*4     Kc_        (nr__) ! [0/32] Lower Kc quantum number
      integer*4     J__1       (nr__) ! [5/39] Rotational quantum number of the upper
*                                 state
      integer*4     Ka__1      (nr__) ! [0/17] Upper Ka quantum number
      integer*4     Kc__1      (nr__) ! [0/33] Upper Kc quantum number
      character*1   Sym        (nr__) ! [AE] Symmetry sublevel
      real*4        Smu2       (nr__) ! (D+2) Line strength, S{mu}^2^
      real*4        Eu         (nr__) ! (K) Upper level energy
      real*4        T7_3       (nr__) ! (K) ? Temperature (1)
      real*4        FWHM7_3    (nr__) ! (km/s) ? FWHM (1)
      real*4        VLSR7_3    (nr__) ! (km/s) ? Local Standard of Rest velocity (1)
      real*4        W7_3       (nr__) ! (km/s) ? W component of the velocity (1)
      real*4        T9_1       (nr__) ! (K) ? Temperature (2)
      real*4        FWHM9_1    (nr__) ! (km/s) ? FWHM (2)
      real*4        VLSR9_1    (nr__) ! (km/s) ? Local Standard of Rest velocity (2)
      real*4        W9_1       (nr__) ! (km/s) ? W component of the velocity (2)
      real*4        T          (nr__) ! (K) ? Temperature (3)
      real*4        FWHM       (nr__) ! (km/s) ? FWHM (3)
      real*4        VLSR       (nr__) ! (km/s) ? Local Standard of Rest velocity (3)
      real*4        W          (nr__) ! (km/s) ? W component of the velocity (3)
      character*2   Com        (nr__) ! Comment (4)
      character*1   Diag       (nr__) ! [*-] Diagram (5)
*Note (1): Compact Ridge 7.3 km/s component.
*Note (2): Compact Ridge 9.1 km/s component.
*Note (3): Hot Core component.
*Note (4): Comment as follows:
*   B = Blend. Apparently, contamination by other species was acknowledged. In
*       the case of the Compact Ridge, two velocity components centered at
*       7.3 km/s and 9.1 km/s are identified. If either component is
*       contaminated, the transition was considered to be a blended line. Some of
*       the severely blended lines were excluded when extracting intensity
*       information;
*  NB = Not blended. When the intensity of the contaminated line is weaker than
*       about 10% of the methyl formate line, it was considered to be no blend;
*  ND = Not detected.
*Note (5): An asterisk indicates that the optically thin line was used in the
*          rotation diagram analysis.

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

C  Declarations for 'table2.dat'	! Transition List for the Hot Core

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

      real*8        Freq_1     (nr__1) ! (MHz) The rest frequency of methyl formate
      integer*4     vt_1       (nr__1) ! [0/2] Quantum number of the torsional state
      integer*4     J__2       (nr__1) ! [6/39] Rotational quantum number of the lower
*                                 state
      integer*4     Ka__2      (nr__1) ! [0/17] Lower Ka quantum number
      integer*4     Kc__2      (nr__1) ! [0/32] Lower Kc quantum number
      integer*4     J__3       (nr__1) ! [5/39] Rotational quantum number of the upper
*                                 state
      integer*4     Ka__3      (nr__1) ! [0/17] Upper Ka quantum number
      integer*4     Kc__3      (nr__1) ! [0/33] Upper Kc quantum number
      character*1   Sym_1      (nr__1) ! [AE] Symmetry sublevel
      real*4        Smu2_1     (nr__1) ! (D+2) Line strength, S{mu}^2^
      real*4        Eu_1       (nr__1) ! (K) Upper level energy
      real*4        T7_3_1     (nr__1) ! (K) ? Temperature (1)
      real*4        FWHM7_3_1  (nr__1) ! (km/s) ? FWHM (1)
      real*4        VLSR7_3_1  (nr__1) ! (km/s) ? Local Standard of Rest velocity (1)
      real*4        W7_3_1     (nr__1) ! (km/s) ? W component of the velocity (1)
      real*4        T9_1_1     (nr__1) ! (K) ? Temperature (2)
      real*4        FWHM9_1_1  (nr__1) ! (km/s) ? FWHM (2)
      real*4        VLSR9_1_1  (nr__1) ! (km/s) ? Local Standard of Rest velocity (2)
      real*4        W9_1_1     (nr__1) ! (km/s) ? W component of the velocity (2)
      real*4        T_1        (nr__1) ! (K) ? Temperature (3)
      real*4        FWHM_1     (nr__1) ! (km/s) ? FWHM (3)
      real*4        VLSR_1     (nr__1) ! (km/s) ? Local Standard of Rest velocity (3)
      real*4        W_1        (nr__1) ! (km/s) ? W component of the velocity (3)
      character*2   Com_1      (nr__1) ! Comment (4)
      character*1   Diag_1     (nr__1) ! [*-] Diagram (5)
*Note (1): Compact Ridge 7.3 km/s component.
*Note (2): Compact Ridge 9.1 km/s component.
*Note (3): Hot Core component.
*Note (4): Comment as follows:
*   B = Blend. Apparently, contamination by other species was acknowledged. In
*       the case of the Compact Ridge, two velocity components centered at
*       7.3 km/s and 9.1 km/s are identified. If either component is
*       contaminated, the transition was considered to be a blended line. Some of
*       the severely blended lines were excluded when extracting intensity
*       information;
*  NB = Not blended. When the intensity of the contaminated line is weaker than
*       about 10% of the methyl formate line, it was considered to be no blend;
*  ND = Not detected.
*Note (5): An asterisk indicates that the optically thin line was used in the
*          rotation diagram analysis.

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

C  Loading file 'table1.dat'	! Transition List for the Compact Ridge

C  Format for file interpretation

    1 format(
     +  F10.3,1X,I1,1X,I2,1X,I2,1X,I2,1X,I2,1X,I2,1X,I2,1X,A1,1X,F4.1,
     +  1X,F5.1,1X,F5.2,1X,F4.2,1X,F4.2,1X,F6.2,1X,F5.2,1X,F4.2,1X,
     +  F4.2,1X,F6.2,1X,F5.2,1X,F4.2,1X,F4.2,1X,F6.2,1X,A2,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,226
        read(1,'(A117)')ar__
        read(ar__,1)
     +  Freq(i__),vt(i__),J_(i__),Ka_(i__),Kc_(i__),J__1(i__),
     +  Ka__1(i__),Kc__1(i__),Sym(i__),Smu2(i__),Eu(i__),T7_3(i__),
     +  FWHM7_3(i__),VLSR7_3(i__),W7_3(i__),T9_1(i__),FWHM9_1(i__),
     +  VLSR9_1(i__),W9_1(i__),T(i__),FWHM(i__),VLSR(i__),W(i__),
     +  Com(i__),Diag(i__)
        if(ar__(45:49) .EQ. '') T7_3(i__) = rNULL__
        if(ar__(51:54) .EQ. '') FWHM7_3(i__) = rNULL__
        if(ar__(56:59) .EQ. '') VLSR7_3(i__) = rNULL__
        if(ar__(61:66) .EQ. '') W7_3(i__) = rNULL__
        if(ar__(68:72) .EQ. '') T9_1(i__) = rNULL__
        if(ar__(74:77) .EQ. '') FWHM9_1(i__) = rNULL__
        if(ar__(79:82) .EQ. '') VLSR9_1(i__) = rNULL__
        if(ar__(84:89) .EQ. '') W9_1(i__) = rNULL__
        if(ar__(91:95) .EQ. '') T(i__) = rNULL__
        if(ar__(97:100) .EQ. '') FWHM(i__) = rNULL__
        if(ar__(102:105) .EQ. '') VLSR(i__) = rNULL__
        if(ar__(107:112) .EQ. '') W(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Freq(i__),vt(i__),J_(i__),Ka_(i__),Kc_(i__),J__1(i__),
     +  Ka__1(i__),Kc__1(i__),Sym(i__),Smu2(i__),Eu(i__),T7_3(i__),
     +  FWHM7_3(i__),VLSR7_3(i__),W7_3(i__),T9_1(i__),FWHM9_1(i__),
     +  VLSR9_1(i__),W9_1(i__),T(i__),FWHM(i__),VLSR(i__),W(i__),
     +  Com(i__),Diag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Transition List for the Hot Core

C  Format for file interpretation

    2 format(
     +  F10.3,1X,I1,1X,I2,1X,I2,1X,I2,1X,I2,1X,I2,1X,I2,1X,A1,1X,F4.1,
     +  1X,F5.1,1X,F5.2,1X,F4.2,1X,F4.2,1X,F6.2,1X,F5.2,1X,F4.2,1X,
     +  F4.2,1X,F6.2,1X,F5.2,1X,F4.2,1X,F4.2,1X,F6.2,1X,A2,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,226
        read(1,'(A117)')ar__1
        read(ar__1,2)
     +  Freq_1(i__),vt_1(i__),J__2(i__),Ka__2(i__),Kc__2(i__),
     +  J__3(i__),Ka__3(i__),Kc__3(i__),Sym_1(i__),Smu2_1(i__),
     +  Eu_1(i__),T7_3_1(i__),FWHM7_3_1(i__),VLSR7_3_1(i__),
     +  W7_3_1(i__),T9_1_1(i__),FWHM9_1_1(i__),VLSR9_1_1(i__),
     +  W9_1_1(i__),T_1(i__),FWHM_1(i__),VLSR_1(i__),W_1(i__),
     +  Com_1(i__),Diag_1(i__)
        if(ar__1(45:49) .EQ. '') T7_3_1(i__) = rNULL__
        if(ar__1(51:54) .EQ. '') FWHM7_3_1(i__) = rNULL__
        if(ar__1(56:59) .EQ. '') VLSR7_3_1(i__) = rNULL__
        if(ar__1(61:66) .EQ. '') W7_3_1(i__) = rNULL__
        if(ar__1(68:72) .EQ. '') T9_1_1(i__) = rNULL__
        if(ar__1(74:77) .EQ. '') FWHM9_1_1(i__) = rNULL__
        if(ar__1(79:82) .EQ. '') VLSR9_1_1(i__) = rNULL__
        if(ar__1(84:89) .EQ. '') W9_1_1(i__) = rNULL__
        if(ar__1(91:95) .EQ. '') T_1(i__) = rNULL__
        if(ar__1(97:100) .EQ. '') FWHM_1(i__) = rNULL__
        if(ar__1(102:105) .EQ. '') VLSR_1(i__) = rNULL__
        if(ar__1(107:112) .EQ. '') W_1(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Freq_1(i__),vt_1(i__),J__2(i__),Ka__2(i__),Kc__2(i__),
     +  J__3(i__),Ka__3(i__),Kc__3(i__),Sym_1(i__),Smu2_1(i__),
     +  Eu_1(i__),T7_3_1(i__),FWHM7_3_1(i__),VLSR7_3_1(i__),
     +  W7_3_1(i__),T9_1_1(i__),FWHM9_1_1(i__),VLSR9_1_1(i__),
     +  W9_1_1(i__),T_1(i__),FWHM_1(i__),VLSR_1(i__),W_1(i__),
     +  Com_1(i__),Diag_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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