FORTRAN Generation
(/./ftp/cats/J/AJ/142/35)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/142/35 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.5, on 2013-May-25
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__=-1.e37)     	! NULL real number
      parameter  (iNULL__=-2147483647)	! NULL int  number

C=============================================================================
Cat. J/AJ/142/35     The VLBA Galactic Plane Survey (VGaPS)       (Petrov+, 2011)
*================================================================================
*The VLBA Galactic Plane Survey. VGaPS.
*    Petrov L., Kovalev Y.Y., Fomalont E.B., Gordon D.
*   <Astron. J. 142, 35 (2011)>
*   =2011AJ....142...35P
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table9.dat'	! VGaPS catalogue

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

      real*8        RA_         ! (deg) Right Ascension J2000.0
      real*8        Dec         ! (deg)     Declination J2000.0
      character*1   Cat         ! [CNU] Category: Calibrator, Non-calibrator,
*                                        or Unreliable coordinates
      character*8   Bname       ! IVS B1950 source name
      character*10  Jname       ! IAU J2000 source name
      integer*4     RAh         ! (h) Right ascension (J2000.0)
      integer*4     RAm         ! (min) Right ascension (J2000.0)
      real*8        RAs         ! (s) Right ascension (J2000.0)
      character*1   DE_         ! Declination sign (J2000.0)
      integer*4     DEd         ! (deg) Declination (J2000.0)
      integer*4     DEm         ! (arcmin) Declination (J2000.0)
      real*8        DEs         ! (arcsec) Declination (J2000.0)
      real*4        e_RAs       ! (mas) Inflated right ascension position uncertainty
*                                   (without cos({delta}) factor)
      real*4        e_DEs       ! (mas) Inflated declination position uncertainty
      real*4        Corr        ! [-1/1] Correlation between estimates of right
*                                   ascension and declination
      integer*4     Nobs        ! Number of used observations
      real*4        Ftot        ! (Jy) K-band (22GHz) total correlated flux density
*                                   integrated over entire map
      character*1   l_Func      ! Limit flag on Func
      real*4        Func        ! (Jy) K-band (22GHz) unresolved correlated flux
*                                   density at long VLBA baselines

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

C  Declarations for 'table10.dat'	! The list of 160 sources that have not been
                              detected in VGaPS observations

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

      real*8        RA__1       ! (deg) Right Ascension J2000
      real*8        Dec_1       ! (deg)     Declination J2000
      character*8   Bname_1     ! The IVS source name; B1950.0
      character*10  Jname_1     ! The IAU source name; J2000.0
      integer*4     RAh_1       ! (h) Hour of Right Ascension (J2000)
      integer*4     RAm_1       ! (min) Minute of Right Ascension (J2000)
      real*4        RAs_1       ! (s) Second of Right Ascension (J2000)
      character*1   DE__1       ! Sign of the Declination (J2000)
      integer*4     DEd_1       ! (deg) Degree of Declination (J2000)
      integer*4     DEm_1       ! (arcmin) Arcminute of Declination (J2000)
      real*4        DEs_1       ! (arcsec) Arcsecond of Declination (J2000)
      real*4        GLAT        ! (deg) Galactic latitude
      integer*4     Flux        ! (mJy) ? Flux density extrapolated at 22GHz
      real*4        alpha       ! ? Spectral index {alpha}
*                                    (in sense F{prop.to}{nu}^{alpha}^)
      integer*4     o_alpha     ! Number of points for {alpha} computation

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

C  Loading file 'table9.dat'	! VGaPS catalogue

C  Format for file interpretation

    1 format(
     +  A1,1X,A8,1X,A10,1X,I2,1X,I2,1X,F9.6,1X,A1,I2,1X,I2,1X,F8.5,1X,
     +  F6.2,1X,F6.2,1X,F6.3,1X,I4,1X,F4.2,1X,A1,F4.2)

C  Effective file loading

      open(unit=1,file='table9.dat', status='old')
      write(6,*) '....Loading file: table9.dat'
      do i__=1,327
        read(1,'(A90)')ar__
        read(ar__,1)
     +  Cat,Bname,Jname,RAh,RAm,RAs,DE_,DEd,DEm,DEs,e_RAs,e_DEs,Corr,
     +  Nobs,Ftot,l_Func,Func
c       Derive coordinates RA_ and Dec from input data
c       (RA_ and Dec are set to rNULL_ when unknown)
        RA_ = RAh
        if(RAh .GE. 0) RA_=RAh*15.
        if(RAm .GE. 0) RA_=RA_+RAm/4.
        if(RAs .GE. 0) RA_=RA_+RAs/240.
        Dec = DEd
        if(DEm .GE. 0) Dec=Dec+DEm/60.
        if(DEs .GE. 0) Dec=Dec+DEs/3600.
        if(DE_.EQ.'-'.AND.Dec.GE.0) Dec=-Dec
c    ..............Just test output...........
        write(6,1)
     +  Cat,Bname,Jname,RAh,RAm,RAs,DE_,DEd,DEm,DEs,e_RAs,e_DEs,Corr,
     +  Nobs,Ftot,l_Func,Func
        write(6,'(6H Pos: 2F8.4)') RA_,Dec
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table10.dat'	! The list of 160 sources that have not been
*                              detected in VGaPS observations

C  Format for file interpretation

    2 format(
     +  A8,1X,A10,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,F5.1,
     +  1X,I4,1X,F5.2,1X,I2)

C  Effective file loading

      open(unit=1,file='table10.dat', status='old')
      write(6,*) '....Loading file: table10.dat'
      do i__=1,160
        read(1,'(A65)')ar__1
        read(ar__1,2)
     +  Bname_1,Jname_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,
     +  GLAT,Flux,alpha,o_alpha
        if(ar__1(53:56) .EQ. '') Flux = iNULL__
        if(ar__1(58:62) .EQ. '') alpha = rNULL__
c       Derive coordinates RA__1 and Dec_1 from input data
c       (RA__1 and Dec_1 are set to rNULL_ when unknown)
        RA__1 = RAh_1
        if(RAh_1 .GE. 0) RA__1=RAh_1*15.
        if(RAm_1 .GE. 0) RA__1=RA__1+RAm_1/4.
        if(RAs_1 .GE. 0) RA__1=RA__1+RAs_1/240.
        Dec_1 = DEd_1
        if(DEm_1 .GE. 0) Dec_1=Dec_1+DEm_1/60.
        if(DEs_1 .GE. 0) Dec_1=Dec_1+DEs_1/3600.
        if(DE__1.EQ.'-'.AND.Dec_1.GE.0) Dec_1=-Dec_1
c    ..............Just test output...........
        write(6,2)
     +  Bname_1,Jname_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,
     +  GLAT,Flux,alpha,o_alpha
        write(6,'(6H Pos: 2F8.4)') RA__1,Dec_1
c    .......End.of.Just test output...........
      end do
      close(1)

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