FORTRAN Generation
(/./ftp/cats/J/ApJ/698/1682)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/698/1682 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/698/1682      Most luminous dusty galaxies                (Weedman+, 2009)
*================================================================================
*Evolution of the most luminous dusty galaxies.
*    Weedman D.W., Houck J.R.
*   <Astrophys. J., 698, 1682-1697 (2009)>
*   =2009ApJ...698.1682W
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Continuum luminosities for obscured AGNs

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg       ! (deg) Right Ascension J2000
      real*8        DEdeg       ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     Seq         ! Running sequence number
      character*16  Name        ! AGN name
      integer*4     RAh         ! (h) Hour of right ascension (J2000)
      integer*4     RAm         ! (min) Minute of right ascension (J2000)
      real*4        RAs         ! (s) Second of right ascension (J2000)
      character*1   DE_         ! Sign of the declination (J2000)
      integer*4     DEd         ! (deg) Degree of declination (J2000)
      integer*4     DEm         ! (arcmin) Arcminute of declination (J2000)
      real*4        DEs         ! (arcsec) Arcsecond of declination (J2000)
      real*4        z           ! Redshift
      character*1   r_z         ! [efg] Flag on z (1)
      real*8        F8um        ! (mJy) Observed flux density in continuum at rest
*                                  frame 8um (2)
      real*4        logL8       ! ([10-7W]) Rest-frame luminosity {nu}L_{nu}(8um) (3)
      real*4        logLir      ! ([10-7W]) ? Infrared luminosity (only for table 2) (4)
      integer*4     Ref         ! Reference number (5)
*Note (1): Flag as follows:
*   e = Optical redshift and classification in Lacy et al. (2007,
*       Cat. J/AJ/133/186)
*   f = Optical redshift and classification in Simpson et al. (2006,
*       Cat. J/MNRAS/372/741, <[SMR2006] VLA JHHMMSS+DDMMm> in Simbad)
*   g = Optical redshift and classification from the SDSS
*Note (2): Observed flux density measured from published spectra in references
*     given, or from our own extractions, as described in Section 2.3.
*     Typical uncertainties are +/-5% for sources with f_{nu}_(8um)>~5mJy
*     and +/-10% for sources with f_{nu}_(8um)~1mJy. Typical uncertainties
*     are +/-5% in table 2. For sources in Schweitzer et al.
*     (2008ApJ...679..101S, reference 17), f_{nu}_(8um) is determined by
*     scaling from published f_{nu}_(6um) using the average spectra in
*     Figure 2 of Schweitzer et al. for sources without PAH (characteristic
*     of the highest luminosity sources), such that
*     f_{nu}_(8um)/f_{nu}_(6um)=1.12.
*Note (3): Rest-frame luminosity determined using peak f_{nu}_(8um) and
*     luminosity distances D_L_ from E.L. Wright,
*     http://www.astro.ucla.edu/wright/CosmoCalc.html, for H_0_=71km/s/Mpc,
*     {Omega}_M_=0.27 and {Omega}_{Lambda}_=0.73.
*     (log[{nu}L_{nu}_(8um)(L_{sun}_)]=log[{nu}L_{nu}_(8um)(erg/s)]-33.59.)
*Note (4): For sources in Schweitzer et al. (2008ApJ...679..101S) (reference 17),
*     L_ir_ is determined as in Sanders & Mirabel (1996ARA&A..34..749S) for
*     sources having measured IRAS flux densities at all IRAS wavelengths;
*     L_ir_=2.14x10^36^D_L_^2^[13.5(f_{nu}_(12um))+5.2(f_{nu}_(25um))
*     +2.58(f_{nu}_(60um))+(f_{nu}(100um))] for flux densities in mJy
*     and luminosities in erg/s (L_{sun}_=3.83x10^33^erg/s).
*Note (5): Reference for IRS spectrum as follows:
*   1 = Farrah et al. (2007ApJ...667..149F);
*   2 = Imanishi et al. (2007ApJS..171...72I);
*   3 = Sargsyan et al. (2008, Cat. J/ApJ/683/114);
*   4 = Shi et al. (2006, Cat. J/ApJ/653/127);
*   5 = Weedman & Houck (2009, Cat. J/ApJ/693/370);
*   6 = new spectra in Figure 2 [sources 73, 111 from archival program 30447 (G.
*       Fazio, P.I.), source 90 from archival program 20629 (L. Yan, P.I.),
*       source 16 from archival program 40539 (G. Helou, P.I), sources 13,20,21,
*       23,70 from our own new observations, program 50031];
*   7 = Brand et al. (2008ApJ...680..119B; <[BWD2008] SST24 JHHMMSS.s+DDMMSS> in
*       Simbad);
*   8 = Farrah et al. (2009ApJ...696.2044F; <SWIRE JHHMMSS.ss+DDMMSS.s> in
*       Simbad);
*   9 = Brand et al. (2008ApJ...673..119B; <[BWD2008] SST24 JHHMMSS.s+DDMMSS> in
*       Simbad);
*  10 = Houck et al. (2005ApJ...622L.105H; <[HSW2005] SST24 JHHMMSS.ss+DDMMSS.s>
*       in Simbad);
*  11 = Weedman et al. (2006ApJ...638..613W;
*       <[WLH2006] SST24 JHHMMSS.ss+DDMMSS.s> in Simbad);
*  12 = Weedman et al. (2006ApJ...653..101W);
*  13 = Polletta et al. (2008ApJ...675..960P);
*  14 = Yan et al. (2007, Cat. J/ApJ/658/778;
*       <[YSF2007] SST24 JHHMMSS.ss+DDMMSS.s> in Simbad); Sajina et
*       al. (2007ApJ...664..713S);
*  15 = Martinez-Sansigre et al. (2008ApJ...674..676M);
*  16 = Hao et al. (2005ApJ...625L..75H);
*  17 = Schweitzer et al. (2008ApJ...679..101S);
*  18 = Markwick-Kemper et al. (2007ApJ...668L.107M);
*  19 = new extractions of sources in the FLS and SWIRE Lockman fields having
*       f_{nu}_(24um)>5mJy and R>20mag which have optical redshifts and
*       classifications cited as type 1 AGN in the NED;
*  20 = new extractions of sources available within Spitzer Legacy Program 40539
*       (G. Helou, P.I.), a flux limited sample with f_{nu}_(24um)>5mJy, which
*       have optical redshifts and classifications as type 1 AGN cited in the NED
*       or as determined from our examination of SDSS spectra, not including 2
*       sources also in reference 19.

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

C  Declarations for 'table2.dat'	! Continuum luminosities for Silicate emission AGNs

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg_1     ! (deg) Right Ascension J2000
      real*8        DEdeg_1     ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     Seq_1       ! Running sequence number
      character*16  Name_1      ! AGN name
      integer*4     RAh_1       ! (h) Hour of right ascension (J2000)
      integer*4     RAm_1       ! (min) Minute of right ascension (J2000)
      real*4        RAs_1       ! (s) Second of right ascension (J2000)
      character*1   DE__1       ! Sign of the declination (J2000)
      integer*4     DEd_1       ! (deg) Degree of declination (J2000)
      integer*4     DEm_1       ! (arcmin) Arcminute of declination (J2000)
      real*4        DEs_1       ! (arcsec) Arcsecond of declination (J2000)
      real*4        z_1         ! Redshift
      character*1   r_z_1       ! [efg] Flag on z (1)
      real*8        F8um_1      ! (mJy) Observed flux density in continuum at rest
*                                  frame 8um (2)
      real*4        logL8_1     ! ([10-7W]) Rest-frame luminosity {nu}L_{nu}(8um) (3)
      real*4        logLir_1    ! ([10-7W]) ? Infrared luminosity (only for table 2) (4)
      integer*4     Ref_1       ! Reference number (5)
*Note (1): Flag as follows:
*   e = Optical redshift and classification in Lacy et al. (2007,
*       Cat. J/AJ/133/186)
*   f = Optical redshift and classification in Simpson et al. (2006,
*       Cat. J/MNRAS/372/741, <[SMR2006] VLA JHHMMSS+DDMMm> in Simbad)
*   g = Optical redshift and classification from the SDSS
*Note (2): Observed flux density measured from published spectra in references
*     given, or from our own extractions, as described in Section 2.3.
*     Typical uncertainties are +/-5% for sources with f_{nu}_(8um)>~5mJy
*     and +/-10% for sources with f_{nu}_(8um)~1mJy. Typical uncertainties
*     are +/-5% in table 2. For sources in Schweitzer et al.
*     (2008ApJ...679..101S, reference 17), f_{nu}_(8um) is determined by
*     scaling from published f_{nu}_(6um) using the average spectra in
*     Figure 2 of Schweitzer et al. for sources without PAH (characteristic
*     of the highest luminosity sources), such that
*     f_{nu}_(8um)/f_{nu}_(6um)=1.12.
*Note (3): Rest-frame luminosity determined using peak f_{nu}_(8um) and
*     luminosity distances D_L_ from E.L. Wright,
*     http://www.astro.ucla.edu/wright/CosmoCalc.html, for H_0_=71km/s/Mpc,
*     {Omega}_M_=0.27 and {Omega}_{Lambda}_=0.73.
*     (log[{nu}L_{nu}_(8um)(L_{sun}_)]=log[{nu}L_{nu}_(8um)(erg/s)]-33.59.)
*Note (4): For sources in Schweitzer et al. (2008ApJ...679..101S) (reference 17),
*     L_ir_ is determined as in Sanders & Mirabel (1996ARA&A..34..749S) for
*     sources having measured IRAS flux densities at all IRAS wavelengths;
*     L_ir_=2.14x10^36^D_L_^2^[13.5(f_{nu}_(12um))+5.2(f_{nu}_(25um))
*     +2.58(f_{nu}_(60um))+(f_{nu}(100um))] for flux densities in mJy
*     and luminosities in erg/s (L_{sun}_=3.83x10^33^erg/s).
*Note (5): Reference for IRS spectrum as follows:
*   1 = Farrah et al. (2007ApJ...667..149F);
*   2 = Imanishi et al. (2007ApJS..171...72I);
*   3 = Sargsyan et al. (2008, Cat. J/ApJ/683/114);
*   4 = Shi et al. (2006, Cat. J/ApJ/653/127);
*   5 = Weedman & Houck (2009, Cat. J/ApJ/693/370);
*   6 = new spectra in Figure 2 [sources 73, 111 from archival program 30447 (G.
*       Fazio, P.I.), source 90 from archival program 20629 (L. Yan, P.I.),
*       source 16 from archival program 40539 (G. Helou, P.I), sources 13,20,21,
*       23,70 from our own new observations, program 50031];
*   7 = Brand et al. (2008ApJ...680..119B; <[BWD2008] SST24 JHHMMSS.s+DDMMSS> in
*       Simbad);
*   8 = Farrah et al. (2009ApJ...696.2044F; <SWIRE JHHMMSS.ss+DDMMSS.s> in
*       Simbad);
*   9 = Brand et al. (2008ApJ...673..119B; <[BWD2008] SST24 JHHMMSS.s+DDMMSS> in
*       Simbad);
*  10 = Houck et al. (2005ApJ...622L.105H; <[HSW2005] SST24 JHHMMSS.ss+DDMMSS.s>
*       in Simbad);
*  11 = Weedman et al. (2006ApJ...638..613W;
*       <[WLH2006] SST24 JHHMMSS.ss+DDMMSS.s> in Simbad);
*  12 = Weedman et al. (2006ApJ...653..101W);
*  13 = Polletta et al. (2008ApJ...675..960P);
*  14 = Yan et al. (2007, Cat. J/ApJ/658/778;
*       <[YSF2007] SST24 JHHMMSS.ss+DDMMSS.s> in Simbad); Sajina et
*       al. (2007ApJ...664..713S);
*  15 = Martinez-Sansigre et al. (2008ApJ...674..676M);
*  16 = Hao et al. (2005ApJ...625L..75H);
*  17 = Schweitzer et al. (2008ApJ...679..101S);
*  18 = Markwick-Kemper et al. (2007ApJ...668L.107M);
*  19 = new extractions of sources in the FLS and SWIRE Lockman fields having
*       f_{nu}_(24um)>5mJy and R>20mag which have optical redshifts and
*       classifications cited as type 1 AGN in the NED;
*  20 = new extractions of sources available within Spitzer Legacy Program 40539
*       (G. Helou, P.I.), a flux limited sample with f_{nu}_(24um)>5mJy, which
*       have optical redshifts and classifications as type 1 AGN cited in the NED
*       or as determined from our examination of SDSS spectra, not including 2
*       sources also in reference 19.

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

C  Loading file 'table1.dat'	! Continuum luminosities for obscured AGNs

C  Format for file interpretation

    1 format(
     +  I3,1X,A16,I2,I2,F5.2,A1,I2,I2,F4.1,1X,F6.4,A1,1X,F7.2,1X,F5.2,
     +  1X,F5.2,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,115
        read(1,'(A69)')ar__
        read(ar__,1)
     +  Seq,Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,z,r_z,F8um,logL8,logLir,
     +  Ref
        if(ar__(62:66) .EQ. '') logLir = rNULL__
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  Seq,Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,z,r_z,F8um,logL8,logLir,
     +  Ref
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Continuum luminosities for Silicate emission AGNs

C  Format for file interpretation

    2 format(
     +  I3,1X,A16,I2,I2,F5.2,A1,I2,I2,F4.1,1X,F6.4,A1,1X,F7.2,1X,F5.2,
     +  1X,F5.2,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,60
        read(1,'(A69)')ar__1
        read(ar__1,2)
     +  Seq_1,Name_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,z_1,
     +  r_z_1,F8um_1,logL8_1,logLir_1,Ref_1
        if(ar__1(62:66) .EQ. '') logLir_1 = rNULL__
        RAdeg_1 = rNULL__
        DEdeg_1 = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
        if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
        if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
        if(DEd_1 .GE. 0) DEdeg_1=DEd_1
        if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
        if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600.
        if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c    ..............Just test output...........
        write(6,2)
     +  Seq_1,Name_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,z_1,
     +  r_z_1,F8um_1,logL8_1,logLir_1,Ref_1
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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