CDS.headStuff2 FORTRAN Generation
()

Conversion of standardized ReadMe file for catalog 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-25
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/301/881     The ROSAT brightest cluster sample - I.  (Ebeling+, 1998)
*================================================================================
*The ROSAT brightest cluster sample - I.
*The compilation of the sample and the cluster log N-log S distribution.
*    Ebeling H., Edge A.C., Boehringer H., Allen S.W., Crawford C.S.,
*    Fabian A.C., Voges W., Huchra J.P.
*   <Mon. Not. R. Astron. Soc. 301, 881 (1998)>
*   =1998MNRAS.301..881E
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! The ROSAT Brightest Cluster Sample

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

C  J2000 position composed of: RAdeg DEdeg
      character*4   n_Name     (nr__) ! Note on Name (1)
      character*15  Name       (nr__) ! Cluster name (2)
      integer*4     RAh        (nr__) ! (h) Right ascension (B1950)
      integer*4     RAm        (nr__) ! (min) Right ascension (B1950)
      real*4        RAs        (nr__) ! (s) Right ascension (B1950)
      character*1   DE_        (nr__) ! Declination sign (B1950)
      integer*4     DEd        (nr__) ! (deg) Declination (B1950)
      integer*4     DEm        (nr__) ! (arcmin) Declination (B1950)
      integer*4     DEs        (nr__) ! (arcsec) Declination (B1950)
      real*8        RAdeg      (nr__) ! (deg) X-ray right ascension (J2000)
      real*8        DEdeg      (nr__) ! (deg) X-ray declination (J2000)
      real*4        NH         (nr__) ! (10+20cm-2) Hydrogen column density from
*                                  Stark et al. (1992, Cat. <J/ApJS/79/77>)
      integer*4     Texp       (nr__) ! (s) RASS exposition time
      real*4        CR_VTP     (nr__) ! (ct/s) PSPC count rate in PHA (Pulse Height Analyser)
*                                  channels 11 to 235 originally detected by VTP
*                                  (Voronoi tesselation and percolation)
      real*4        R_VTP      (nr__) ! (arcmin) Equivalent radius of the source detected by
*                                  VTP (Voronoi tesselation and percolation)
      real*4        CR         (nr__) ! (ct/s) Final PSCP count rate (3)
      real*4        e_CR       (nr__) ! (ct/s) rms uncertainty on CR (4)
      real*4        kT         (nr__) ! (keV) Intra-cluster medium gas temperature used in
*                                  conversion from count rates to energy fluxes
      character*1   n_kT       (nr__) ! [e] e: temperature estimated
      real*4        z          (nr__) ! Redshift
      real*4        FX         (nr__) ! (10-15W/m2) Unabsorbed X-ray energy flux in the
*                                  0.1-2.4keV band (10-12erg/cm2/s)
      real*4        LX         (nr__) ! (10+37W) Intrinsic X-ray luminosity in 0.1-2.4keV band
      integer*4     r_z        (nr__) ! Redshift reference in refs.dat file
*Note (1): Flags:
*     V = extended according to VTP, Voronoi tesselation and percolation
*     S = extended according to SASS, Standard Analysis Sofware System
*         (Vosges et al., 1992, Proc. Satellite Symp. 3, ESA ISY-3, p. 223)
*     c = likely contamination from point sources
*     + = serendipitous VTP detection
*     * = redshift z>0.3
*Note (2): Where clusters appear to consist of two components,
*     two entries ('a' and 'b') are listed.
*Note (3): Final PSC count rate in PHA channels 11 to 235 based on the original
*     VTP count rate. Statistical corrections for low-surface brightness
*     emission that has not been detected directly and for contamination
*     from point sources have been applied.
*Note (4): Error in the final PSPC count rate according to equation
*          {Delta}CR/CR=2.29(CR*Texp)^-0.48^.
*     The fractional uncertainty in the energy flux and the X-ray luminosity 
*     can be assumed to be the same as the fractional count rate error.

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

C  Declarations for 'refs.dat'	! References

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

      integer*4     Ref        (nr__1) ! Reference number
      character*19  BibCode    (nr__1) ! BibCode
      character*26  Aut        (nr__1) ! Author's name
      character*23  Com        (nr__1) ! Comments

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

C  Loading file 'table3.dat'	! The ROSAT Brightest Cluster Sample

C  Format for file interpretation

    1 format(
     +  A4,1X,A15,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,F7.3,1X,
     +  F7.3,1X,F4.1,1X,I4,1X,F5.2,1X,F4.1,1X,F6.2,1X,F5.2,1X,F4.1,A1,
     +  1X,F5.4,1X,F5.1,1X,F6.2,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,206
        read(1,'(A119)')ar__
        read(ar__,1)
     +  n_Name(i__),Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),RAdeg(i__),DEdeg(i__),NH(i__),
     +  Texp(i__),CR_VTP(i__),R_VTP(i__),CR(i__),e_CR(i__),kT(i__),
     +  n_kT(i__),z(i__),FX(i__),LX(i__),r_z(i__)
c    ..............Just test output...........
        write(6,1)
     +  n_Name(i__),Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),RAdeg(i__),DEdeg(i__),NH(i__),
     +  Texp(i__),CR_VTP(i__),R_VTP(i__),CR(i__),e_CR(i__),kT(i__),
     +  n_kT(i__),z(i__),FX(i__),LX(i__),r_z(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    2 format(I2,1X,A19,1X,A26,1X,A23)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,47
        read(1,'(A73)')ar__1
        read(ar__1,2)Ref(i__),BibCode(i__),Aut(i__),Com(i__)
c    ..............Just test output...........
        write(6,2)Ref(i__),BibCode(i__),Aut(i__),Com(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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