FORTRAN Generation
(/./ftp/cats/J/AJ/131/49)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/131/49 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/AJ/131/49      Gravitational lenses among z>=4.0 quasars     (Richards+, 2006)
*================================================================================
*A snapshot survey for gravitational lenses among z{>=}4.0 quasars.
*II. Constraints on the 4.0<z<5.4 quasar population.
*    Richards G.T., Haiman Z., Pindor B., Strauss M.A., Fan X., Eisenstein D.,
*    Schneider D.P., Bahcall N.A., Brinkmann J., Fukugita M.
*   <Astron. J., 131, 49-54 (2006)>
*   =2006AJ....131...49R
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Table 1: Results of imaging 157 SDSS quasars
                             with 4<z<5.4

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

      character*18  SDSSJ       ! The IAU name (G1)
      character*1   f_SDSSJ     ! [*] Flag on SDSSJ (G2)
      real*4        z           ! Redshift
      real*4        BMAG        ! (mag) ? Absolute B band magnitude (1)
      real*4        imag        ! (mag) SDSS i band magnitude (G3)
      real*4        imagH       ! (mag) ? HST i band magnitude (G3)
      real*4        Prob0       ! ? Lensing probability ignoring morphological
*                                 selection effects
      real*4        Prob        ! ? Lensing probability after accounting for
*                                 morphological selection effects
      character*2   HST_ID      ! Observation set identification (2)
      integer*4     r_SDSSJ     ! Discovery reference code for SDSSJ (G4)
*Note (1): Computed with the parameters given in Section 1.
*Note (2): Related to the HST file naming convention. This is given to
*     facilitate archival use of these data. The program id for this 
*     project was "8f3", thus the files for the first object have names 
*     like j8f3aa011_crj.fits.

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

C  Declarations for 'table2.dat'	! Table 2: Additional sources included in our
                             sample, but never observed by HST

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

      character*18  SDSSJ_1     ! The IAU name (G1)
      character*1   f_SDSSJ_1   ! [*] Flag on SDSSJ (G2)
      real*4        z_1         ! Redshift
      real*4        BMAG_1      ! (mag) ? Absolute B band magnitude (1)
      real*4        imag_1      ! (mag) SDSS i band magnitude (G3)
      real*4        imagH_1     ! (mag) ? HST i band magnitude (G3)
      real*4        Prob0_1     ! ? Lensing probability ignoring morphological
*                                 selection effects
      real*4        Prob_1      ! ? Lensing probability after accounting for
*                                 morphological selection effects
      character*2   HST_ID_1    ! Observation set identification (2)
      integer*4     r_SDSSJ_1   ! Discovery reference code for SDSSJ (G4)
*Note (1): Computed with the parameters given in Section 1.
*Note (2): Related to the HST file naming convention. This is given to
*     facilitate archival use of these data. The program id for this 
*     project was "8f3", thus the files for the first object have names 
*     like j8f3aa011_crj.fits.

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

C  Loading file 'table1.dat'	! Table 1: Results of imaging 157 SDSS quasars
*                             with 4<z<5.4

C  Format for file interpretation

    1 format(
     +  A18,1X,A1,1X,F5.3,1X,F6.2,1X,F5.2,1X,F5.2,1X,F6.4,1X,F6.4,1X,
     +  A2,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,157
        read(1,'(A64)')ar__
        read(ar__,1)
     +  SDSSJ,f_SDSSJ,z,BMAG,imag,imagH,Prob0,Prob,HST_ID,r_SDSSJ
        if(ar__(28:33) .EQ. '') BMAG = rNULL__
        if(ar__(41:45) .EQ. '') imagH = rNULL__
        if(ar__(47:52) .EQ. '') Prob0 = rNULL__
        if(ar__(54:59) .EQ. '') Prob = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  SDSSJ,f_SDSSJ,z,BMAG,imag,imagH,Prob0,Prob,HST_ID,r_SDSSJ
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Table 2: Additional sources included in our
*                             sample, but never observed by HST

C  Format for file interpretation

    2 format(
     +  A18,1X,A1,1X,F5.3,1X,F6.2,1X,F5.2,1X,F5.2,1X,F6.4,1X,F6.4,1X,
     +  A2,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,89
        read(1,'(A64)')ar__1
        read(ar__1,2)
     +  SDSSJ_1,f_SDSSJ_1,z_1,BMAG_1,imag_1,imagH_1,Prob0_1,Prob_1,
     +  HST_ID_1,r_SDSSJ_1
        if(ar__1(28:33) .EQ. '') BMAG_1 = rNULL__
        if(ar__1(41:45) .EQ. '') imagH_1 = rNULL__
        if(ar__1(47:52) .EQ. '') Prob0_1 = rNULL__
        if(ar__1(54:59) .EQ. '') Prob_1 = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  SDSSJ_1,f_SDSSJ_1,z_1,BMAG_1,imag_1,imagH_1,Prob0_1,Prob_1,
     +  HST_ID_1,r_SDSSJ_1
c    .......End.of.Just test output...........
      end do
      close(1)

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