FORTRAN Generation
(/./ftp/cats/J/ApJ/679/140)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/679/140 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-Mar-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/679/140      IR measurement of quasar obscuration        (Treister+, 2008)
*================================================================================
*Measuring the fraction of obscured quasars by the infrared luminosity of
*unobscured quasars.
*    Treister E., Krolik J.H., Dullemond C.
*   <Astrophys. J., 679, 140-148 (2008)>
*   =2008ApJ...679..140T
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Observed properties of sources in the SDSS sample

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

      character*6   Sample      ! [SDSS/COSMOS] Name of sample
      character*19  Name        ! Name (SDSS for table1 or COSMOS for table3
*                                 JHHMMSS.ss+DDMMSS.s)
      real*4        z           ! Redshift (spectroscopic)
      real*4        umag        ! (mag) SDSS u band AB magnitude
      real*4        gmag        ! (mag) SDSS g band AB magnitude
      real*4        rmag        ! (mag) SDSS r band AB magnitude
      real*4        imag        ! (mag) SDSS i band AB magnitude
      real*4        zmag        ! (mag) SDSS z band AB magnitude
      character*1   l_F24um     ! Upper limit flag on F24um
      real*4        F24um       ! (fW/m2) Spitzer/MIPS 24 micron band flux (1)
      real*4        FNUV        ! (fW/m2) GALEX NUV band flux (1)
      real*4        E_FNUV      ! (fW/m2) ? Upper 1{sigma} bound on FNUV (1)
      real*4        e_FNUV_1    ! (fW/m2) ? Lower 1{sigma} bound on FNUV (1)
      real*4        FFUV        ! (fW/m2) GALEX FUV band flux (1)
      real*4        E_FFUV      ! (fW/m2) ? Upper 1{sigma} bound on FFUV (1)
      real*4        e_FFUV_1    ! (fW/m2) ? Lower 1{sigma} bound on FFUV (1)
      real*4        Lbol        ! ([10-7W]) Log of the bolometric luminosity
*Note (1): fluxes are expressed in 10^-12^erg/cm^2^/s = 10^-15^W/m^2^

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

C  Declarations for 'table3.dat'	! Observed properties of sources in the COSMOS sample

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

      character*6   Sample_1    ! [SDSS/COSMOS] Name of sample
      character*19  Name_1      ! Name (SDSS for table1 or COSMOS for table3
*                                 JHHMMSS.ss+DDMMSS.s)
      real*4        z_1         ! Redshift (spectroscopic)
      real*4        umag_1      ! (mag) SDSS u band AB magnitude
      real*4        gmag_1      ! (mag) SDSS g band AB magnitude
      real*4        rmag_1      ! (mag) SDSS r band AB magnitude
      real*4        imag_1      ! (mag) SDSS i band AB magnitude
      real*4        zmag_1      ! (mag) SDSS z band AB magnitude
      character*1   l_F24um_1   ! Upper limit flag on F24um
      real*4        F24um_1     ! (fW/m2) Spitzer/MIPS 24 micron band flux (1)
      real*4        FNUV_1      ! (fW/m2) GALEX NUV band flux (1)
      real*4        E_FNUV_2    ! (fW/m2) ? Upper 1{sigma} bound on FNUV (1)
      real*4        e_FNUV_3    ! (fW/m2) ? Lower 1{sigma} bound on FNUV (1)
      real*4        FFUV_1      ! (fW/m2) GALEX FUV band flux (1)
      real*4        E_FFUV_2    ! (fW/m2) ? Upper 1{sigma} bound on FFUV (1)
      real*4        e_FFUV_3    ! (fW/m2) ? Lower 1{sigma} bound on FFUV (1)
      real*4        Lbol_1      ! ([10-7W]) Log of the bolometric luminosity
*Note (1): fluxes are expressed in 10^-12^erg/cm^2^/s = 10^-15^W/m^2^

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

C  Loading file 'table1.dat'	! Observed properties of sources in the SDSS sample

C  Format for file interpretation

    1 format(
     +  A6,1X,A19,1X,F5.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,
     +  A1,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,
     +  F4.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,206
        read(1,'(A115)')ar__
        read(ar__,1)
     +  Sample,Name,z,umag,gmag,rmag,imag,zmag,l_F24um,F24um,FNUV,
     +  E_FNUV,e_FNUV_1,FFUV,E_FFUV,e_FFUV_1,Lbol
        if(ar__(82:86) .EQ. '') E_FNUV = rNULL__
        if(ar__(88:92) .EQ. '') e_FNUV_1 = rNULL__
        if(ar__(100:104) .EQ. '') E_FFUV = rNULL__
        if(ar__(106:110) .EQ. '') e_FFUV_1 = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Sample,Name,z,umag,gmag,rmag,imag,zmag,l_F24um,F24um,FNUV,
     +  E_FNUV,e_FNUV_1,FFUV,E_FFUV,e_FFUV_1,Lbol
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Observed properties of sources in the COSMOS sample

C  Format for file interpretation

    2 format(
     +  A6,1X,A19,1X,F5.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,
     +  A1,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,
     +  F4.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,14
        read(1,'(A115)')ar__1
        read(ar__1,2)
     +  Sample_1,Name_1,z_1,umag_1,gmag_1,rmag_1,imag_1,zmag_1,
     +  l_F24um_1,F24um_1,FNUV_1,E_FNUV_2,e_FNUV_3,FFUV_1,E_FFUV_2,
     +  e_FFUV_3,Lbol_1
        if(ar__1(82:86) .EQ. '') E_FNUV_2 = rNULL__
        if(ar__1(88:92) .EQ. '') e_FNUV_3 = rNULL__
        if(ar__1(100:104) .EQ. '') E_FFUV_2 = rNULL__
        if(ar__1(106:110) .EQ. '') e_FFUV_3 = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Sample_1,Name_1,z_1,umag_1,gmag_1,rmag_1,imag_1,zmag_1,
     +  l_F24um_1,F24um_1,FNUV_1,E_FNUV_2,e_FNUV_3,FFUV_1,E_FFUV_2,
     +  e_FFUV_3,Lbol_1
c    .......End.of.Just test output...........
      end do
      close(1)

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