FORTRAN Generation
(/./ftp/cats/IX/11/)

Conversion of standardized ReadMe file for file /./ftp/cats/IX/11/ 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-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. IX/11               ROSAT Source Catalog        (Voges+ 1994)
*================================================================================
*ROSAT Source Catalog, Version 11-May-1995
*    Voges W., Gruber R., Haberl F., Kuerster M., Pietsch W., Zimmermann U.
*   <ROSAT NEWS No.32 (01-Nov-1994)>
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'rosatsrc.dat'	! The ROSAT Source Catalogue

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

C  J2000 position composed of: RAdeg DEdeg
      character*20  Seq        (nr__) ! ROSAT observation sequence number
      integer*4     MASOL      (nr__) ! MASOL main running number
      character*22  Name       (nr__) ! ROSAT source name (1RXP) (1)
      real*8        RAdeg      (nr__) ! (deg) Right ascension (J2000), decimal degrees
      real*8        DEdeg      (nr__) ! (deg) Declination (J2000), decimal degrees
      real*8        GLON       (nr__) ! (deg) Galactic longitude
      real*8        GLAT       (nr__) ! (deg) Galactic latitude
      real*4        ErrML      (nr__) ! (arcsec) Positional accuracy: error radius of
*                                   Maximum Likelihood algorithm
      real*4        ErrBor     (nr__) ! (arcsec) Positional accuracy: boresight error
      real*4        ErrSys     (nr__) ! (arcsec) Positional accuracy: systematic error
      real*4        PosErr     (nr__) ! (arcsec) Total Positional accuracy
      real*4        OffAxis    (nr__) ! (arcmin) Off-axis radius in arcmin
      real*4        Count      (nr__) ! (ct/s) Source countrate (vignetting corrected)
      real*4        e_Count    (nr__) ! (ct/s) Mean error on Count
      real*4        bgCt       (nr__) ! (ct/s/arcmin2) Background countrate
      real*8        ExpTime    (nr__) ! (s) Exposure time
      real*4        HR1        (nr__) ! Hardness ratio 1 (2)
      real*4        e_HR1      (nr__) ! Error on HR1
      real*4        HR2        (nr__) ! hardness ratio 2 (2)
      real*4        e_HR2      (nr__) ! Error on HR2
      real*8        Extent     (nr__) ! Source extent, by which the source image
*                                    exceeds the point spread function.
      real*8        L_Extent   (nr__) ! Likelihood of source extent
      real*8        ML         (nr__) ! Likelihood from maximum-likelihood method
      integer*4     Ldetect    (nr__) ! Likelihood of source detection algorithm
      integer*4     RibDist    (nr__) ! (arcsec) Distance to next rib or edge
      integer*4     SrcDist    (nr__) ! (arcsec) Distance to next source before screening
      integer*4     SrcDist2   (nr__) ! (arcsec) Distance to next source after screening
      character*6   PrioFlags  (nr__) ! [01] Source detection string (3)
      character*1   PHA        (nr__) ! [ABCDb ] Source detection string (4)
      integer*4     Cell       (nr__) ! (45arcsec) Detect cell size  (5)
      real*4        VigFactor  (nr__) ! []?=0 Vignetting factor (6)
      character*1   Confuse    (nr__) ! [YN] Confusion indicator
*Note (1): The name includes the '1RXP' acronym, and is based
*     on J2000 position (format JHHMMSS.S+DDMMSS).
*Note (2): The hardness ratios are defined by:
*     hr1 = ( B - A ) / ( B + A )  , where
*             A = countrate in PHA range  11 -  41 (~0.1-0.4 keV)
*             B = countrate in PHA range  52 - 201 (~0.5-2.0 keV)
*     hr2 = ( D - C ) / ( D + C )  , where
*             C = countrate in PHA range  52 -  90 (~0.5-0.9 keV)
*             D = countrate in PHA range  91 - 201 (~0.9-2.0 keV)
*     (PHA = Pulse Height Amplitude)
*Note (3): the flags indicate the sliding window detection history
*     using either the background map (M) or the local background (B),
*          and take the values 0 = no detection, 1 = detection;
*    The order of flags is:
*       M-broad, L-broad, M-hard, L-hard, M-soft, L-soft
*Note (4): the PHA (Pulse Height Amplitude) range
*     PHA range with highest detection likelihood is indicated by
*         A =  PHA range 11-41  (~0.1-0.4 keV)
*         B =  PHA range 52-201 (~0.5-2.0 keV)
*         C =  PHA range 52-90  (~0.5-0.9 keV)
*         D =  PHA range 91-201 (~0.9-2.0 keV)
*         b or blank means 'broad'
*Note (5): the basic detect cell size is 3x3 pixels, or 45x45arcsec;
*     a value of 2 indicates a detect cell size of 90x90arcsec,
*     a value of 4 indicates a detect cell size of 3x3arcmin,
*     and a value of 8 a detect cell size of 6x6arcmin.
*Note (6): the vignetting factor increases from 1 for sources detected
*     on the axis to higher values when the source was detected off-axis.

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

C  Loading file 'rosatsrc.dat'	! The ROSAT Source Catalogue

C  Format for file interpretation

    1 format(
     +  4X,A20,1X,I4,1X,A22,1X,F9.5,1X,F9.5,1X,F9.5,1X,F9.5,1X,F5.1,
     +  1X,F5.1,1X,F5.1,1X,F5.1,1X,F6.2,1X,E9.3,1X,E9.3,1X,E9.3,1X,
     +  F8.0,F6.2,F6.2,F6.2,F6.2,F7.1,F7.1,F8.0,I6,I5,I5,I5,1X,A6,A1,
     +  1X,I3,F5.2,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'rosatsrc.dat')
      write(6,*) '....Loading file: rosatsrc.dat'
      do i__=1,74301
        read(1,'(A248)')ar__
        read(ar__,1)
     +  Seq(i__),MASOL(i__),Name(i__),RAdeg(i__),DEdeg(i__),GLON(i__),
     +  GLAT(i__),ErrML(i__),ErrBor(i__),ErrSys(i__),PosErr(i__),
     +  OffAxis(i__),Count(i__),e_Count(i__),bgCt(i__),ExpTime(i__),
     +  HR1(i__),e_HR1(i__),HR2(i__),e_HR2(i__),Extent(i__),
     +  L_Extent(i__),ML(i__),Ldetect(i__),RibDist(i__),SrcDist(i__),
     +  SrcDist2(i__),PrioFlags(i__),PHA(i__),Cell(i__),
     +  VigFactor(i__),Confuse(i__)
c    ..............Just test output...........
        write(6,1)
     +  Seq(i__),MASOL(i__),Name(i__),RAdeg(i__),DEdeg(i__),GLON(i__),
     +  GLAT(i__),ErrML(i__),ErrBor(i__),ErrSys(i__),PosErr(i__),
     +  OffAxis(i__),Count(i__),e_Count(i__),bgCt(i__),ExpTime(i__),
     +  HR1(i__),e_HR1(i__),HR2(i__),e_HR2(i__),Extent(i__),
     +  L_Extent(i__),ML(i__),Ldetect(i__),RibDist(i__),SrcDist(i__),
     +  SrcDist2(i__),PrioFlags(i__),PHA(i__),Cell(i__),
     +  VigFactor(i__),Confuse(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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