FORTRAN Generation
(/./ftp/cats/J/A_A/577/A127)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/577/A127 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/A+A/577/A127     W49A JCMT Spectral Legacy Survey spectroscopy   (Nagy+, 2015)
*================================================================================
*Physical and chemical differentiation of the luminous star-forming region W49A.
*Results from the JCMT Spectral Legacy Survey.
*    Nagy Z., Van Der Tak F.F.S., Fuller G.A., Plume R.
*   <Astron. Astrophys., 577, A127-127 (2015)>
*   =2015A&A...577A.127N    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tablea1.dat'	! The detected species toward the central position
                                 of the JCMT Spectral Legacy Survey (SLS) field

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

      character*19  Mol        (nr__) ! Molecule
      character*2   n_Mol      (nr__) ! [abc*C ] Note on Mol (1)
      character*24  Trans      (nr__) ! Transition
      real*8        Freq       (nr__) ! (MHz) Frequency
      real*8        Eup        (nr__) ! (K) ?=- Upper level energy
      real*4        Aij        (nr__) ! (s-1) ?=- Einstein coefficient
      real*8        IntTmbdv   (nr__) ! (K.km/s) ? Integrated line intensity
      real*4        e_IntTmbdv (nr__) ! (K.km/s) ? rms uncertainty on IntTmbdv
      real*4        VLSR       (nr__) ! (km/s) ? LSR velocity
      real*4        e_VLSR     (nr__) ! (km/s) ? rms uncertainty on VLSR
      real*4        FWHM       (nr__) ! (km/s) ? FWHM of the line
      real*4        e_FWHM     (nr__) ! (km/s) ? rms uncertainty on FWHM (2)
      real*4        Tpeak      (nr__) ! (K) ? Peak temperature
      real*4        e_Tpeak    (nr__) ! (K) ? rms uncertainty on Tpeak
*Note (1): Notes as follows:
*   * = transitions were detected toward AFGL 2591 in the SLS survey
*        (Van der Wiel, 2011, Ph.D. Thesis, Univ. Groningen)
*   C = transitions have a non-Gaussian line profile. The FWHM line widths of
*        these asymmetric lines are from a Gaussian fitting. Their intensity is
*        obtained by integrating over the whole line and their VLSR
*        is the velocity at Tpeak.
*   a = May be blended with SO^17^O.
*   b = Probably blended with ^34^SO_2_15_2,14_-14_1,13_ at 358988MHz.
*   c = HC_3_N 41-40 is probable, but the line intensity is not consistent with
*        its other three detected transitions.
*Note (2): The parameters without error bars are fixed parameters in the fit.

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

C  Loading file 'tablea1.dat'	! The detected species toward the central position
*                                 of the JCMT Spectral Legacy Survey (SLS) field

C  Format for file interpretation

    1 format(
     +  A19,A2,1X,A24,F8.1,1X,F7.2,1X,E7.3,1X,F7.2,1X,F4.2,1X,F5.2,1X,
     +  F5.3,1X,F5.2,1X,F5.2,1X,F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea1.dat')
      write(6,*) '....Loading file: tablea1.dat'
      do i__=1,255
        read(1,'(A118)')ar__
        read(ar__,1)
     +  Mol(i__),n_Mol(i__),Trans(i__),Freq(i__),Eup(i__),Aij(i__),
     +  IntTmbdv(i__),e_IntTmbdv(i__),VLSR(i__),e_VLSR(i__),FWHM(i__),
     +  e_FWHM(i__),Tpeak(i__),e_Tpeak(i__)
        if (idig(ar__(56:62)).EQ.0) Eup(i__) =  rNULL__
        if (idig(ar__(64:70)).EQ.0) Aij(i__) =  rNULL__
        if(ar__(72:78) .EQ. '') IntTmbdv(i__) = rNULL__
        if(ar__(80:83) .EQ. '') e_IntTmbdv(i__) = rNULL__
        if(ar__(85:89) .EQ. '') VLSR(i__) = rNULL__
        if(ar__(91:95) .EQ. '') e_VLSR(i__) = rNULL__
        if(ar__(97:101) .EQ. '') FWHM(i__) = rNULL__
        if(ar__(103:107) .EQ. '') e_FWHM(i__) = rNULL__
        if(ar__(109:113) .EQ. '') Tpeak(i__) = rNULL__
        if(ar__(115:118) .EQ. '') e_Tpeak(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Mol(i__),n_Mol(i__),Trans(i__),Freq(i__),Eup(i__),Aij(i__),
     +  IntTmbdv(i__),e_IntTmbdv(i__),VLSR(i__),e_VLSR(i__),FWHM(i__),
     +  e_FWHM(i__),Tpeak(i__),e_Tpeak(i__)
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