FORTRAN Generation
(/./ftp/cats/J/MNRAS/405/2505)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/405/2505 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-16
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/MNRAS/405/2505    Nuclear activity in ULIRGs               (Nardini+, 2010)
*================================================================================
*The role of nuclear activity as the power source of ultraluminous infrared
*galaxies.
*    Nardini E., Risaliti G., Watabe Y., Salvati M., Sani E.
*   <Mon. Not. R. Astron. Soc., 405, 2505-2520 (2010)>
*   =2010MNRAS.405.2505N
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! General properties and spectral parameters of
                             our local ULIRG sample

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

      character*10  IRAS       (nr__) ! IRAS name (HHMMm+DDMM, B1950)
      real*4        z          (nr__) ! Redshift
      real*4        Lir        (nr__) ! ([Lsun]) IR luminosity (log scale)
      real*4        e_Lir      (nr__) ! ([Lsun]) rms uncertainty on logLir
      real*4        Abol       (nr__) ! (%) ?=- AGN contribution to the bolometric flux
      character*1   l_Abol1    (nr__) ! Limit flag on DAbol (1)
      real*4        Abol1      (nr__) ! (%) 1-{sigma} confidence range in Abol (lower limit)
      real*4        Abol2      (nr__) ! (%) ? 1-{sigma}sigma confidence range for Abol
*                                  (upper limit)
      character*1   l_tau      (nr__) ! Limit flag on tau
      real*4        tau        (nr__) ! ?=- AGN optical depth {tau}
      integer*4     PID        (nr__) ! Spitzer programme number, in pid.dat file
      character*5   Type       (nr__) ! Morphological type (LINER, H II, Sy1 or Sy2)
      character*1   Cl         (nr__) ! [CL-] Optical class (Compact/Loose)
      character*5   Ref        (nr__) ! References for optical and morphological
*                                 type, in refs.dat file
      character*1   Note       (nr__) ! [*] * indicates an individual note (2)
*Note (1): Whenever the confidence range is provided as an upper limit, the
*     AGN detection is not considered as confident, with the exceptions of
*     00482-2720, 09463+8141, 11223-1244, 12359-0725, 16541+5301 and 20087-0308.
*Note (2): Additional notes:
*     In the following cases the best fit has been obtained by allowing the
*     AGN intrinsic slope to assume the value shown in brackets, instead of
*     the template 1.5: 00182-7112(0.43), 00188-0856(0.78), 01572+0009(0.96),
*     07598+6508(0.58), 09320+6134(1.02), 11119+3257(0.47), 12127-1412(1.31),
*     12514+1027(1.00), 14026+4341(1.17), 19254-7245(0.52), 20037-1547(0.79),
*     23498+2423(0.31), 23515-2917(0.42).
*     Comparable minima in the parameter space suggest the presence of a
*     faint AGN in 02411+0354, while 14197+0812, 18531-4616 and 23365+3604
*     can be SB dominated.

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

C  Declarations for 'table3.dat'	! Properties of the 52 high-redshift sources in
                             the control sample

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

      character*26  Name       (nr__1) ! Object name
      character*1   n_Name     (nr__1) ! [a-e] Group of intrinsic slope (1)
      real*4        z_1        (nr__1) ! Redshift
      real*4        DL         (nr__1) ! (Gpc) Luminosity distance
      real*4        Abol_1     (nr__1) ! (%) ?=- AGN contribution to bolometric flux
      character*1   l_Abol1_1  (nr__1) ! Limit flag on Abol
      real*4        Abol1_1    (nr__1) ! (%) 1-{sigma} confidence range for Abol
*                                  (lower limit)
      real*4        Abol2_1    (nr__1) ! (%) ? 1-{sigma} confidence range for Abol
*                                  (upper limit)
      character*1   l_tau_1    (nr__1) ! Limit flag on tau
      real*4        tau_1      (nr__1) ! ?=- AGN optical depth {tau}
      real*4        Fobs       (nr__1) ! (mJy) Observed flux, at IRAS 60um or Spitzer-MIPS 70um
      real*4        e_Fobs     (nr__1) ! (mJy) rms uncertainty on Fobs
      real*4        Lir_1      (nr__1) ! ([Lsun]) IR luminosity [log scale] (2)
      real*4        e_Lir_1    (nr__1) ! ([Lsun]) rms uncertainty on logLir
      character*1   l_Lir2     (nr__1) ! Limit flag on logir2
      real*4        Lir2       (nr__1) ! ([Lsun]) IR luminosity [log scale] (3)
      real*4        e_Lir2     (nr__1) ! ([Lsun]) ? rms uncertainty on logLir
      integer*4     PID_1      (nr__1) ! Spitzer programme number, in pid.dat file
      integer*4     r_Lir2     (nr__1) ! References for logLir2, in refs.dat file
*Note (1): The best fits are obtained by allowing for the values of the AGN
*     intrinsic slope as: a=1.36; b=1.18; c=0.98; d=1.10; e=0.70
*Note (2): IR luminosity (in log of solar units) computed as
*     LIR = 4{pi}(DL)^2^x29.3(f_30um_)^0.93^, as detailed in the text.
*Note (3): tabulated IR luminosity, converted to the WMAP cosmology

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

C  Declarations for 'pid.dat'	! Spitzer programme numbers

      integer*4 nr__2
      parameter (nr__2=26)	! Number of records
      character*79 ar__2  	! Full-size record

      integer*4     PID_2      (nr__2) ! PID number
      character*73  Title      (nr__2) ! Title of the observation

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

C  Declarations for 'refs.dat'	! References

      integer*4 nr__3
      parameter (nr__3=36)	! Number of records
      character*69 ar__3  	! Full-size record

      integer*4     Ref_1      (nr__3) ! Reference number
      character*19  BibCode    (nr__3) ! BibCode
      character*24  Aut        (nr__3) ! Author's name
      character*21  Com        (nr__3) ! Comments

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

C  Loading file 'table1.dat'	! General properties and spectral parameters of
*                             our local ULIRG sample

C  Format for file interpretation

    1 format(
     +  A10,1X,F5.3,1X,F5.2,1X,F4.2,1X,F4.1,1X,A1,F5.2,1X,F5.2,A1,
     +  F4.2,1X,I5,1X,A5,1X,A1,1X,A5,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,164
        read(1,'(A71)')ar__
        read(ar__,1)
     +  IRAS(i__),z(i__),Lir(i__),e_Lir(i__),Abol(i__),l_Abol1(i__),
     +  Abol1(i__),Abol2(i__),l_tau(i__),tau(i__),PID(i__),Type(i__),
     +  Cl(i__),Ref(i__),Note(i__)
        if (idig(ar__(29:32)).EQ.0) Abol(i__) =  rNULL__
        if(ar__(41:45) .EQ. '') Abol2(i__) = rNULL__
        if (idig(ar__(47:50)).EQ.0) tau(i__) =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  IRAS(i__),z(i__),Lir(i__),e_Lir(i__),Abol(i__),l_Abol1(i__),
     +  Abol1(i__),Abol2(i__),l_tau(i__),tau(i__),PID(i__),Type(i__),
     +  Cl(i__),Ref(i__),Note(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Properties of the 52 high-redshift sources in
*                             the control sample

C  Format for file interpretation

    2 format(
     +  A26,A1,1X,F4.2,1X,F5.2,2X,F4.1,1X,A1,F4.1,1X,F4.1,1X,A1,F4.2,
     +  1X,F5.1,1X,F4.1,1X,F5.2,1X,F4.2,1X,A1,F5.2,1X,F4.2,1X,I5,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,52
        read(1,'(A104)')ar__1
        read(ar__1,2)
     +  Name(i__),n_Name(i__),z_1(i__),DL(i__),Abol_1(i__),
     +  l_Abol1_1(i__),Abol1_1(i__),Abol2_1(i__),l_tau_1(i__),
     +  tau_1(i__),Fobs(i__),e_Fobs(i__),Lir_1(i__),e_Lir_1(i__),
     +  l_Lir2(i__),Lir2(i__),e_Lir2(i__),PID_1(i__),r_Lir2(i__)
        if (idig(ar__1(41:44)).EQ.0) Abol_1(i__) =  rNULL__
        if(ar__1(52:55) .EQ. '') Abol2_1(i__) = rNULL__
        if (idig(ar__1(58:61)).EQ.0) tau_1(i__) =  rNULL__
        if(ar__1(92:95) .EQ. '') e_Lir2(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Name(i__),n_Name(i__),z_1(i__),DL(i__),Abol_1(i__),
     +  l_Abol1_1(i__),Abol1_1(i__),Abol2_1(i__),l_tau_1(i__),
     +  tau_1(i__),Fobs(i__),e_Fobs(i__),Lir_1(i__),e_Lir_1(i__),
     +  l_Lir2(i__),Lir2(i__),e_Lir2(i__),PID_1(i__),r_Lir2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'pid.dat'	! Spitzer programme numbers

C  Format for file interpretation

    3 format(I5,1X,A73)

C  Effective file loading

      open(unit=1,status='old',file=
     +'pid.dat')
      write(6,*) '....Loading file: pid.dat'
      do i__=1,26
        read(1,'(A79)')ar__2
        read(ar__2,3)PID_2(i__),Title(i__)
c    ..............Just test output...........
        write(6,3)PID_2(i__),Title(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    4 format(I2,1X,A19,1X,A24,1X,A21)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,36
        read(1,'(A69)')ar__3
        read(ar__3,4)Ref_1(i__),BibCode(i__),Aut(i__),Com(i__)
c    ..............Just test output...........
        write(6,4)Ref_1(i__),BibCode(i__),Aut(i__),Com(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end