FORTRAN Generation
(/./ftp/cats/J/ApJ/796/140)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/796/140 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/ApJ/796/140  Circumgalactic medium surrounding z~2 quasars  (Prochaska+, 2014)
*================================================================================
*Quasars probing quasars.
*VII. The pinnacle of the cool circumgalactic medium surrounds massive
*z~2 galaxies.
*    Prochaska J.X., Lau M.W., Hennawi J.F.
*   <Astrophys. J., 796, 140 (2014)>
*   =2014ApJ...796..140P    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! QPQ7 Spectra

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

      character*19  b_gQ        ! Background quasar identifier (JHHMMSS.ss+DDMMSS.s)
      character*19  f_gQ        ! Foreground quasar identifier (JHHMMSS.ss+DDMMSS.s)
      real*4        zfg         ! Foreground quasar redshift
      integer*4     Rphys       ! (kpc) Impact parameter
      character*20  Instr       ! Instrument used in the observation
      character*9   Wave        ! (0.1nm) Wavelength coverage of Instr in Angstroms (1)
*Note (1): Rest-frame wavelengths at the f/g quasar redshift where the spectra
*          of the b/g quasar exceeds S/N>5 per pixel.

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

C  Declarations for 'table2.dat'	! QPQ7 EW Measurements

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

      character*19  f_gQ_1      ! Foreground quasar identifier (JHHMMSS.ss+DDMMSS.s)
      character*19  b_gQ_1      ! Background quasar identifier (JHHMMSS.ss+DDMMSS.s)
      integer*4     Rphys_1     ! (kpc) Impact parameter
      real*4        zfg_1       ! Foreground quasar redshift
      integer*4     delv        ! (km/s) Velocity offset (1)
      real*4        W1334       ! (0.1nm) ? Equivalent width of C II 1334{AA} line (G1)
      real*4        e_W1334     ! (0.1nm) ? Uncertainty in W1334 (G1)
      real*4        W1548       ! (0.1nm) ? Equivalent width of C IV 1548{AA} line (G1)
      real*4        e_W1548     ! (0.1nm) ? Uncertainty in W1548 (G1)
*Note (1): From z_Ly{alpha}_ to zfg. Note that absorption lines were assessed
*          only for data with S/N_Ly{alpha}_>9.5.

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

C  Declarations for 'table5.dat'	! SDSS C IV Survey

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

      character*19  Quasar      ! Quasar identifier (JHHMMSS.ss+DDMMSS.s)
      real*4        zq          ! Quasar emission redshift
      real*4        zstart      ! Starting redshift (1)
      real*4        zend        ! Ending redshift (2)
      real*4        zCIV        ! ? C IV 1548 line redshift
      real*4        WCIV        ! (0.1nm) ? Equivalent width of C IV 1548{AA} line (G1)
      real*4        e_WCIV      ! (0.1nm) ? Uncertainty in WCIV
*Note (1): For the C IV search. Defined as (1+zq)*1238.8/1548.195-1.
*Note (2): For the C IV search. Defined as 4000 km/s blueward of the quasar
*          redshift.

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

C  Loading file 'table1.dat'	! QPQ7 Spectra

C  Format for file interpretation

    1 format(A19,1X,A19,1X,F6.4,1X,I3,1X,A20,1X,A9)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,524
        read(1,'(A81)')ar__
        read(ar__,1)b_gQ,f_gQ,zfg,Rphys,Instr,Wave
c    ..............Just test output...........
        write(6,1)b_gQ,f_gQ,zfg,Rphys,Instr,Wave
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! QPQ7 EW Measurements

C  Format for file interpretation

    2 format(
     +  A19,1X,A19,1X,I3,1X,F5.3,1X,I5,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,427
        read(1,'(A81)')ar__1
        read(ar__1,2)
     +  f_gQ_1,b_gQ_1,Rphys_1,zfg_1,delv,W1334,e_W1334,W1548,e_W1548
        if(ar__1(57:62) .EQ. '') W1334 = rNULL__
        if(ar__1(64:68) .EQ. '') e_W1334 = rNULL__
        if(ar__1(70:75) .EQ. '') W1548 = rNULL__
        if(ar__1(77:81) .EQ. '') e_W1548 = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  f_gQ_1,b_gQ_1,Rphys_1,zfg_1,delv,W1334,e_W1334,W1548,e_W1548
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! SDSS C IV Survey

C  Format for file interpretation

    3 format(A19,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,223
        read(1,'(A53)')ar__2
        read(ar__2,3)Quasar,zq,zstart,zend,zCIV,WCIV,e_WCIV
        if(ar__2(39:43) .EQ. '') zCIV = rNULL__
        if(ar__2(45:48) .EQ. '') WCIV = rNULL__
        if(ar__2(50:53) .EQ. '') e_WCIV = rNULL__
c    ..............Just test output...........
        write(6,3)Quasar,zq,zstart,zend,zCIV,WCIV,e_WCIV
c    .......End.of.Just test output...........
      end do
      close(1)

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