FORTRAN Generation
(/./ftp/cats/J/MNRAS/466/3088)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/466/3088 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 2026-Oct-07
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/MNRAS/466/3088    Lensed and extended quasars              (Williams+, 2017)
*================================================================================
*Population mixtures and searches of lensed and extended quasars across
*photometric surveys.
*    Williams P., Agnello A., Treu T.
*   <Mon. Not. R. Astron. Soc., 466, 3088-3102 (2017)>
*   =2017MNRAS.466.3088W    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! List of all known lenses in SDSS, along with
                                 selected membership probabilities

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

C  J2000 position composed of: RAdeg DEdeg
      character*19  Name        ! Name
      real*8        RAdeg       ! (deg) Right ascension (J2000)
      real*8        DEdeg       ! (deg) Declination (J2000)
      real*8        p_lens      ! Probability of lensed QSO
      real*8        p_PLQSO     ! Probability of point-like QSO, all redshifts
      real*8        p_ExtQSO1   ! Probability of extended QSO, 1.2<z<1.75
      real*8        p_ExtQSO2   ! Probability of extended QSO, 1.75<z<2.4
      real*8        p_ExtQSO3   ! Probability of extended QSO, z>2.4
      real*4        Sep         ! (arcsec) Separation

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

C  Declarations for 'table3.dat'	! *Coordinates and colours of the 43 SDSS objects
                                 selected by visual inspection.

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        RAdeg_1     ! (deg) Rigth ascension (J2000)
      real*8        DEdeg_1     ! (deg) Declination (J2000)
      real*4        umag        ! (mag) SDSS u magnitude (AB)
      real*4        gmag        ! (mag) SDSS g magnitude (AB)
      real*4        rmag        ! (mag) SDSS r magnitude (AB)
      real*4        imag        ! (mag) SDSS i magnitude (AB)
      real*4        zmag        ! (mag) SDSS z magnitude (AB)
      real*4        W1mag       ! (mag) WISE W1 magnitude (Vega)
      real*4        W2mag       ! (mag) WISE W2 magnitude (Vega)
      real*4        gmagpsf     ! (mag) SDSS PSF g magnitude (AB)
      real*4        rmagpsf     ! (mag) SDSS PSF r magnitude (AB)
      real*4        imagpsf     ! (mag) SDSS PSF i magnitude (AB)
      real*4        W3mag       ! (mag) WISE W3 magnitude (Vega)
      real*4        z           ! Redshift
      real*8        p_lens_1    ! Lensing QSO probability

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

C  Loading file 'table2.dat'	! List of all known lenses in SDSS, along with
*                                 selected membership probabilities

C  Format for file interpretation

    1 format(
     +  A19,1X,F11.7,1X,F11.7,1X,F7.5,1X,F7.5,1X,F7.5,1X,F7.5,1X,F7.5,
     +  1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,128
        read(1,'(A89)')ar__
        read(ar__,1)
     +  Name,RAdeg,DEdeg,p_lens,p_PLQSO,p_ExtQSO1,p_ExtQSO2,p_ExtQSO3,
     +  Sep
c    ..............Just test output...........
        write(6,1)
     +  Name,RAdeg,DEdeg,p_lens,p_PLQSO,p_ExtQSO1,p_ExtQSO2,p_ExtQSO3,
     +  Sep
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! *Coordinates and colours of the 43 SDSS objects
*                                 selected by visual inspection.

C  Format for file interpretation

    2 format(
     +  F11.7,1X,F10.7,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,
     +  F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.3,1X,F7.5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,43
        read(1,'(A102)')ar__1
        read(ar__1,2)
     +  RAdeg_1,DEdeg_1,umag,gmag,rmag,imag,zmag,W1mag,W2mag,gmagpsf,
     +  rmagpsf,imagpsf,W3mag,z,p_lens_1
c    ..............Just test output...........
        write(6,2)
     +  RAdeg_1,DEdeg_1,umag,gmag,rmag,imag,zmag,W1mag,W2mag,gmagpsf,
     +  rmagpsf,imagpsf,W3mag,z,p_lens_1
c    .......End.of.Just test output...........
      end do
      close(1)

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