FORTRAN Generation
(/./ftp/cats/J/ApJ/829/33)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/829/33 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-19
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/829/33      Luminous of high-z QSOs with SDSS and WISE. II   (Yang+, 2016)
*================================================================================
*A Survey of Luminous High-redshift Quasars with SDSS and WISE. II. The Bright
*End of the Quasar Luminosity Function at z ~= 5.
*    Yang J., Wang F., Wu X.-B., Fan X., McGreer I.D., Bian F., Yi W., Yang Q.,
*    Ai Y., Dong X., Zuo W., Green R., Jiang L., Wang S., Wang R., Yue M.
*    <Astrophys. J., 829, 33 (2016)>
*    =2016ApJ...829...33Y
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! z~5 quasar sample used for QLF measurement

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

      character*20  Name        ! Source identifier (JHHMMSS.ss+DDMMSS.ss)
      character*1   f_Name      ! Flag on Name (1)
      real*4        rmag        ! (mag) [19.48/22.35] SDSS r magnitude (2)
      real*4        e_rmag      ! (mag) [0.02/0.15] Error in rmag (2)
      real*4        imag        ! (mag) [17.96/20.15] SDSS i magnitude (2)
      real*4        e_imag      ! (mag) [0.01/0.07] Error in imag (2)
      real*4        zmag        ! (mag) [17.47/19.49] SDSS z magnitude (2)
      real*4        e_zmag      ! (mag) [0.02/0.1] Error in zmag (2)
      real*4        W1mag       ! (mag) [14.31/16.89] W1 magnitude (3)
      real*4        e_W1mag     ! (mag) [0.03/0.28] Error in W1mag (3)
      real*4        W2mag       ! (mag) [13.46/16.11] W1 magnitude (3)
      real*4        e_W2mag     ! (mag) [0.03/0.18] Error in W2mag (3)
      real*4        Redshift    ! [4.7/5.37] Redshift
      real*4        M1450       ! (mag) [-28.99/-26.8] Absolute 1450{AA} AB magnitude
      character*13  Notes       ! Quasar origin (4)
*Note (1): Flag on Name, defined as follows:
*  b = This quasar discovered by McGreer et al. (2009AJ....138.1925M) using the
*       radio-selection method was also observed by us and we use the new spectra
*       for the M_1450_ calculation.
*  c = This quasar discovered by Schneider et al. (1991AJ....102..837S) was also
*       observed by us and we use the new spectra for the M_1450_ calculation.
*Note (2): Photometric data from the SDSS are in the SDSS photometric system
*           (Lupton et al. 1999AJ....118.1406L), which is almost identical to
*           the AB system at bright magnitudes.
*Note (3): Photometric data from ALLWISE are in the Vega system.
*Note (4): The quasar origin is defined as follows:
*              DR7 = Quasars from the SDSS DR7
*             DR12 = Quasars from the SDSS DR12
*           PaperI = Quasars identified by Wang et al. 2016ApJ...819...24W,
*                     Cat. J/ApJ/819/24
*    Schneider1991 = Schneider et al. 1991AJ....102..837S
*      McGreer2009 = McGreer et al. 2009AJ....138.1925M

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

C  Loading file 'table1.dat'	! z~5 quasar sample used for QLF measurement

C  Format for file interpretation

    1 format(
     +  A20,A1,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,
     +  F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F4.2,1X,F6.2,1X,A13)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,99
        read(1,'(A102)')ar__
        read(ar__,1)
     +  Name,f_Name,rmag,e_rmag,imag,e_imag,zmag,e_zmag,W1mag,e_W1mag,
     +  W2mag,e_W2mag,Redshift,M1450,Notes
c    ..............Just test output...........
        write(6,1)
     +  Name,f_Name,rmag,e_rmag,imag,e_imag,zmag,e_zmag,W1mag,e_W1mag,
     +  W2mag,e_W2mag,Redshift,M1450,Notes
c    .......End.of.Just test output...........
      end do
      close(1)

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