FORTRAN Generation
(/./ftp/cats/J/ApJ/696/924)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/696/924 into FORTRAN code for loading all data files into arrays.

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/696/924      UV and X-Ray radio-quiet QSOs              (Gibson+, 2009)
*================================================================================
*X-ray insights into the physics of mini-BAL quasar outflows.
*    Gibson R.R., Brandt W.N., Gallagher S.C., Schneider D.P.
*   <Astrophys. J., 696, 924-940 (2009)>
*   =2009ApJ...696..924G
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! UV and X-Ray radio-quiet source properties

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

      character*19  SDSS       (nr__) ! SDSS-DR5 name (JHHMMSS.ss+DDMMSS.s)
      real*4        z          (nr__) ! SDSS-DR5 redshift
      character*10  ObsID      (nr__) ! Chandra (four-digit) or XMM (ten-digit)
*                                   observation number
      real*4        ExpT       (nr__) ! (ks) Exposure time
      real*4        AI         (nr__) ! (km/s) Absorption index for CIV{lambda}1549
      real*4        BI         (nr__) ! (km/s) Extended balnicity index, BI_0_, for CIV1549
      integer*4     V_min      (nr__) ! (km/s) ? Outflow velocity corresponding to the
*                                     longest  CIV wavelength (1)
      integer*4     V_max      (nr__) ! (km/s) ? Outflow velocity corresponding to the
*                                   shortest CIV wavelength (1)
      real*4        logLuv     (nr__) ! ([10-7W/Hz]) Log monochromatic luminosity at 2500{AA}
      real*4        SN1700     (nr__) ! Signal to noise ratio (2)
      character*1   l_logLx    (nr__) ! Limit flag on logLx
      real*4        logLx      (nr__) ! ([10-7W/Hz]) Log monochromatic luminosity at 2keV
      real*4        e_logLx    (nr__) ! ([10-7W/Hz]) ? logLx uncertainty (3)
      real*4        HR         (nr__) ! ? Hardness ratio (4)
      real*4        e_HR       (nr__) ! ? Error on HR computed formally
      real*4        Gamma      (nr__) ! ? Power-law photon index {Gamma}
      real*4        e_Gamma    (nr__) ! ? Gamma uncertainty
      character*1   l_Aox      (nr__) ! Limit flag on Aox
      real*4        Aox        (nr__) ! Optical-to-X-ray spectral index
      real*4        e_Aox      (nr__) ! ? Aox uncertainty
      character*1   l_DAox     (nr__) ! Limit flag on DAox
      real*4        DAox       (nr__) ! Difference between measured and predicted
*                                   {alpha}_ox_
      real*4        e_DAox     (nr__) ! ? DAox uncertainty
*Note (1): We define {nu}_max_ as the outflow velocity corresponding to the
*     shortest wavelength which is identified as part of a CIV mini-BAL or
*     BAL trough. Similarly, {nu}_min_ is the outflow velocity associated
*     with the longest wavelength in a trough. See section 3.3 for further
*     details.
*Note (2): SN_1700_ is defined as the median of the flux divided by the
*     noise (as reported by the SDSS pipeline) for all spectral bins in 
*     the 1650-1700{AA} region.
*Note (3): Errors are estimated using the method in Section 2.2
*Note (4): The hardness ratio, HR=(H-S)/(H+S) is calculated from H, the
*     number of X-ray counts with observed-frame energies of 2-8keV, and S,
*     the number of counts with observed-frame energies in the 0.5-2keV
*     range. See section 3.2 for further details.

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

C  Loading file 'table2.dat'	! UV and X-Ray radio-quiet source properties

C  Format for file interpretation

    1 format(
     +  A19,1X,F5.3,1X,A10,1X,F5.1,1X,F6.1,1X,F6.1,1X,I6,1X,I6,1X,
     +  F6.3,1X,F4.1,1X,A1,F6.3,1X,F5.3,1X,F5.2,1X,F4.2,1X,F5.2,1X,
     +  F4.2,1X,A1,F6.3,1X,F5.3,1X,A1,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,256
        read(1,'(A146)')ar__
        read(ar__,1)
     +  SDSS(i__),z(i__),ObsID(i__),ExpT(i__),AI(i__),BI(i__),
     +  V_min(i__),V_max(i__),logLuv(i__),SN1700(i__),l_logLx(i__),
     +  logLx(i__),e_logLx(i__),HR(i__),e_HR(i__),Gamma(i__),
     +  e_Gamma(i__),l_Aox(i__),Aox(i__),e_Aox(i__),l_DAox(i__),
     +  DAox(i__),e_DAox(i__)
        if(ar__(58:63) .EQ. '') V_min(i__) = iNULL__
        if(ar__(65:70) .EQ. '') V_max(i__) = iNULL__
        if(ar__(92:96) .EQ. '') e_logLx(i__) = rNULL__
        if(ar__(98:102) .EQ. '') HR(i__) = rNULL__
        if(ar__(104:107) .EQ. '') e_HR(i__) = rNULL__
        if(ar__(109:113) .EQ. '') Gamma(i__) = rNULL__
        if(ar__(115:118) .EQ. '') e_Gamma(i__) = rNULL__
        if(ar__(128:132) .EQ. '') e_Aox(i__) = rNULL__
        if(ar__(142:146) .EQ. '') e_DAox(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  SDSS(i__),z(i__),ObsID(i__),ExpT(i__),AI(i__),BI(i__),
     +  V_min(i__),V_max(i__),logLuv(i__),SN1700(i__),l_logLx(i__),
     +  logLx(i__),e_logLx(i__),HR(i__),e_HR(i__),Gamma(i__),
     +  e_Gamma(i__),l_Aox(i__),Aox(i__),e_Aox(i__),l_DAox(i__),
     +  DAox(i__),e_DAox(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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