FORTRAN Generation
(/./ftp/cats/J/ApJ/644/829)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/644/829 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-18
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/644/829   Chandra normal galaxies at intermediate redshift    (Kim+, 2006)
*================================================================================
*Chandra Multiwavelength Project: normal galaxies at intermediate redshift.
*    Kim D.-W., Barkhouse W.A., Romero-Colmenero E., Green P.J., Kim M.,
*    Mossman A., Schlegel E., Silverman J.D., Aldcroft T., Anderson C.,
*    Ivezic Z., Kashyap V., Tananbaum H., Wilkes B.J.
*   <Astrophys. J., 644, 829-842 (2006)>
*   =2006ApJ...644..829K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Normal Galaxy Sample

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

      character*16  CXOMP       ! Name (JHHMMSS.s-DDMMSS)
      character*4   MType       ! Galaxy type (1)
      real*4        z           ! Redshift
      real*4        rmag        ! (mag) r magnitude
      real*4        logfX       ! ([mW/m2]) X-ray flux
      real*4        logfX_fo    ! X-ray-to-optical flux ratio
      real*4        logLX       ! ([10-7W]) X-ray luminosity
      real*4        HR          ! Hardness ratio (G1)
      real*4        HRl         ! Hardness ratio 1{sigma} lower limit interval
      real*4        HRu         ! Hardness ratio 1{sigma} upper limit interval
*Note (1): Galaxy type as follows:
*    ALG = absorption-line galaxy
*   NELG = narrow emission lines galaxy

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

C  Declarations for 'table456.dat'	! Obscured Type 2 AGNs, XBONGs (X-ray-bright, 
                              optically normal galaxies)  and E+A Galaxies

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

      integer*4     MType_1     ! [4/6] Type of galaxy (1)
      character*16  CXOMP_1     ! Name (JHHMMSS.s-DDMMSS)
      real*4        Sct         ! (ct) ?=- Soft (0.5-2.0keV) band net count
      real*4        Hct         ! (ct) Hard (2-0.8.0keV) band net count
      real*4        rmag_1      ! (mag) r magnitude
      real*4        z_1         ! Redshift
      real*4        logfX_fo_1  ! X-ray-to-optical flux ratio
      real*4        logLX_1     ! ([10-7W]) X-ray luminosity
      real*4        HR_1        ! Hardness ratio (G1)
      real*4        HRl_1       ! Hardness ratio 1{sigma} lower limit interval
      real*4        HRu_1       ! Hardness ratio 1{sigma} upper limit interval
      character*1   n_logfX_fo  ! [ab] Note about type 4 galaxies (2)
*Note (1): Type of galaxies as follows:
*      4 = Obscured Type 2 AGNs (table4)
*      5 = Obscured X-ray-bright, optically normal galaxies (XBONG) (table5)
*      6 = E+A Galaxies (table6)
*Note (2): Note for type 4 galaxies as follows:
*      a = fX/fo>0.1
*      b = fX/fo=0.01-0.1

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

C  Loading file 'table2.dat'	! Normal Galaxy Sample

C  Format for file interpretation

    1 format(
     +  6X,A16,1X,A4,1X,F5.3,1X,F5.2,1X,F6.2,1X,F5.2,1X,F5.2,1X,F5.2,
     +  1X,F5.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,36
        read(1,'(A76)')ar__
        read(ar__,1)
     +  CXOMP,MType,z,rmag,logfX,logfX_fo,logLX,HR,HRl,HRu
c    ..............Just test output...........
        write(6,1)
     +  CXOMP,MType,z,rmag,logfX,logfX_fo,logLX,HR,HRl,HRu
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table456.dat'	! Obscured Type 2 AGNs, XBONGs (X-ray-bright, 
*                              optically normal galaxies)  and E+A Galaxies

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'table456.dat')
      write(6,*) '....Loading file: table456.dat'
      do i__=1,20
        read(1,'(A81)')ar__1
        read(ar__1,2)
     +  MType_1,CXOMP_1,Sct,Hct,rmag_1,z_1,logfX_fo_1,logLX_1,HR_1,
     +  HRl_1,HRu_1,n_logfX_fo
        if (idig(ar__1(26:31)).EQ.0) Sct =  rNULL__
c    ..............Just test output...........
        write(6,2)
     +  MType_1,CXOMP_1,Sct,Hct,rmag_1,z_1,logfX_fo_1,logLX_1,HR_1,
     +  HRl_1,HRu_1,n_logfX_fo
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