FORTRAN Generation
(/./ftp/cats/J/ApJ/598/969)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/598/969 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-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/598/969       Chandra X-ray sources in NGC 3556        (Wang+, 2003)
*================================================================================
*Chandra observation of the edge-on galaxy NGC 3556 (M108):
*violent galactic disk-halo interaction revealed.
*    Wang Q.D., Chaves T., Irwin J.A.
*   <Astrophys. J., 598, 969-981 (2003)>
*   =2003ApJ...598..969W
C=============================================================================

C  Internal variables

      integer*4 i__

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

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

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

      integer*4     v_WCI2003_ (nr__) ! Sequential number of the source
      character*19  CXOU       (nr__) ! CXOU Name (JHHMMSS.SS+DDMMSS.s, J2000)
      real*4        ePos       (nr__) ! (arcsec) Position uncertainty
      real*4        logP       (nr__) ! False detection probability (1)
      real*4        CR         (nr__) ! (ct/ks) On-axis (exposure-corrected) source count rate
*                                   in the 0.3-7keV band.
      real*4        e_CR       (nr__) ! (ct/ks) rms uncertainty on CR
      real*4        HR         (nr__) ! ? Hardness ratio, HR=(H-S)/(H+S) (2)
      real*4        e_HR       (nr__) ! ? rms uncertainty on HR
      real*4        HR1        (nr__) ! ? Hardness ratio 1, HR1=(S2-S1)/S (2)
      real*4        e_HR1      (nr__) ! ? rms uncertainty on HR1
      real*4        HR2        (nr__) ! ? Hardness ratio 2, HR2=(H2-H1)/H (2)
      real*4        e_HR2      (nr__) ! ? rms uncertainty on HR2
      character*1   Band       (nr__) ! [BSH] Band in which a source is detected with
*                                        the most accurate position (2)
*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 (logP<-20.0 is set to -20.0).
*Note (2): Hardness ratios are defined by:
*     S1 = net source count rates in the 0.3-0.7keV band
*     S2 = net source count rates in the 0.7-1.5keV band
*     H1 = net source count rates in the 1.5-3keV band
*     H2 = net source count rates in the 3-7keV band
*      S = S1+S2, H = H1+H2, B = S+H
*    The hardness ratios are calculated only for sources with individual
*    S/Ns greater than 4 in the broad band (B=S+H), and only the values
*    with uncertainties less than 0.2 are included

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

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

C  Format for file interpretation

    1 format(
     +  I2,1X,A19,1X,F3.1,1X,F5.1,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,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,83
        read(1,'(A86)')ar__
        read(ar__,1)
     +  v_WCI2003_(i__),CXOU(i__),ePos(i__),logP(i__),CR(i__),
     +  e_CR(i__),HR(i__),e_HR(i__),HR1(i__),e_HR1(i__),HR2(i__),
     +  e_HR2(i__),Band(i__)
        if(ar__(45:49) .EQ. '') HR(i__) = rNULL__
        if(ar__(51:54) .EQ. '') e_HR(i__) = rNULL__
        if(ar__(56:60) .EQ. '') HR1(i__) = rNULL__
        if(ar__(62:65) .EQ. '') e_HR1(i__) = rNULL__
        if(ar__(67:71) .EQ. '') HR2(i__) = rNULL__
        if(ar__(73:76) .EQ. '') e_HR2(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  v_WCI2003_(i__),CXOU(i__),ePos(i__),logP(i__),CR(i__),
     +  e_CR(i__),HR(i__),e_HR(i__),HR1(i__),e_HR1(i__),HR2(i__),
     +  e_HR2(i__),Band(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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