FORTRAN Generation
(/./ftp/cats/J/ApJ/690/1181)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/690/1181 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-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/690/1181            UV-bright quasars                     (Syphers+, 2009)
*================================================================================
*A high yield of new sightlines for the study of intergalactic helium:
*Far-UV-Bright quasars from the SDSS, GALEX, and HST.
*    Syphers D., Anderson S.F., Zheng W., Haggard D., Meiksin A., Chiu K.,
*    Hogan C., Schneider D.P., York D.G.
*   <Astrophys. J., 690, 1181-1192 (2009)>
*   =2009ApJ...690.1181S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Catalog of candidate Far-UV-Bright SDSS/GALEX
                             quasars

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

C  J2000 position composed of: RAdeg DEdeg
      character*19  SDSS       (nr__) ! SDSS DR6 name (JHHMMSS.ss+DDMMSS.s)
      real*8        RAdeg      (nr__) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000)
      real*4        z          (nr__) ! SDSS pipeline redshift (photometric)
      real*4        zmag       (nr__) ! (mag) SDSS z-band magnitude
      real*4        NUV        (nr__) ! (10-19W/m2/nm) ? GALEX NUV flux (177-300nm)
      real*4        FUV        (nr__) ! (10-19W/m2/nm) ? GALEX FUV flux (120-177nm)
      integer*4     Insp       (nr__) ! [0/8] Inspection flag (1)
      integer*4     Obs        (nr__) ! [0/2] Prior observation flag (G2)
*Note (1): 4-bit integer flag. These individual flags are additive for a given
*          object (e.g., 6 denotes a BAL with an LLS or DLA). Flags as follows:
*    1 = very near neighbor in the SDSS image
*    2 = probable LLS or DLA in the SDSS spectrum
*    3 = very near neighbor in the SDSS image and probable LLS or DLA 
*        in the SDSS spectrum
*    4 = BAL (Broad Absorption Line)
*    5 = BAL with very near neighbor in the SDSS image 
*    6 = BAL with probable LLS or DLA in the SDSS spectrum
*    8 = possible BAL

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

C  Declarations for 'table2.dat'	! Catalog of candidate Far-UV-Bright (non-SDSS)
                             VCV/GALEX quasars

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

C  J2000 position composed of: RAdeg DEdeg
      character*16  Name       (nr__1) ! Veron-Cetty & Veron (VCV) name
*                                      (Cat. <VII/258>)
      real*8        RAdeg_1    (nr__1) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg_1    (nr__1) ! (deg) Declination in decimal degrees (J2000)
      real*4        z_1        (nr__1) ! VCV redshift (spectroscopic)
      character*1   f_Vmag     (nr__1) ! Flag on Vmag (1)
      real*4        Vmag       (nr__1) ! (mag) VCV V-band magnitude
      real*4        NUV_1      (nr__1) ! (10-19W/m2/nm) ? GALEX NUV flux (177-300nm)
      real*4        FUV_1      (nr__1) ! (10-19W/m2/nm) ? GALEX FUV flux (120-177nm)
      integer*4     Obs_1      (nr__1) ! [0/2] Prior observation flag (G2)
*Note (1): V magnitude unless otherwise marked as follows:
*    * = photographic
*    B = blue
*    R = red
*    I = infrared
*    J = infrared
*    K = infrared
*    O = photographic O-plate
*    J = photographic J-plate

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

C  Loading file 'table1.dat'	! Catalog of candidate Far-UV-Bright SDSS/GALEX
*                             quasars

C  Format for file interpretation

    1 format(
     +  4X,A19,1X,F10.6,1X,F10.6,1X,F4.2,1X,F5.2,1X,F6.3,1X,F6.3,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,200
        read(1,'(A74)')ar__
        read(ar__,1)
     +  SDSS(i__),RAdeg(i__),DEdeg(i__),z(i__),zmag(i__),NUV(i__),
     +  FUV(i__),Insp(i__),Obs(i__)
        if(ar__(58:63) .EQ. '') NUV(i__) = rNULL__
        if(ar__(65:70) .EQ. '') FUV(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  SDSS(i__),RAdeg(i__),DEdeg(i__),z(i__),zmag(i__),NUV(i__),
     +  FUV(i__),Insp(i__),Obs(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Catalog of candidate Far-UV-Bright (non-SDSS)
*                             VCV/GALEX quasars

C  Format for file interpretation

    2 format(
     +  A16,1X,F8.4,1X,F8.4,1X,F5.3,1X,A1,F5.2,1X,F5.2,1X,F6.2,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,112
        read(1,'(A62)')ar__1
        read(ar__1,2)
     +  Name(i__),RAdeg_1(i__),DEdeg_1(i__),z_1(i__),f_Vmag(i__),
     +  Vmag(i__),NUV_1(i__),FUV_1(i__),Obs_1(i__)
        if(ar__1(49:53) .EQ. '') NUV_1(i__) = rNULL__
        if(ar__1(55:60) .EQ. '') FUV_1(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Name(i__),RAdeg_1(i__),DEdeg_1(i__),z_1(i__),f_Vmag(i__),
     +  Vmag(i__),NUV_1(i__),FUV_1(i__),Obs_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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