FORTRAN Generation
(/./ftp/cats/J/ApJ/611/821)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/611/821 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-Mar-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/611/821            A2125 in X-ray                           (Wang+, 2004)
*================================================================================
*X-raying A2125: a large-scale hierarchical complex of galaxies and hot gas.
*    Wang Q.D., Owen F., Ledlow M.
*   <Astrophys. J., 611, 821-834 (2004)>
*   =2004ApJ...611..821W
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Chandra Source List

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

      integer*4     v_WOL2004_ (nr__) ! Sequential running number
      character*19  CXOU       (nr__) ! CXOU designation (JHHMMSS.ss+DDMMSS.s)
      real*4        e_pos      (nr__) ! (arcsec) Position uncertainty (1{sigma})
      real*4        logP       (nr__) ! False detection probability (1)
      real*4        CR         (nr__) ! (ct/ks) On-axis (exposure-corrected) source count
*                                      rate in the 0.5-8keV band
      real*4        e_CR       (nr__) ! (ct/ks) Uncertainty in CR
      real*4        HR         (nr__) ! ? Hardness ratio, HR=(H-S)/(H+S) (2)
      real*4        e_HR       (nr__) ! ? Uncertainty in HR
      real*4        HR1        (nr__) ! ? Hardness ratio 1, HR1=(S2-S1)/S (2)
      real*4        e_HR1      (nr__) ! ? Uncertainty in HR1
      real*4        HR2        (nr__) ! ? Hardness ratio 2, HR2=(H2-H1)/H (2)
      real*4        e_HR2      (nr__) ! ? Uncertainty in HR2
      character*10  Note       (nr__) ! Band of detection and correspondance (3)
*Note (1): The false detection probability P that the detected number
*    of counts may result from the Poisson fluctuation of the local
*    background within the detection aperture [log(P) smaller than 
*    -20.0 is set to -20.0].
*Note (2): The hardness ratios defined as HR=(H-S)/(H+S), HR1=(S2-S1)/S, and
*     HR2=(H2-H1)/H, where the net source count rates are:
*      S1 in the 0.5-1keV band,
*      S2 in the 1-2keV band,
*      H1 in the 2-4keV, and
*      H2 in the 4-8keV band,
*      and S=S1+S2 and H=H1+H2.
*    The hardness ratios are calculated only for sources with individual
*    signal-to-noise ratios greater than 4 in the broad band (B=S+H), and
*    only the values with uncertainties less than 0.2 are included.
*Note (3): The labels "B," "S," or "H" mark the band in which a source is
*    detected (broad-band B=S=H, Soft or Hard); the detection with the most
*    accurate position, as adopted in CXOU, is marked first. The label "r"
*    and "o" denote the identification as the A2125 complex member galaxies
*    in radio and optical.

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

C  Loading file 'table1.dat'	! Chandra Source List

C  Format for file interpretation

    1 format(
     +  I2,2X,A19,2X,F3.1,2X,F5.1,2X,F5.2,2X,F4.2,2X,F5.2,2X,F4.2,1X,
     +  F5.2,2X,F4.2,2X,F5.2,2X,F4.2,2X,A10)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,99
        read(1,'(A98)')ar__
        read(ar__,1)
     +  v_WOL2004_(i__),CXOU(i__),e_pos(i__),logP(i__),CR(i__),
     +  e_CR(i__),HR(i__),e_HR(i__),HR1(i__),e_HR1(i__),HR2(i__),
     +  e_HR2(i__),Note(i__)
        if(ar__(51:55) .EQ. '') HR(i__) = rNULL__
        if(ar__(58:61) .EQ. '') e_HR(i__) = rNULL__
        if(ar__(63:67) .EQ. '') HR1(i__) = rNULL__
        if(ar__(70:73) .EQ. '') e_HR1(i__) = rNULL__
        if(ar__(76:80) .EQ. '') HR2(i__) = rNULL__
        if(ar__(83:86) .EQ. '') e_HR2(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  v_WOL2004_(i__),CXOU(i__),e_pos(i__),logP(i__),CR(i__),
     +  e_CR(i__),HR(i__),e_HR(i__),HR1(i__),e_HR1(i__),HR2(i__),
     +  e_HR2(i__),Note(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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