FORTRAN Generation
(/./ftp/cats/J/ApJ/686/127)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/686/127 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/686/127       Starbursts luminosities based on PAH        (Weedman+, 2008)
*================================================================================
*The most luminous starbursts in the Universe.
*    Weedman D.W., Houck J.R.
*   <Astrophys. J., 686, 127-137 (2008)>
*   =2008ApJ...686..127W
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! PAH luminosities for starburst galaxies

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

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

      integer*4     Seq        (nr__) ! Source running number
      character*16  Name       (nr__) ! Source identification (1)
      integer*4     RAh        (nr__) ! (h) Hour of right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) Minute of right ascension (J2000)
      real*4        RAs        (nr__) ! (s) Second of right ascension (J2000)
      character*1   DE_        (nr__) ! Declination sign (J2000)
      integer*4     DEd        (nr__) ! (deg) Degree of declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) Arcminute of declination (J2000)
      real*4        DEs        (nr__) ! (arcsec) Arcsecond of declination (J2000)
      real*4        z          (nr__) ! Spectroscopic redshift (from Spitzer IRS)
      real*8        Fnu        (nr__) ! (mJy) ? Spitzer/IRS flux density at 7.7um (2)
      real*4        logLnu     (nr__) ! ([10-7W]) Rest-frame luminosity {nu}L_{nu}_ at 7.7um (3)
      integer*4     Ref        (nr__) ! Reference (4)
*Note (1): SST24 objects are named <[WH2008] SST24 JHHMMSS.ss+DDMMSS.s> in Simbad
*Note (2): Observed flux density in mJy at peak of 7.7um PAH feature
*     measured from published spectra or from our own extractions. Typical
*     uncertainties are +/-5% for sources with F_{nu}_(7.7{mu}m)>~5mJy and
*     +/-10% for sources with F_{nu}_(7.7{mu}m)~1mJy. Sources without
*     entries have {nu}L_{nu}_(7.7um) determined from other PAH features, as
*     explained in note (2).
*Note (3): Rest-frame luminosity {nu}L_{nu}_(7.7um) in ergs/s determined
*     using peak F_{nu}_(7.7um) and luminosity distances 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.
*   * For ULIRGs in reference 12, {nu}L_{nu}_(7.7um) is determined
*     using the relation {nu}L_{nu}_(7.7{mu}m)=28L(6.2{mu}m+11.3{mu}m);
*   * for ULIRGs in references 13 and 14, {nu}L_{nu}_(7.7um) is determined
*     using the relation {nu}L_{nu}_(7.7{mu}m)=50L(6.2{mu}m).
*   * For starbursts in reference 1, luminosities also include the
*     correction factor FF given in Brandl et al. (2006ApJ...653.1129B) 
*     for flux from the resolved source which is not included in the IRS
*     observing slit.
*Note (4): References (with more details in section 2.1) as follows:
*    1 = Brandl et al. 2006ApJ...653.1129B
*    2 = Houck et al. 2007, Cat. J/ApJ/671/323;
*        <[HWL2007] SST24 JHHMMSS.ss+DDMMSS.s> in Simbad
*    3 = new extraction of Bootes source from archival spectra program 20128 (PI:
*        G. Lagache) or 20113 (PI: H. Dole)
*    4 = new spectral extraction from program 40038 (D. Weedman & J. Houck,
*        2009, cat J/ApJ/693/370)
*    5 = new extraction of FLS source from archival spectra program 20128
*    6 = Brand et al. 2008ApJ...673..119B;
*        <[BWD2008] SST24 JHHMMSS.s+DDMMSS> in Simbad.
*    7 = Weedman et al. 2006ApJ...653..101W
*    8 = Farrah et al. 2008ApJ...677..957F; <SWIRE JHHMMSS.ss+DDMMSS.s> in Simbad
*    9 = new extraction of source in Houck et al. (2005ApJ...622L.105H,
*        <[HSW2005] SST24 JHHMMSS.ss+DDMMSS.s> in Simbad) or Weedman et al.
*        (2006ApJ...638..613W, <[WLH2006] SST24 JHHMMSS.ss+DDMMSS.s>) using v15
*        data products and the 4 pixel extraction technique described in Weedman
*        et al. (2006ApJ...653..101W)
*   10 = Yan et al. 2007ApJ...658..778Y;
*        <[YSF2007] SST24 JHHMMSS.ss+DDMMSS.s> in Simbad
*   11 = Pope et al. 2008ApJ...675.1171P
*   12 = Farrah et al. 2007ApJ...667..149F
*   13 = Imanishi et al. 2007ApJS..171...72I
*   14 = Sargsyan et al. 2008ApJ...683..114S

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

C  Loading file 'table1.dat'	! PAH luminosities for starburst galaxies

C  Format for file interpretation

    1 format(
     +  I3,1X,A16,1X,I2,I2,F5.2,A1,I2,I2,F4.1,1X,F6.4,1X,F7.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,243
        read(1,'(A63)')ar__
        read(ar__,1)
     +  Seq(i__),Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),z(i__),Fnu(i__),logLnu(i__),
     +  Ref(i__)
        if(ar__(48:54) .EQ. '') Fnu(i__) = rNULL__
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  Seq(i__),Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),z(i__),Fnu(i__),logLnu(i__),
     +  Ref(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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