FORTRAN Generation
(/./ftp/cats/J/ApJ/835/3)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/835/3 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-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/835/3  218GHz obs. of embedded protostars in Ophiuchus  (Lindberg+, 2017)
*================================================================================
*Externally heated protostellar cores in the Ophiuchus star-forming region.
*    Lindberg J.E., Charnley S.B., Jorgensen J.K., Cordiner M.A., Bjerkeli P.
*   <Astrophys. J., 835, 3-3 (2017)>
*   =2017ApJ...835....3L    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Coordinates and other properties of the
                              observed sources

      integer*4 nr__
      parameter (nr__=38)	! Number of records
      character*103 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*9   Cloud       ! Cloud
      character*15  Name        ! Source name
      integer*4     RAh         ! (h) [16] Hour of Right Ascension (J2000)
      integer*4     RAm         ! (min) [26/33] Minute of Right Ascension (J2000)
      real*4        RAs         ! (s) Second of Right Ascension (J2000)
      character*1   DE_         ! [-] Sign of the Declination (J2000)
      integer*4     DEd         ! (deg) [24] Degree of Declination (J2000)
      integer*4     DEm         ! (arcmin) [1/57] Arcminute of Declination (J2000)
      real*4        DEs         ! (arcsec) Arcsecond of Declination (J2000)
      real*4        RMS         ! (mK) [10.9/30.5] Measured spectral RMS noise when
*                                   averaging to 1km/s channels
      character*1   l_Tbol      ! Limit Flag on Tbol
      integer*4     Tbol        ! (K) [41/1500]? Bolometric Temperature
      character*1   l_Lbol      ! Limit flag on Lbol
      real*8        Lbol        ! (Lsun) [0.009/18]? Luminosity
      real*4        alpha       ! [-1.3/5.1]? IR SED Slope
      character*27  OName       ! Other common identifier(s)

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

C  Declarations for 'table3.dat'	! Measured rotational temperatures, column densities,
                              median line widths, and LSR velocities

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

      character*11  Cloud_1     ! Cloud
      character*15  Name_1      ! Source name
      character*1   m_Name      ! [ms ] main or secondary emission
*                                      line component
      character*1   l_TrH2CO    ! Limit flag for Trot-H2CO
      real*4        TrH2CO      ! (K) [15/292]? H_2_CO Rotational Temperature (1)
      real*4        e_TrH2CO    ! (K) ? Uncertainty in Trot-H2CO (1)
      real*4        NH2CO       ! (10+12cm-2) [4/79]? H_2_CO number density (1)
      real*4        e_NH2CO     ! (10+12cm-2) ? Uncertainty in N-H2CO (1)
      real*4        dvH2CO      ! (km/s) [0.2/3]? H_2_CO linewidth, median value (1)
      real*4        vlsrH2CO    ! (km/s) [2/5]? H_2_CO LSR velocity,
*                                      median value (1)
      character*1   l_TrcC3H2   ! Limit flag for Trot-cC3H2
      real*4        TrcC3H2     ! (K) [6.7/17]? c-C_3_H_2_ Rotational Temperature
      real*4        e_TrcC3H2   ! (K) ? Uncertainty in Trot-cC3H2
      real*4        NcC3H2      ! (10+12cm-2) [0.4/6.5]? c-C_3_H_2_ number density
      real*4        e_NcC3H2    ! (10+12cm-2) ? Uncertainty in N-cC3H2
      real*4        dvcC3H2     ! (km/s) [0.2/2]? c-C_3_H_2_ linewidth, median value
      real*4        vlsrcC3H2   ! (km/s) [2.9/5]? c-C_3_H_2_ LSR velocity,
*                                      median value
*Note (1): H_2_CO column densities were calculated by non-LTE methods assuming
*          nH2=8.9+/-1.0x10^5cm^-3^; see Section 4.

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

C  Declarations for 'table4.dat'	! Measured line parameters

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

      character*15  Name_2      ! Source name
      character*1   m_Name_1    ! [ms ] main or secondary emission
*                                     line component (1)
      real*8        Freq0       ! (MHz) [216112/219950]? Rest Frequency (2)
      character*11  Mol         ! Molecule
      character*26  Trans       ! Transition
      character*1   f_Trans     ! Flag on Transition (3)
      real*4        vlsr        ! (km/s) [0/6.5]? LSR velocity from Gaussian fit
      real*4        dv          ! (km/s) [0.1/10.1]? linewidth from Gaussian fit
      real*4        Tmbdv       ! (K.km/s) [-9.99/19.5]? Integrated intensity (4)
      real*4        e_Tmbdv     ! (K.km/s) [0.01/0.07]? Uncertainty in Tmbdv
*Note (1): In sources with two components, these are listed as separate sources.
*Note (2): Rest frequencies from the CDMS (Muller+ 2001A&A...370L..49M)
*          and JPL (Pickett+ 1998JQSRT..60..883P) molecular spectroscopy
*          databases.
*Note (3): Transition Blend flags as follows:
*    a = Blend of F=9/2-7/2, F=7/2-5/2, and F=5/2-3/2;
*    b = Blend of F=7/2-5/2, F=5/2-3/2, and F=3/2-1/2;
*    c = Blend of F=13/2-11/2 and F=15/2-13/2;
*    d = F_1=2-2, F=2-1;
*    e = F_1=2-1, F=2-1;
*    f = F_1=2-1, F=3-2;
*    g = F_1=3-2, F=2-1;
*Note (4): For the sources with two components (m_Name not blank), the integrated
*          intensities are from Gaussian fits.
*          Considerable C^18^O emission in the off-position made the C^18^O line
*          data unreliable for some sources. Those are indicated by Tmbdv=-9.99.
*          Tmbdv with blank values indicates no emission lines were detected.

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

C  Loading file 'table1.dat'	! Coordinates and other properties of the
*                              observed sources

C  Format for file interpretation

    1 format(
     +  A9,1X,A15,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F4.1,
     +  1X,A1,I4,1X,A1,F7.4,1X,F5.2,1X,A27)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,38
        read(1,'(A103)')ar__
        read(ar__,1)
     +  Cloud,Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,RMS,l_Tbol,Tbol,l_Lbol,
     +  Lbol,alpha,OName
        if(ar__(57:60) .EQ. '') Tbol = iNULL__
        if(ar__(63:69) .EQ. '') Lbol = rNULL__
        if(ar__(71:75) .EQ. '') alpha = rNULL__
        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)
     +  Cloud,Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,RMS,l_Tbol,Tbol,l_Lbol,
     +  Lbol,alpha,OName
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Measured rotational temperatures, column densities,
*                              median line widths, and LSR velocities

C  Format for file interpretation

    2 format(
     +  A11,1X,A15,6X,A1,1X,A1,1X,F5.1,1X,F3.1,1X,F4.1,1X,F4.1,1X,
     +  F3.1,1X,F3.1,1X,A1,F4.1,1X,F3.1,1X,F4.2,1X,F4.2,1X,F3.1,1X,
     +  F3.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,47
        read(1,'(A92)')ar__1
        read(ar__1,2)
     +  Cloud_1,Name_1,m_Name,l_TrH2CO,TrH2CO,e_TrH2CO,NH2CO,e_NH2CO,
     +  dvH2CO,vlsrH2CO,l_TrcC3H2,TrcC3H2,e_TrcC3H2,NcC3H2,e_NcC3H2,
     +  dvcC3H2,vlsrcC3H2
        if(ar__1(38:42) .EQ. '') TrH2CO = rNULL__
        if(ar__1(44:46) .EQ. '') e_TrH2CO = rNULL__
        if(ar__1(48:51) .EQ. '') NH2CO = rNULL__
        if(ar__1(53:56) .EQ. '') e_NH2CO = rNULL__
        if(ar__1(58:60) .EQ. '') dvH2CO = rNULL__
        if(ar__1(62:64) .EQ. '') vlsrH2CO = rNULL__
        if(ar__1(67:70) .EQ. '') TrcC3H2 = rNULL__
        if(ar__1(72:74) .EQ. '') e_TrcC3H2 = rNULL__
        if(ar__1(76:79) .EQ. '') NcC3H2 = rNULL__
        if(ar__1(81:84) .EQ. '') e_NcC3H2 = rNULL__
        if(ar__1(86:88) .EQ. '') dvcC3H2 = rNULL__
        if(ar__1(90:92) .EQ. '') vlsrcC3H2 = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Cloud_1,Name_1,m_Name,l_TrH2CO,TrH2CO,e_TrH2CO,NH2CO,e_NH2CO,
     +  dvH2CO,vlsrH2CO,l_TrcC3H2,TrcC3H2,e_TrcC3H2,NcC3H2,e_NcC3H2,
     +  dvcC3H2,vlsrcC3H2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Measured line parameters

C  Format for file interpretation

    3 format(
     +  A15,1X,A1,1X,F9.2,1X,A11,1X,A26,1X,A1,2X,F3.1,1X,F4.1,1X,F5.2,
     +  1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,363
        read(1,'(A89)')ar__2
        read(ar__2,3)
     +  Name_2,m_Name_1,Freq0,Mol,Trans,f_Trans,vlsr,dv,Tmbdv,e_Tmbdv
        if(ar__2(19:27) .EQ. '') Freq0 = rNULL__
        if(ar__2(71:73) .EQ. '') vlsr = rNULL__
        if(ar__2(75:78) .EQ. '') dv = rNULL__
        if(ar__2(80:84) .EQ. '') Tmbdv = rNULL__
        if(ar__2(86:89) .EQ. '') e_Tmbdv = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  Name_2,m_Name_1,Freq0,Mol,Trans,f_Trans,vlsr,dv,Tmbdv,e_Tmbdv
c    .......End.of.Just test output...........
      end do
      close(1)

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