FORTRAN Generation
(/./ftp/cats/J/PASJ/62/525)

Conversion of standardized ReadMe file for file /./ftp/cats/J/PASJ/62/525 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-20
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/PASJ/62/525       SiO maser survey off the Galactic Plane     (Deguchi+, 2010)
*================================================================================
*SiO maser survey off the Galactic Plane: A signature of streaming motion.
*    Deguchi S., Shimoikura T., Koike K.
*   <Publ. Astron. Soc. Jap., 62, 525-546 (2010)>
*   =2010PASJ...62..525D
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Observational results of SiO masers

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

      character*17  v2MASS     (nr__) ! 2MASS name (JHHMMSSss+DDMMSSs)
      real*4        Ta1        (nr__) ! (K) ?=- Antenna temperature at the intensity
*                                       peak for SiO J=1-0 v=1 line
      real*4        VLSR1      (nr__) ! (km/s) ?=- LSR radial velocity for SiO J=1-0 v=1
*                                       line (43.122GHz)
      real*4        LF1        (nr__) ! (K.km/s) ?=- Integrated line intensity for SiO J=1-0
*                                       v=1 line (43.122GHz)
      real*4        rms1       (nr__) ! (K) Root mean square of the noise level for
*                                       SiO J=1-0 v=1 line
      real*4        Ta2        (nr__) ! (K) ?=- Antenna temperature at the intensity peak
*                                       for SiO J=1-0 v=2 line (42.821GHz)
      real*4        VLSR2      (nr__) ! (km/s) ?=- LSR radial velocity for SiO J=1-0 v=2
*                                       line (42.821GHz)
      real*4        LF2        (nr__) ! (K.km/s) ?=- Integrated line intensity for
*                                       SiO J=1-0 v=2 line
      real*4        rms2       (nr__) ! (K) Root mean square of the noise level for
*                                     SiO J=1-0 v=2 line
      character*10  ObsDate    (nr__) ! ("YYYY/MM/DD") Observation date

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

C  Declarations for 'table2.dat'	! Negative results for SiO detection

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

      character*17  v2MASS_1   (nr__1) ! 2MASS name (JHHMMSSss+DDMMSSs)
      real*4        rms1_1     (nr__1) ! (K) Root mean square of the noise level for
*                                    SiO J=1-0 v=1 line
      real*4        rms2_1     (nr__1) ! (K) Root mean square of the noise level for
*                                    SiO J=1-0 v=2 line
      character*10  ObsDate_1  (nr__1) ! ("YYYY/MM/DD") Observation date

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

C  Declarations for 'table3.dat'	! Infrared properties of the observed stars

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

C  Position composed of: GLON GLAT
      character*17  v2MASS_2   (nr__2) ! 2MASS name (JHHMMSSss+DDMMSSs)
      real*8        GLON       (nr__2) ! (deg) Galactic longitude
      real*8        GLAT       (nr__2) ! (deg) Galactic latitude
      real*4        Kmag       (nr__2) ! (mag) 2MASS apparent K magnitude (1)
      real*4        H_K        (nr__2) ! (mag) 2MASS H-K colour index
      real*4        Kmagc      (nr__2) ! (mag) Corrected K magnitude
      character*10  IRAS       (nr__2) ! IRAS name (HHMMm+DDMM)
      real*4        F12        (nr__2) ! (Jy) IRAS flux density at 12um
      real*4        C12        (nr__2) ! IRAS C12 (log(F25um/F12um)) colour index
      real*4        v_SiO      (nr__2) ! (km/s) ? Average LSR velocity of SiO maser lines
*Note (1): 2MASS photometric uncertainties are about 0.2mag for bright stars
*     with K<4 (see
*     http://www.ipac.caltech.edu/2mass:releases/allsky/doc/sec2_2.html)

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

C  Declarations for 'table4.dat'	! Candidates for deviant motion (|b|>3{deg})

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

C  Position composed of: GLON GLAT
      character*17  v2MASS_3   (nr__3) ! 2MASS name (JHHMMSSss+DDMMSSs)
      character*1   n_2MASS    (nr__3) ! [*+] Note on 2MASS (1)
      character*10  IRAS_1     (nr__3) ! IRAS name (HHMMm+DDMM)
      real*4        GLON_1     (nr__3) ! (deg) Galactic longitude
      real*4        GLAT_1     (nr__3) ! (deg) Galactic latitude
      real*4        vLSR       (nr__3) ! (km/s) LSR radial velocity
      real*4        Kmag_1     (nr__3) ! (mag) 2MASS apparent K magnitude
      real*4        H_K_1      (nr__3) ! (mag) 2MASS H-K colour index
      real*4        Kmagc_1    (nr__3) ! (mag) Corrected K magnitude
      real*4        F12um      (nr__3) ! (Jy) IRAS flux density at 12um
      real*4        C12_1      (nr__3) ! IRAS C12 (log(F25um/F12um)) colour index
*Note (1): Note as follows:
*      * = Hipparcos proper motion data exist
*      + = Detection in this work

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

C  Loading file 'table1.dat'	! Observational results of SiO masers

C  Format for file interpretation

    1 format(
     +  A17,1X,F5.3,1X,F5.1,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.1,1X,F6.3,
     +  1X,F5.3,1X,A10)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,85
        read(1,'(A78)')ar__
        read(ar__,1)
     +  v2MASS(i__),Ta1(i__),VLSR1(i__),LF1(i__),rms1(i__),Ta2(i__),
     +  VLSR2(i__),LF2(i__),rms2(i__),ObsDate(i__)
        if (idig(ar__(19:23)).EQ.0) Ta1(i__) =  rNULL__
        if (idig(ar__(25:29)).EQ.0) VLSR1(i__) =  rNULL__
        if (idig(ar__(31:36)).EQ.0) LF1(i__) =  rNULL__
        if (idig(ar__(44:48)).EQ.0) Ta2(i__) =  rNULL__
        if (idig(ar__(50:54)).EQ.0) VLSR2(i__) =  rNULL__
        if (idig(ar__(56:61)).EQ.0) LF2(i__) =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  v2MASS(i__),Ta1(i__),VLSR1(i__),LF1(i__),rms1(i__),Ta2(i__),
     +  VLSR2(i__),LF2(i__),rms2(i__),ObsDate(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Negative results for SiO detection

C  Format for file interpretation

    2 format(A17,1X,F5.3,1X,F5.3,1X,A10)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,48
        read(1,'(A40)')ar__1
        read(ar__1,2)
     +  v2MASS_1(i__),rms1_1(i__),rms2_1(i__),ObsDate_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  v2MASS_1(i__),rms1_1(i__),rms2_1(i__),ObsDate_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Infrared properties of the observed stars

C  Format for file interpretation

    3 format(
     +  A17,1X,F7.3,1X,F7.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,A10,2X,F5.2,1X,
     +  F6.3,1X,F5.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,133
        read(1,'(A82)')ar__2
        read(ar__2,3)
     +  v2MASS_2(i__),GLON(i__),GLAT(i__),Kmag(i__),H_K(i__),
     +  Kmagc(i__),IRAS(i__),F12(i__),C12(i__),v_SiO(i__)
        if(ar__2(78:82) .EQ. '') v_SiO(i__) = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  v2MASS_2(i__),GLON(i__),GLAT(i__),Kmag(i__),H_K(i__),
     +  Kmagc(i__),IRAS(i__),F12(i__),C12(i__),v_SiO(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Candidates for deviant motion (|b|>3{deg})

C  Format for file interpretation

    4 format(
     +  A17,A1,1X,A10,1X,F5.2,1X,F6.2,1X,F5.1,1X,F5.2,1X,F4.2,1X,F5.2,
     +  1X,F5.1,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,20
        read(1,'(A77)')ar__3
        read(ar__3,4)
     +  v2MASS_3(i__),n_2MASS(i__),IRAS_1(i__),GLON_1(i__),
     +  GLAT_1(i__),vLSR(i__),Kmag_1(i__),H_K_1(i__),Kmagc_1(i__),
     +  F12um(i__),C12_1(i__)
c    ..............Just test output...........
        write(6,4)
     +  v2MASS_3(i__),n_2MASS(i__),IRAS_1(i__),GLON_1(i__),
     +  GLAT_1(i__),vLSR(i__),Kmag_1(i__),H_K_1(i__),Kmagc_1(i__),
     +  F12um(i__),C12_1(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