FORTRAN Generation
(/./ftp/cats/J/A_A/600/A16)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/600/A16 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 2024-Mar-29
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/600/A16      Six LMC star forming region spectra             (Tang+, 2017)
*================================================================================
*Kinetic temperature of massive star forming molecular clumps measured with
*formaldehyde. II. The Large Magellanic Cloud.
*    Tang X.D., Henkel C., Chen C.-H.R., Menten K.M., Indebetouw R., Zheng X.W.,
*    Esimbek J., Zhou J.J., Yuan Y., Li D.L., He Y.X.
*    <Astron. Astrophys. 600, A16 (2017)>
*    =2017A&A...600A..16T        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Source parameters

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

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

      character*6   Source      ! Source name
      integer*4     RAh         ! (h) Right ascension (J2000)
      integer*4     RAm         ! (min) Right ascension (J2000)
      real*4        RAs         ! (s) Right ascension (J2000)
      character*1   DE_         ! declination sign (J2000)
      integer*4     DEd         ! (deg) declination (J2000)
      integer*4     DEm         ! (arcmin) declination (J2000)
      real*4        DEs         ! (arcsec) declination (J2000)
      integer*4     Tint        ! (min) Integrated time
      character*14  Date        ! Observation date

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

C  Declarations for 'table2.dat'	! Para-H_2_CO and C^18^O spectral parameters

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

      character*6   Source_1    ! Source name
      character*6   Mol         ! Molecule
      character*13  Trans       ! Transition
      character*1   l_intTmbdv  ! Limit flag on intTmbdv
      real*4        intTmbdv    ! (K.km/s) Velocity-integrated intensity
      real*4        e_intTmbdv  ! (K.km/s) ? rms uncertainty on intTmbdv (1)
      real*4        Vlsr        ! (km/s) ?=- LSR velocity
      real*4        e_Vlsr      ! (km/s) ? rms uncertainty on Vlsr (1)
      real*4        FWHM        ! (km/s) ?=- Full width to half maximum line width
      real*4        e_FWHM      ! (km/s) ? rms uncertainty on FWHM (1)
      real*4        Tmb         ! (K) ?=- Peak mean brightness temperature
      real*4        rms         ! (mK) rms noise
*Note (1): standard deviations from Gaussian fits using CLASS as part of the
*  GILDAS software.

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

C  Declarations for 'table3.dat'	! Integrated intensity ratios, column densities,
                                 spacial densities and temperatures

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

      character*6   Source_2    ! Source name
      character*1   n_Source    ! [ab] Note on Source (1)
      character*1   l_R1        ! Limit flag on R1
      real*4        R1          ! 3_21_-2_20_/3_03_-2_02_ ratio
      real*4        e_R1        ! ? rms uncertainty on
*                                   3_21_-2_20_/3_03_-2_02_ ratio
      real*4        R2          ! H_2_CO 3_03_-2_02_/C^18^O 2-1 ratio
      real*4        e_R2        ! rms uncertainty on
*                                   H_2_CO 3_03_-2_02_/C^18^O 2-1 ratio
      real*4        NC18O       ! (10+14cm-2) C^18^O column density
      real*4        NpH2CO      ! (10+12cm-2) Para-H_2_CO column density
      real*4        NH2a        ! (10+22cm-2) H_2_ column density from C^18^O
      real*4        NH2b        ! (10+22cm-2) H_2_ column density from ^12^CO(1-0)
      character*1   l_nH2       ! Limit flag on nH2
      real*4        nH2         ! (10+5cm-3) H_2_ density number
      real*4        E_nH2       ! (10+5cm-3) ? Error on nH2 (upper value)
      real*4        e_nH2_1     ! (10+5cm-3) ? Error on nH2 (lower value)
      character*1   l_Tkin      ! Limit flag on Tkin
      real*4        Tkin        ! (K) Kinematic temperature derived with the
*                                   density n(H2)
      real*4        E_Tkin      ! (K) ? Error on Tkin (upper value)
      real*4        e_Tkin_1    ! (K) ? Error on Tkin (lower value)
      character*1   l_TLTE      ! Limit flag on TLTE
      real*4        TLTE        ! (K) LTE temperature
      character*5   Tdust       ! (K) Interval of dust temperature (2)
*Note (1): Notes as follows:
*  a = N113: Para-H_2_CO 3_03_-2_02_/C^18^O 2-1 ratio data taken from
*       Heikkila et al. (1998A&A...332..493H) and
*       Wang et al. (2009ApJ...690..580W)
*      N(C^18^O) derived from C^18^O 2-1 taken from
*       Heikkila et al. (1998A&A...332..493H).
*  b = N159W: Para-H_2_CO 3_03_-2_02_/C^18^O 2-1 ratio data taken from
*       Heikkila et al. (1998A&A...332..493H, 1999A&A...344..817H).
*      N(C^18^O) derived from C^18^O 2-1 taken from
*       Heikkila et al. (1998A&A...332..493H).
*      N(H_2_) data taken from Ott et al. (2010ApJ...710..105O).
*Note (2): Dust temperature references:
*  30 Dor = Werner et al. (1978MNRAS.184..365W);
*            Heikkila et al. (1999A&A...344..817H);
*            Gordon et al. (2014ApJ...797...85G)
*  N113   = Wang et al. (2009ApJ...690..580W);
*            Gordon et al. (2014ApJ...797...85G);
*            Seale et al. (2014, Cat. J/AJ/148/124)
*  N44BC  = Gordon et al. (2014ApJ...797...85G)
*  N159W  = Heikkila et al. (1999A&A...344..817H);
*            Bolatto et al. (2000ApJ...545..234B);
*            Gordon et al. (2014ApJ...797...85G)
*  N159E  = Gordon et al. (2014ApJ...797...85G)
*  N159S  = Gordon et al. (2014ApJ...797...85G)

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

C  Declarations for 'list.dat'	! List of fits spectra

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        RAdeg_1     ! (deg) Right Ascension of center (J2000)
      real*8        DEdeg_1     ! (deg) Declination of center (J2000)
      integer*4     Nx          ! Number of points
      character*23  Obs_Date    ! Observation date (YYYY-MM-DDThh:mm:ss.sss)
      real*4        b_Freq      ! (Hz) Lower value of relative frequency interval
      real*4        B_Freq_1    ! (Hz) Upper value of relative frequency interval
      integer*4     dFreq       ! (Hz) Frequency resolution
      integer*4     size        ! (Kibyte) Size of FITS file
      character*22  FileName    ! Name of FITS file, in subdirectory fits
      character*36  Title       ! Title of the FITS file

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

C  Loading file 'table1.dat'	! Source parameters

C  Format for file interpretation

    1 format(
     +  A6,2X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F4.1,1X,I3,1X,A14)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,6
        read(1,'(A49)')ar__
        read(ar__,1)Source,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Tint,Date
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)Source,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Tint,Date
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Para-H_2_CO and C^18^O spectral parameters

C  Format for file interpretation

    2 format(
     +  A6,2X,A6,1X,A13,1X,A1,F5.3,1X,F5.3,1X,F6.2,1X,F4.2,1X,F4.2,1X,
     +  F4.2,1X,F5.3,1X,F3.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,23
        read(1,'(A73)')ar__1
        read(ar__1,2)
     +  Source_1,Mol,Trans,l_intTmbdv,intTmbdv,e_intTmbdv,Vlsr,e_Vlsr,
     +  FWHM,e_FWHM,Tmb,rms
        if(ar__1(37:41) .EQ. '') e_intTmbdv = rNULL__
        if (idig(ar__1(43:48)).EQ.0) Vlsr =  rNULL__
        if(ar__1(50:53) .EQ. '') e_Vlsr = rNULL__
        if (idig(ar__1(55:58)).EQ.0) FWHM =  rNULL__
        if(ar__1(60:63) .EQ. '') e_FWHM = rNULL__
        if (idig(ar__1(65:69)).EQ.0) Tmb =  rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Source_1,Mol,Trans,l_intTmbdv,intTmbdv,e_intTmbdv,Vlsr,e_Vlsr,
     +  FWHM,e_FWHM,Tmb,rms
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Integrated intensity ratios, column densities,
*                                 spacial densities and temperatures

C  Format for file interpretation

    3 format(
     +  A6,1X,A1,1X,A1,F5.3,1X,F4.2,1X,F4.2,1X,F4.2,1X,F3.1,1X,F3.1,
     +  1X,F3.1,1X,F3.1,1X,A1,F4.2,1X,F4.2,1X,F4.2,1X,A1,F4.1,1X,F4.1,
     +  1X,F4.1,1X,A1,F4.1,1X,A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,6
        read(1,'(A90)')ar__2
        read(ar__2,3)
     +  Source_2,n_Source,l_R1,R1,e_R1,R2,e_R2,NC18O,NpH2CO,NH2a,NH2b,
     +  l_nH2,nH2,E_nH2,e_nH2_1,l_Tkin,Tkin,E_Tkin,e_Tkin_1,l_TLTE,
     +  TLTE,Tdust
        if(ar__2(17:20) .EQ. '') e_R1 = rNULL__
        if(ar__2(54:57) .EQ. '') E_nH2 = rNULL__
        if(ar__2(59:62) .EQ. '') e_nH2_1 = rNULL__
        if(ar__2(70:73) .EQ. '') E_Tkin = rNULL__
        if(ar__2(75:78) .EQ. '') e_Tkin_1 = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  Source_2,n_Source,l_R1,R1,e_R1,R2,e_R2,NC18O,NpH2CO,NH2a,NH2b,
     +  l_nH2,nH2,E_nH2,e_nH2_1,l_Tkin,Tkin,E_Tkin,e_Tkin_1,l_TLTE,
     +  TLTE,Tdust
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'list.dat'	! List of fits spectra

C  Format for file interpretation

    4 format(
     +  F9.5,F9.5,1X,I4,1X,A23,1X,E12.6,1X,E11.6,1X,I6,1X,I2,1X,A22,
     +  1X,A36)

C  Effective file loading

      open(unit=1,status='old',file=
     +'list.dat')
      write(6,*) '....Loading file: list.dat'
      do i__=1,22
        read(1,'(A142)')ar__3
        read(ar__3,4)
     +  RAdeg_1,DEdeg_1,Nx,Obs_Date,b_Freq,B_Freq_1,dFreq,size,
     +  FileName,Title
c    ..............Just test output...........
        write(6,4)
     +  RAdeg_1,DEdeg_1,Nx,Obs_Date,b_Freq,B_Freq_1,dFreq,size,
     +  FileName,Title
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