FORTRAN Generation
(/./ftp/cats/J/AJ/133/2222)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/133/2222 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-20
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/133/2222     Clustering of high-redshift QSOs from SDSS       (Shen+, 2007)
*================================================================================
*Clustering of high-redshift (z>=2.9) quasars from the Sloan Digital Sky Survey.
*    Shen Y., Strauss M.A., Oguri M., Hennawi J.F., Fan X., Richards G.T.,
*    Hall P.B., Gunn J.E., Schneider D.P., Szalay A.S., Thakar A.R.,
*    Vanden Berk D.E., Anderson S.F., Bahcall N.A., Connolly A.J., Knapp G.R.
*   <Astron. J., 133, 2222-2241 (2007)>
*   =2007AJ....133.2222S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! High Redshift Quasar Sample; with duplicate
                              objects removed and a Redshift cut of z>=2.9

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     Plate      (nr__) ! Plate number
      integer*4     Fiber      (nr__) ! Fiber identification number
      integer*4     MJD        (nr__) ! Modified Julian Date
      real*8        RAdeg      (nr__) ! (deg) Right Ascension in decimal degrees (J2000) (1)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000) (1)
      real*4        z          (nr__) ! Redshift (2)
      real*4        e_z        (nr__) ! Error in z
      real*4        imag       (nr__) ! (mag) Dereddened i band PSF (asinh) magnitude (3)
      integer*4     Sfl        (nr__) ! [0/1] 1 indicates that the object is in
*                                        the clustering subsample (4)
      integer*4     Gfl        (nr__) ! [0/1] 1 indicates that the object is in
*                                        the good imaging field
*Note (1): Objects identified as [SSO2007] DDD.dddddd+DD.dddddd in Simbad.
*Note (2): Re-measured using line fitting procedures.
*Note (3): Corrected for Galactic extinction (Schlegel et al.,
*     1998ApJ...500..525S); they use the ubercalibration described by
*     Padmanabhan et al. (2007MNRAS.378..852P), which differs slightly
*     from  that used in the official DR5 quasar catalog (Schneider et
*     al., 2007AJ....134..102S).
*Note (4): The subsample clustering analysis is 1) Selected from the Main
*     SDSS survey with main target selection criteria 2) With target version
*     v3_1_0 or later.

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

C  Loading file 'table1.dat'	! High Redshift Quasar Sample; with duplicate
*                              objects removed and a Redshift cut of z>=2.9

C  Format for file interpretation

    1 format(
     +  I4,1X,I3,1X,I5,1X,F10.6,1X,F10.6,1X,F5.3,1X,F5.3,1X,F5.2,1X,
     +  I1,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,5884
        read(1,'(A58)')ar__
        read(ar__,1)
     +  Plate(i__),Fiber(i__),MJD(i__),RAdeg(i__),DEdeg(i__),z(i__),
     +  e_z(i__),imag(i__),Sfl(i__),Gfl(i__)
c    ..............Just test output...........
        write(6,1)
     +  Plate(i__),Fiber(i__),MJD(i__),RAdeg(i__),DEdeg(i__),z(i__),
     +  e_z(i__),imag(i__),Sfl(i__),Gfl(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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