FORTRAN Generation
(/./ftp/cats/J/AJ/140/1987)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/140/1987 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-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/140/1987       SDSS-GALEX QSO catalog                   (Hutchings+, 2010)
*================================================================================
*A catalog of 19,100 quasi-stellar object candidates with redshift 0.5-1.5.
*    Hutchings J.B., Bianchi L.
*   <Astron. J., 140, 1987-1994 (2010)>
*   =2010AJ....140.1987H
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Catalog of 19812 QSO candidates

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        RAdeg       ! (deg) SDSS Right Ascension in decimal degrees (J2000)
      real*8        DEdeg       ! (deg) SDSS Declination in decimal degrees (J2000)
      real*4        FUV         ! (mag) GALEX FUV band magnitude
      real*4        e_FUV       ! (mag) Uncertainty in FUV
      real*4        NUV         ! (mag) GALEX NUV band magnitude
      real*4        e_NUV       ! (mag) Uncertainty in NUV
      real*4        umag        ! (mag) SDSS u band magnitude
      real*4        e_umag      ! (mag) Uncertainty in umag
      real*4        gmag        ! (mag) SDSS g band magnitude
      real*4        e_gmag      ! (mag) Uncertainty in gmag
      real*4        rmag        ! (mag) SDSS r band magnitude
      real*4        e_rmag      ! (mag) Uncertainty in rmag
      real*4        imag        ! (mag) SDSS i band magnitude
      real*4        e_imag      ! (mag) Uncertainty in imag
      real*4        zmag        ! (mag) SDSS z band magnitude
      real*4        e_zmag      ! (mag) Uncertainty in zmag
      real*4        E_B_V       ! (mag) Foreground extinction value (1)
*Note (1): Estimated from the Schlegel et al. (1998ApJ...500..525S) maps.

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

C  Loading file 'table2.dat'	! Catalog of 19812 QSO candidates

C  Format for file interpretation

    1 format(
     +  F11.7,1X,F11.7,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,
     +  F5.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,
     +  1X,F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,19812
        read(1,'(A107)')ar__
        read(ar__,1)
     +  RAdeg,DEdeg,FUV,e_FUV,NUV,e_NUV,umag,e_umag,gmag,e_gmag,rmag,
     +  e_rmag,imag,e_imag,zmag,e_zmag,E_B_V
c    ..............Just test output...........
        write(6,1)
     +  RAdeg,DEdeg,FUV,e_FUV,NUV,e_NUV,umag,e_umag,gmag,e_gmag,rmag,
     +  e_rmag,imag,e_imag,zmag,e_zmag,E_B_V
c    .......End.of.Just test output...........
      end do
      close(1)

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