FORTRAN Generation
(/./ftp/cats/J/ApJS/168/19)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJS/168/19 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 2026-Jun-08
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/ApJS/168/19     Chandra sources in 5 galaxy clusters      (Martel+, 2007)
*================================================================================
*The host galaxies and environment of Chandra-selected active galactic nuclei in
*the deep ACS GTO cluster fields.
*    Martel A.R., Menanteau F., Tozzi P., Ford H.C., Infante L.
*   <Astrophys. J. Suppl. Ser., 168, 19-57 (2007)>
*   =2007ApJS..168...19M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tables.dat'	! Optical and X-Ray properties of Chandra sources
                              in the five cluster's ACS fields
                              (tables 4-8 of the paper)

      integer*4 nr__
      parameter (nr__=98)	! Number of records
      character*121 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     Code        ! Code for Cluster (1)
      integer*4     XID         ! Chandra ID (2)
      character*1   n_XID       ! Note on XID (3)
      integer*4     RAh         ! (h) Right ascension (J2000)
      integer*4     RAm         ! (min) Right ascension (J2000)
      real*4        RAs         ! (s) Right ascension (J2000)
      character*1   DE_         ! Declination sign (J2000)
      integer*4     DEd         ! (deg) Declination (J2000)
      integer*4     DEm         ! (arcmin) Declination (J2000)
      real*4        DEs         ! (arcsec) Declination (J2000)
      real*4        z           ! ? Spectroscopic redshift unless specified
      character*1   n_z         ! [p] p for BPZ photometric redshift
      real*4        Vmag        ! (mag) ? Isophotal SEXtractor V(F625W) magnitude
*                                     in AB system (4)
      real*4        e_Vmag      ! (mag) ? rms uncertainty on Vmag
      real*4        imag        ! (mag) ? Isophotal SEXtractor i(F775W) magnitude
*                                     in AB system (4)
      real*4        e_imag      ! (mag) ? rms uncertainty on imag
      real*4        Zmag        ! (mag) ? Isophotal SEXtractor Z(F850LP) magnitude
*                                     in AB system (4)
      real*4        e_Zmag      ! (mag) ? rms uncertainty on Zmag
      real*4        HR          ! ? Hardness ratio ((H-S)/(H+S))
      real*4        e_HR        ! ? rms uncertainty on HR
      real*8        FS          ! (aW/m2) Observed Chandra flux in the soft
*                                    (0.5-2keV) band (10^-15^erg/cm^2^/s)
      real*8        FH          ! (aW/m2) Observed Chandra flux in the hard
*                                    (2-10keV) band (10^-15^erg/cm^2^/s)
      real*4        logLXS      ! ([10-7W]) ? Base 10 logarithm of the observed X-ray
*                                     luminosity in the soft band (0.5-2keV)
      real*4        logLXH      ! ([10-7W]) ? Base 10 logarithm of the observed X-ray
*                                     luminosity in the hard band (2-10keV)
      integer*4     Cl          ! [1/3]? Visual classification of the galaxies
*                                     into three general morphological types (5)
      character*6   XCl         ! X-ray class as in Szokoly et al.
*                                    (2004, Cat. <J/ApJS/155/271>
*Note (1): Cluster code as follows:
*      4 = RX J0152-1357   ([MMT2007] ClG J0152-1357 NN)
*      5 = RX J0849+4452   ([MMT2007] ClG J0849+4452 NNN)
*      6 = RDCS J0910+5422 ([MMT2007] RDCS J0910+5422 NN)
*      7 = MS 1054-0321    ([MMT2007] 1E 1054.4-0321 NNN)
*      8 = RDCS J1252-2927 ([MMT2007] RDCS J1252-2927 NNN)
*Note (2): Sources identified as [MMT2007] Cluster NNN in Simbad.
*Note (3): Individual notes as follows:
*      a = No optical counterpart is detected by SExtractor, although some
*          very low-surface brightness material is observed within the
*          error circle. The position of the X-ray peak after registration
*          is listed.
*      b = The X-ray peak is located approximately 0.9" to the southeast of
*          a resolved galaxy with a compact core. We list the properties
*          of this galaxy in the table.
*      c = The X-ray emission coincides with an extended low surface
*          brightness patch. There is a brighter (i775=23.9), compact
*          source ~1.7" to the southwest.
*      d = The X-ray emission is extended and overlaps a faint optical
*          source whose properties we list here.
*      e = Saturated unresolved source
*      f = The optical source appears unresolved but possibly imbedded in
*          a compact, faint nebulosity.
*      g = The optical source appears unresolved but possibly imbedded in
*          a compact, faint nebulosity.
*      h = The X-ray emission consists of two peaks aligned along a
*          north-south axis and separated by ~4". The northern peak
*          coincides with a large spiral galaxy whose properties we list here.
*      i = No optical counterpart is detected in the ACS detection image.
*          The position of the X-ray peak after registration is listed.
*      j = No optical counterpart is detected in the ACS detection image.
*          The peak X-ray position after registration is listed.
*      k = Saturated unresolved source.
*      l = There are two compact optical sources separated by 0.3". We list
*          the properties of the northwest source, which is the brightest
*          of the two in our detection image.
*      m = The X-ray emission is weak and extended and covers two sources,
*          a large, smooth spheroid listed in the table and a smaller
*          spheroid located 1.9" to the southwest.
*      n = The X-ray emission extends over a highly disturbed system that
*          appears to consist of two merging galaxies. We list the
*          properties of the southwest galaxy, the brightest and most
*          extended of the two.
*      o = Because the X-ray emission is extended, there is possible
*          confusion in the optical identification between the compact
*          galaxy listed in the table and a more diffuse and dimmer galaxy
*          0.8" to the northwest.
*      p = The X-ray peak, whose coordinates are listed here after
*          registration, is located between a compact source (i775~24.5)
*          at RA(J2000.0)=12:52:59.61 and DE(J2000.0)=-29:24:52.6 and
*          several diffuse sources.
*Note (4): Magnitudes are corrected for Galactic extinction.
*Note (5): General morphological types as follows:
*      1 = early-type
*      2 = late-type
*      3 = irregular/peculiar

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

C  Loading file 'tables.dat'	! Optical and X-Ray properties of Chandra sources
*                              in the five cluster's ACS fields
*                              (tables 4-8 of the paper)

C  Format for file interpretation

    1 format(
     +  I1,1X,I3,A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,1X,
     +  F6.4,A1,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,
     +  F5.2,1X,F4.2,1X,F8.5,F8.5,1X,F5.2,1X,F5.2,1X,I1,1X,A6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tables.dat')
      write(6,*) '....Loading file: tables.dat'
      do i__=1,98
        read(1,'(A121)')ar__
        read(ar__,1)
     +  Code,XID,n_XID,RAh,RAm,RAs,DE_,DEd,DEm,DEs,z,n_z,Vmag,e_Vmag,
     +  imag,e_imag,Zmag,e_Zmag,HR,e_HR,FS,FH,logLXS,logLXH,Cl,XCl
        if(ar__(33:38) .EQ. '') z = rNULL__
        if(ar__(41:45) .EQ. '') Vmag = rNULL__
        if(ar__(47:50) .EQ. '') e_Vmag = rNULL__
        if(ar__(52:56) .EQ. '') imag = rNULL__
        if(ar__(58:61) .EQ. '') e_imag = rNULL__
        if(ar__(63:67) .EQ. '') Zmag = rNULL__
        if(ar__(69:72) .EQ. '') e_Zmag = rNULL__
        if(ar__(74:78) .EQ. '') HR = rNULL__
        if(ar__(80:83) .EQ. '') e_HR = rNULL__
        if(ar__(102:106) .EQ. '') logLXS = rNULL__
        if(ar__(108:112) .EQ. '') logLXH = rNULL__
        if(ar__(114:114) .EQ. '') Cl = iNULL__
        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)
     +  Code,XID,n_XID,RAh,RAm,RAs,DE_,DEd,DEm,DEs,z,n_z,Vmag,e_Vmag,
     +  imag,e_imag,Zmag,e_Zmag,HR,e_HR,FS,FH,logLXS,logLXH,Cl,XCl
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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