FORTRAN Generation
(/./ftp/cats/J/AJ/138/845)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/138/845 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-18
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/AJ/138/845       BVRI observations of 235 bright quasars   (Ojha+, 2009)
*================================================================================
*Photometric observations of selected, optically bright quasars for Space
*Interferometry Mission and other future celestial reference frames.
*    Ojha R., Zacharias N., Hennessy G.S., Gaume R.A., Johnston K.J.
*   <Astron. J., 138, 845-857 (2009)>
*   =2009AJ....138..845O
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Magnitudes of Space Interferometry Mission (SIM)
                             candidate quasars

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

      character*8   Name        ! Source J2000.0 name (HHMM+DDd)
      real*4        v_Bmag_     ! (mag) ? Mean B band magnitude
      real*4        v_Vmag_     ! (mag) ? Mean V band magnitude
      real*4        v_Rmag_     ! (mag) ? Mean R band magnitude
      real*4        v_Imag_     ! (mag) ? Mean I band magnitude
      real*4        e__Bmag_    ! (mag) ? Standard deviation in <Bmag>
      real*4        e__Vmag_    ! (mag) ? Standard deviation in <Vmag>
      real*4        e__Rmag_    ! (mag) ? Standard deviation in <Rmag>
      real*4        e__Imag_    ! (mag) ? Standard deviation in <Imag>
      real*4        B_V         ! (mag) ? The (B-V) color index
      real*4        V_R         ! (mag) ? The (V-R) color index
      real*4        R_I         ! (mag) ? The (R-I) color index
      real*4        V_I         ! (mag) ? The (V-I) color index
      integer*4     o__Bmag_    ! Number of observations in <Bmag>
      integer*4     o__Vmag_    ! Number of observations in <Vmag>
      integer*4     o__Rmag_    ! Number of observations in <Rmag>
      integer*4     o__Imag_    ! Number of observations in <Imag>
      character*3   Epoch       ! Epoch label (1)
*Note (1): Observation summary:
*     --------------------------------
*     Label  Telescope  Epoch   Nights
*     --------------------------------
*     n51  = NOFS       2005.28    4
*     n52  = NOFS       2005.66    3
*     n53  = NOFS       2006.15    3
*     n54  = NOFS       2007.53    3
*     c02  = CTIO       2005.86    4
*     c03  = CTIO       2006.29    4
*     c05  = CTIO       2006.92   12
*     c06  = CTIO       2007.15    5
*     --------------------------------

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

C  Loading file 'table2.dat'	! Magnitudes of Space Interferometry Mission (SIM)
*                             candidate quasars

C  Format for file interpretation

    1 format(
     +  A8,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,
     +  F5.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,I1,1X,I1,1X,I2,1X,I1,
     +  1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,390
        read(1,'(A101)')ar__
        read(ar__,1)
     +  Name,v_Bmag_,v_Vmag_,v_Rmag_,v_Imag_,e__Bmag_,e__Vmag_,
     +  e__Rmag_,e__Imag_,B_V,V_R,R_I,V_I,o__Bmag_,o__Vmag_,o__Rmag_,
     +  o__Imag_,Epoch
        if(ar__(10:15) .EQ. '') v_Bmag_ = rNULL__
        if(ar__(17:22) .EQ. '') v_Vmag_ = rNULL__
        if(ar__(24:29) .EQ. '') v_Rmag_ = rNULL__
        if(ar__(31:36) .EQ. '') v_Imag_ = rNULL__
        if(ar__(38:42) .EQ. '') e__Bmag_ = rNULL__
        if(ar__(44:48) .EQ. '') e__Vmag_ = rNULL__
        if(ar__(50:54) .EQ. '') e__Rmag_ = rNULL__
        if(ar__(56:60) .EQ. '') e__Imag_ = rNULL__
        if(ar__(62:67) .EQ. '') B_V = rNULL__
        if(ar__(69:74) .EQ. '') V_R = rNULL__
        if(ar__(76:81) .EQ. '') R_I = rNULL__
        if(ar__(83:88) .EQ. '') V_I = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name,v_Bmag_,v_Vmag_,v_Rmag_,v_Imag_,e__Bmag_,e__Vmag_,
     +  e__Rmag_,e__Imag_,B_V,V_R,R_I,V_I,o__Bmag_,o__Vmag_,o__Rmag_,
     +  o__Imag_,Epoch
c    .......End.of.Just test output...........
      end do
      close(1)

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