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 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-16
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      ! 2MASS name (JHHMMSSss+DDMMSSs)
      real*4        Ta1         ! (K) ?=- Antenna temperature at the intensity
*                                       peak for SiO J=1-0 v=1 line
      real*4        VLSR1       ! (km/s) ?=- LSR radial velocity for SiO J=1-0 v=1
*                                       line (43.122GHz)
      real*4        LF1         ! (K.km/s) ?=- Integrated line intensity for SiO J=1-0
*                                       v=1 line (43.122GHz)
      real*4        rms1        ! (K) Root mean square of the noise level for
*                                       SiO J=1-0 v=1 line
      real*4        Ta2         ! (K) ?=- Antenna temperature at the intensity peak
*                                       for SiO J=1-0 v=2 line (42.821GHz)
      real*4        VLSR2       ! (km/s) ?=- LSR radial velocity for SiO J=1-0 v=2
*                                       line (42.821GHz)
      real*4        LF2         ! (K.km/s) ?=- Integrated line intensity for
*                                       SiO J=1-0 v=2 line
      real*4        rms2        ! (K) Root mean square of the noise level for
*                                     SiO J=1-0 v=2 line
      character*10  ObsDate     ! ("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    ! 2MASS name (JHHMMSSss+DDMMSSs)
      real*4        rms1_1      ! (K) Root mean square of the noise level for
*                                    SiO J=1-0 v=1 line
      real*4        rms2_1      ! (K) Root mean square of the noise level for
*                                    SiO J=1-0 v=2 line
      character*10  ObsDate_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    ! 2MASS name (JHHMMSSss+DDMMSSs)
      real*8        GLON        ! (deg) Galactic longitude
      real*8        GLAT        ! (deg) Galactic latitude
      real*4        Kmag        ! (mag) 2MASS apparent K magnitude (1)
      real*4        H_K         ! (mag) 2MASS H-K colour index
      real*4        Kmagc       ! (mag) Corrected K magnitude
      character*10  IRAS        ! IRAS name (HHMMm+DDMM)
      real*4        F12         ! (Jy) IRAS flux density at 12um
      real*4        C12         ! IRAS C12 (log(F25um/F12um)) colour index
      real*4        v_SiO       ! (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    ! 2MASS name (JHHMMSSss+DDMMSSs)
      character*1   n_2MASS     ! [*+] Note on 2MASS (1)
      character*10  IRAS_1      ! IRAS name (HHMMm+DDMM)
      real*4        GLON_1      ! (deg) Galactic longitude
      real*4        GLAT_1      ! (deg) Galactic latitude
      real*4        vLSR        ! (km/s) LSR radial velocity
      real*4        Kmag_1      ! (mag) 2MASS apparent K magnitude
      real*4        H_K_1       ! (mag) 2MASS H-K colour index
      real*4        Kmagc_1     ! (mag) Corrected K magnitude
      real*4        F12um       ! (Jy) IRAS flux density at 12um
      real*4        C12_1       ! 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,Ta1,VLSR1,LF1,rms1,Ta2,VLSR2,LF2,rms2,ObsDate
        if (idig(ar__(19:23)).EQ.0) Ta1 =  rNULL__
        if (idig(ar__(25:29)).EQ.0) VLSR1 =  rNULL__
        if (idig(ar__(31:36)).EQ.0) LF1 =  rNULL__
        if (idig(ar__(44:48)).EQ.0) Ta2 =  rNULL__
        if (idig(ar__(50:54)).EQ.0) VLSR2 =  rNULL__
        if (idig(ar__(56:61)).EQ.0) LF2 =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  v2MASS,Ta1,VLSR1,LF1,rms1,Ta2,VLSR2,LF2,rms2,ObsDate
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,rms1_1,rms2_1,ObsDate_1
c    ..............Just test output...........
        write(6,2)v2MASS_1,rms1_1,rms2_1,ObsDate_1
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,GLON,GLAT,Kmag,H_K,Kmagc,IRAS,F12,C12,v_SiO
        if(ar__2(78:82) .EQ. '') v_SiO = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  v2MASS_2,GLON,GLAT,Kmag,H_K,Kmagc,IRAS,F12,C12,v_SiO
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,n_2MASS,IRAS_1,GLON_1,GLAT_1,vLSR,Kmag_1,H_K_1,
     +  Kmagc_1,F12um,C12_1
c    ..............Just test output...........
        write(6,4)
     +  v2MASS_3,n_2MASS,IRAS_1,GLON_1,GLAT_1,vLSR,Kmag_1,H_K_1,
     +  Kmagc_1,F12um,C12_1
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