FORTRAN Generation
(/./ftp/cats/J/ApJ/651/61)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/651/61 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-May-17
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/ApJ/651/61    Optically thick absorbers near luminous quasars (Hennawi+, 2006)
*================================================================================
*Quasars probing quasars. I. Optically thick absorbers near luminous quasars.
*    Hennawi J.F., Prochaska J.X., Burles S., Strauss M.A., Richards G.T.,
*    Schlegel D.J., Fan X., Schneider D.P., Zakamska N.L., Oguri M., Gunn J.E.,
*    Lupton R.H., Brinkmann J.
*   <Astrophys. J., 651, 61-83 (2006)>
*   =2006ApJ...651...61H
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Optically thick absorption-line systems near
                             foreground quasars

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

      character*15  System      ! System name (SDSS JHHMM+DDMM)
      character*1   n_System    ! [a-d] Note on System (1)
      real*4        zbg         ! Background quasar redshift
      real*4        zfg         ! Foreground quasar redshift
      real*4        Dthe        ! (arcsec) Angular separation of the quasar pair
*                                    sight lines (2)
      integer*4     R           ! (kpc) Radius (in (h^-1^kpc)
      real*4        zabs        ! Absorber redshift
      integer*4     v_DV_       ! (km/s) Velocity difference between the absorber
*                                    redshift and our best estimate of the
*                                    redshift of the foreground quasar
      integer*4     DVfg        ! (km/s) Estimated error on the foreground quasar
*                                    redshift
      character*1   l_logNHI    ! Limit flag on logNHI
      real*4        logNHI      ! ([cm-2]) ? Column density of the absorber from our fit
*                                     to the HI profile
      real*4        e_logNHI    ! ([cm-2]) ? rms uncertainty on logNHI
      integer*4     gUV         ! Maximum enhancement of the quasar's ionizing
*                                    photon flux over that of the extragalactic
*                                    ionizing background, at the location of the
*                                    background quasar sight line, assuming that
*                                    gUV=1+F_QSO_/F_UVB_
*                                    the quasar emission is isotropic
      character*9   n_zfg       ! Emission line that was centered to determine
*                                    foreground quasar redshift (zfg)
      character*6   obs_fg      ! Instrument used to observed foreground quasar
      character*6   obs_bg      ! Instrument used to observed background quasar
*Note (1): Individual notes as follows:
*      a = In the systems SDSS J0127+1507 there are two distinct background
*          quasars at z=2.38 and 2.60, which show absorption in the
*          vicinity of the same foreground quasar at z=1.818.
*      b = The foreground quasar for this system has large BAL troughs in
*          the Ly{alpha} and CIV emission lines. The redshift was computed
*          by comparing the peak of CIV, determined by eye, to the shifted
*          wavelength lambda=1545.3{AA} We apply a conservative redshift
*          uncertainty of +/-1500km/s.
*      c = In the systems SDSS J2347+1501, there is a single background
*          quasar at z=2.29 and two foreground quasars at z=2.157 and
*          2.167, although the velocity separation is larger than our
*          nominal 1500km/s cutoff for the former.
*      d = Voigt profile fits to the Ly{alpha} absorption in the SDSS
*          spectrum of the background quasar gave log(NHI)=19.55+/-0.3.
*          An archive echelle spectrum of this quasar gives the smaller
*          value that is listed in the table, logNHI=18.8+.-0.2.
*Note (2): The angular separation of the quasar pair sight lines corresponds
*     to a transverse proper separation of R at the foreground quasar
*     redshift.

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

C  Declarations for 'table2.dat'	! Tentative optically thick absorption-line
                             systems near foreground quasars

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

      character*15  System_1    ! System name (SDSS JHHMM+DDMM)
      character*1   n_System_1  ! [a-d] Note on System (1)
      real*4        zbg_1       ! Background quasar redshift
      real*4        zfg_1       ! Foreground quasar redshift
      real*4        Dthe_1      ! (arcsec) Angular separation of the quasar pair
*                                    sight lines (2)
      integer*4     R_1         ! (kpc) Radius (in (h^-1^kpc)
      real*4        zabs_1      ! Absorber redshift
      integer*4     v_DV__1     ! (km/s) Velocity difference between the absorber
*                                    redshift and our best estimate of the
*                                    redshift of the foreground quasar
      integer*4     DVfg_1      ! (km/s) Estimated error on the foreground quasar
*                                    redshift
      character*1   l_logNHI_1  ! Limit flag on logNHI
      real*4        logNHI_1    ! ([cm-2]) ? Column density of the absorber from our fit
*                                     to the HI profile
      real*4        e_logNHI_1  ! ([cm-2]) ? rms uncertainty on logNHI
      integer*4     gUV_1       ! Maximum enhancement of the quasar's ionizing
*                                    photon flux over that of the extragalactic
*                                    ionizing background, at the location of the
*                                    background quasar sight line, assuming that
*                                    gUV=1+F_QSO_/F_UVB_
*                                    the quasar emission is isotropic
      character*9   n_zfg_1     ! Emission line that was centered to determine
*                                    foreground quasar redshift (zfg)
      character*6   obs_fg_1    ! Instrument used to observed foreground quasar
      character*6   obs_bg_1    ! Instrument used to observed background quasar
*Note (1): Individual notes as follows:
*      a = In the systems SDSS J0127+1507 there are two distinct background
*          quasars at z=2.38 and 2.60, which show absorption in the
*          vicinity of the same foreground quasar at z=1.818.
*      b = The foreground quasar for this system has large BAL troughs in
*          the Ly{alpha} and CIV emission lines. The redshift was computed
*          by comparing the peak of CIV, determined by eye, to the shifted
*          wavelength lambda=1545.3{AA} We apply a conservative redshift
*          uncertainty of +/-1500km/s.
*      c = In the systems SDSS J2347+1501, there is a single background
*          quasar at z=2.29 and two foreground quasars at z=2.157 and
*          2.167, although the velocity separation is larger than our
*          nominal 1500km/s cutoff for the former.
*      d = Voigt profile fits to the Ly{alpha} absorption in the SDSS
*          spectrum of the background quasar gave log(NHI)=19.55+/-0.3.
*          An archive echelle spectrum of this quasar gives the smaller
*          value that is listed in the table, logNHI=18.8+.-0.2.
*Note (2): The angular separation of the quasar pair sight lines corresponds
*     to a transverse proper separation of R at the foreground quasar
*     redshift.

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

C  Declarations for 'table3.dat'	! Coordinates and photometry for projected quasar
                             pairs in table 1

      integer*4 nr__2
      parameter (nr__2=54)	! Number of records
      character*91 ar__2  	! Full-size record

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg       ! (deg) Right Ascension J2000
      real*8        DEdeg       ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*15  Name        ! Quasar name (SDSS JHHMM+DDMM or 2QZ  JHHMM+DDMM)
      character*1   m_Name      ! [A-E] Multiplicity index on Name (1)
      integer*4     RAh         ! (h) Right ascension (J2000)
      integer*4     RAm         ! (min) Right ascension (J2000)
      real*4        RAs         ! (s) Right ascension (J2000)
      character*1   DE_         ! Declination sign (J2000)
      integer*4     DEd         ! (deg) Declination (J2000)
      integer*4     DEm         ! (arcmin) Declination (J2000)
      real*4        DEs         ! (arcsec) Declination (J2000)
      real*4        z           ! Spectroscopic redshift
      real*4        umag        ! (mag) Extinction-corrected SDSS u magnitude
      real*4        gmag        ! (mag) Extinction-corrected SDSS g magnitude
      real*4        rmag        ! (mag) Extinction-corrected SDSS r magnitude
      real*4        imag        ! (mag) Extinction-corrected SDSS i magnitude
      real*4        zmag        ! (mag) Extinction-corrected SDSS z magnitude
      character*15  System_2    ! System name ((SDSS JHHMM+DDMM)
*Note (1): The background and foreground quasars are labeled A and B,
*          respectively

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

C  Declarations for 'table4.dat'	! Coordinates and photometry for projected quasar
                             pairs in table 2

      integer*4 nr__3
      parameter (nr__3=12)	! Number of records
      character*91 ar__3  	! Full-size record

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg_1     ! (deg) Right Ascension J2000
      real*8        DEdeg_1     ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*15  Name_1      ! Quasar name (SDSS JHHMM+DDMM or 2QZ  JHHMM+DDMM)
      character*1   m_Name_1    ! [A-E] Multiplicity index on Name (1)
      integer*4     RAh_1       ! (h) Right ascension (J2000)
      integer*4     RAm_1       ! (min) Right ascension (J2000)
      real*4        RAs_1       ! (s) Right ascension (J2000)
      character*1   DE__1       ! Declination sign (J2000)
      integer*4     DEd_1       ! (deg) Declination (J2000)
      integer*4     DEm_1       ! (arcmin) Declination (J2000)
      real*4        DEs_1       ! (arcsec) Declination (J2000)
      real*4        z_1         ! Spectroscopic redshift
      real*4        umag_1      ! (mag) Extinction-corrected SDSS u magnitude
      real*4        gmag_1      ! (mag) Extinction-corrected SDSS g magnitude
      real*4        rmag_1      ! (mag) Extinction-corrected SDSS r magnitude
      real*4        imag_1      ! (mag) Extinction-corrected SDSS i magnitude
      real*4        zmag_1      ! (mag) Extinction-corrected SDSS z magnitude
      character*15  System_3    ! System name ((SDSS JHHMM+DDMM)
*Note (1): The background and foreground quasars are labeled A and B,
*          respectively

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

C  Declarations for 'table5.dat'	! Coordinates and photometry for the five quasars
                             in the projected group SDSS J0127+1507

      integer*4 nr__4
      parameter (nr__4=5)	! Number of records
      character*91 ar__4  	! Full-size record

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg_2     ! (deg) Right Ascension J2000
      real*8        DEdeg_2     ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*15  Name_2      ! Quasar name (SDSS JHHMM+DDMM or 2QZ  JHHMM+DDMM)
      character*1   m_Name_2    ! [A-E] Multiplicity index on Name (1)
      integer*4     RAh_2       ! (h) Right ascension (J2000)
      integer*4     RAm_2       ! (min) Right ascension (J2000)
      real*4        RAs_2       ! (s) Right ascension (J2000)
      character*1   DE__2       ! Declination sign (J2000)
      integer*4     DEd_2       ! (deg) Declination (J2000)
      integer*4     DEm_2       ! (arcmin) Declination (J2000)
      real*4        DEs_2       ! (arcsec) Declination (J2000)
      real*4        z_2         ! Spectroscopic redshift
      real*4        umag_2      ! (mag) Extinction-corrected SDSS u magnitude
      real*4        gmag_2      ! (mag) Extinction-corrected SDSS g magnitude
      real*4        rmag_2      ! (mag) Extinction-corrected SDSS r magnitude
      real*4        imag_2      ! (mag) Extinction-corrected SDSS i magnitude
      real*4        zmag_2      ! (mag) Extinction-corrected SDSS z magnitude
      character*15  System_4    ! System name ((SDSS JHHMM+DDMM)
*Note (1): The background and foreground quasars are labeled A and B,
*          respectively

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

C  Loading file 'table1.dat'	! Optically thick absorption-line systems near
*                             foreground quasars

C  Format for file interpretation

    1 format(
     +  A15,A1,1X,F4.2,1X,F5.3,1X,F5.1,1X,I4,1X,F6.4,1X,I4,1X,I4,1X,
     +  A1,F5.2,1X,F4.2,1X,I4,1X,A9,1X,A6,2X,A6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,28
        read(1,'(A97)')ar__
        read(ar__,1)
     +  System,n_System,zbg,zfg,Dthe,R,zabs,v_DV_,DVfg,l_logNHI,
     +  logNHI,e_logNHI,gUV,n_zfg,obs_fg,obs_bg
        if(ar__(58:62) .EQ. '') logNHI = rNULL__
        if(ar__(64:67) .EQ. '') e_logNHI = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  System,n_System,zbg,zfg,Dthe,R,zabs,v_DV_,DVfg,l_logNHI,
     +  logNHI,e_logNHI,gUV,n_zfg,obs_fg,obs_bg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Tentative optically thick absorption-line
*                             systems near foreground quasars

C  Format for file interpretation

    2 format(
     +  A15,A1,1X,F4.2,1X,F5.3,1X,F5.1,1X,I4,1X,F6.4,1X,I4,1X,I4,1X,
     +  A1,F5.2,1X,F4.2,1X,I4,1X,A9,1X,A6,2X,A6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,7
        read(1,'(A97)')ar__1
        read(ar__1,2)
     +  System_1,n_System_1,zbg_1,zfg_1,Dthe_1,R_1,zabs_1,v_DV__1,
     +  DVfg_1,l_logNHI_1,logNHI_1,e_logNHI_1,gUV_1,n_zfg_1,obs_fg_1,
     +  obs_bg_1
        if(ar__1(58:62) .EQ. '') logNHI_1 = rNULL__
        if(ar__1(64:67) .EQ. '') e_logNHI_1 = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  System_1,n_System_1,zbg_1,zfg_1,Dthe_1,R_1,zabs_1,v_DV__1,
     +  DVfg_1,l_logNHI_1,logNHI_1,e_logNHI_1,gUV_1,n_zfg_1,obs_fg_1,
     +  obs_bg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Coordinates and photometry for projected quasar
*                             pairs in table 1

C  Format for file interpretation

    3 format(
     +  A15,A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F4.2,1X,
     +  F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,A15)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,54
        read(1,'(A91)')ar__2
        read(ar__2,3)
     +  Name,m_Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,z,umag,gmag,rmag,imag,
     +  zmag,System_2
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,3)
     +  Name,m_Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,z,umag,gmag,rmag,imag,
     +  zmag,System_2
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Coordinates and photometry for projected quasar
*                             pairs in table 2

C  Format for file interpretation

    4 format(
     +  A15,A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F4.2,1X,
     +  F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,A15)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,12
        read(1,'(A91)')ar__3
        read(ar__3,4)
     +  Name_1,m_Name_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,z_1,
     +  umag_1,gmag_1,rmag_1,imag_1,zmag_1,System_3
        RAdeg_1 = rNULL__
        DEdeg_1 = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
        if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
        if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
        if(DEd_1 .GE. 0) DEdeg_1=DEd_1
        if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
        if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600.
        if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c    ..............Just test output...........
        write(6,4)
     +  Name_1,m_Name_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,z_1,
     +  umag_1,gmag_1,rmag_1,imag_1,zmag_1,System_3
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Coordinates and photometry for the five quasars
*                             in the projected group SDSS J0127+1507

C  Format for file interpretation

    5 format(
     +  A15,A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F4.2,1X,
     +  F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,A15)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,5
        read(1,'(A91)')ar__4
        read(ar__4,5)
     +  Name_2,m_Name_2,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,z_2,
     +  umag_2,gmag_2,rmag_2,imag_2,zmag_2,System_4
        RAdeg_2 = rNULL__
        DEdeg_2 = rNULL__
c  Derive coordinates RAdeg_2 and DEdeg_2 from input data
c  (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown)
        if(RAh_2 .GT. -180) RAdeg_2=RAh_2*15.
        if(RAm_2 .GT. -180) RAdeg_2=RAdeg_2+RAm_2/4.
        if(RAs_2 .GT. -180) RAdeg_2=RAdeg_2+RAs_2/240.
        if(DEd_2 .GE. 0) DEdeg_2=DEd_2
        if(DEm_2 .GE. 0) DEdeg_2=DEdeg_2+DEm_2/60.
        if(DEs_2 .GE. 0) DEdeg_2=DEdeg_2+DEs_2/3600.
        if(DE__2.EQ.'-'.AND.DEdeg_2.GE.0) DEdeg_2=-DEdeg_2
c    ..............Just test output...........
        write(6,5)
     +  Name_2,m_Name_2,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,z_2,
     +  umag_2,gmag_2,rmag_2,imag_2,zmag_2,System_4
        write(6,'(6H Pos: 2F8.4)') RAdeg_2,DEdeg_2
c    .......End.of.Just test output...........
      end do
      close(1)

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