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

Conversion of standardized ReadMe file for file /./ftp/cats/IX/32 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-20
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/32                  ROSAT Bright Survey                 (Fischer+, 1998-2000)
*================================================================================
*The ROSAT Bright Survey.
*I. Identification of an AGN sample with hard ROSAT X-ray spectra
*II. Catalogue of all high-galactic latitude RASS sources with PSPC
*countrate CR>0.2s^-1^.
*     Fischer J.-U., Hasinger G., Schwope A.D., Brunner H., Boller T.,
*     Trumper J., Voges W., Neizvestny S., Schwarz R., Ugryumov A., Belage Yu.
*    <Astron. Nachrichten 319, 347 (1998); 321, 1 (2000)>
*    =1998AN....319..347F
*    =2000AN....321....1S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! List of X-ray sources forming the
                              ROSAT Hard Survey, RHS

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg      (nr__) ! (deg) Right Ascension J2000
      real*8        DEdeg      (nr__) ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     RHS        (nr__) ! ROSAT Hard Survey sequential number
      integer*4     RBS        (nr__) ! ? ROSAT Bright Survey sequential number
      character*15  v1RXSJ     (nr__) ! 1RXSJ (Cat. <IX/10>) designation
      integer*4     RAh        (nr__) ! (h) X-ray right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) X-ray right ascension (J2000)
      real*4        RAs        (nr__) ! (s) X-ray right ascension (J2000)
      character*1   DE_        (nr__) ! X-ray declination sign (J2000)
      integer*4     DEd        (nr__) ! (deg) X-ray declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) X-ray declination (J2000)
      integer*4     DEs        (nr__) ! (arcsec) X-ray declination (J2000)
      character*1   D          (nr__) ! [PH] Detector (P: PSPC, H: HRI)
      integer*4     e_Pos      (nr__) ! (arcsec) X-ray positional uncertainty
      real*4        CRate      (nr__) ! (ct/s) Count rate (1)
      real*4        e_CRate    (nr__) ! (ct/s) rms uncertainty on CRate
      real*4        HR1        (nr__) ! Hardness ratio 1 (1)
      real*4        e_HR1      (nr__) ! rms uncertainty on HR1
*Note (1): X-ray count rates and hardness ratios are derived from the
*    All-Sky Survey Bright Source Catalogue (1RXS, Voges et al., 1996, Cat.
*    <IX/10), with the exception of RHS10, where the SASS1-processed survey
*    data are used.
*         HR1=(H+S)/(H-S)  with the ROSAT-PSC count rates
*    H in the hard band (0.5-2.0keV) and S in the soft band (0.1-0.4keV).

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

C  Declarations for 'table3.dat'	! Summary of the optical identification program
                              of the new sources in the RHS-sample.

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg_1    (nr__1) ! (deg) Right Ascension J2000
      real*8        DEdeg_1    (nr__1) ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     RHS_1      (nr__1) ! RHS number
      integer*4     RAh_1      (nr__1) ! (h) Optical right ascension (J2000)
      integer*4     RAm_1      (nr__1) ! (min) Optical right ascension (J2000)
      real*4        RAs_1      (nr__1) ! (s) Optical right ascension (J2000)
      character*1   DE__1      (nr__1) ! Optical declination sign (J2000)
      integer*4     DEd_1      (nr__1) ! (deg) Optical declination (J2000)
      integer*4     DEm_1      (nr__1) ! (arcmin) Optical declination (J2000)
      integer*4     DEs_1      (nr__1) ! (arcsec) Optical declination (J2000)
      integer*4     Dox        (nr__1) ! (arcsec) Positional difference between the optical
*                                    and X-ray coordinates
      character*4   Class      (nr__1) ! Classification of the object
      character*9   Type       (nr__1) ! Type of the object
      real*4        z          (nr__1) ! ? Redshift
      real*4        Vmag       (nr__1) ! (mag) Optical brightness
      real*4        FX         (nr__1) ! (10-15W/m2) Integrated X-ray flux between 0.5 and 2.0keV
      real*4        Fr         (nr__1) ! (mJy) ? Radio flux at 1.4GHz
      character*4   Notes      (nr__1) ! Notes detailed in note3.dat

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

C  Declarations for 'note3.dat'	! Notes from table3.dat

      integer*4 nr__2
      parameter (nr__2=33)	! Number of records
      character*84 ar__2  	! Full-size record

      character*2   Note       (nr__2) ! Note designation in table3.dat
      character*80  Text       (nr__2) ! Text of note

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

C  Declarations for 'rosat.dat'	! The ROSAT Bright Survey (RBS) catalogue

      integer*4 nr__3
      parameter (nr__3=2072)	! Number of records
      character*151 ar__3  	! Full-size record

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg_2    (nr__3) ! (deg) Right Ascension J2000
      real*8        DEdeg_2    (nr__3) ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     RBS_1      (nr__3) ! ROSAT Bright Survey number
      character*15  v1RXSJ_1   (nr__3) ! 1RXSJ X-ray coordinates (Cat. <IX/10>)
      integer*4     RAh_2      (nr__3) ! (h) ? Optical right ascension (J2000)
      integer*4     RAm_2      (nr__3) ! (min) ? Optical right ascension (J2000)
      real*4        RAs_2      (nr__3) ! (s) ? Optical right ascension (J2000)
      character*1   DE__2      (nr__3) ! Optical declination sign (J2000)
      integer*4     DEd_2      (nr__3) ! (deg) ? Optical declination (J2000)
      integer*4     DEm_2      (nr__3) ! (arcmin) ? Optical declination (J2000)
      integer*4     DEs_2      (nr__3) ! (arcsec) ? Optical declination (J2000)
      integer*4     Dist       (nr__3) ! (arcsec) ? Distance optical minus X positions
      integer*4     e_Pos_1    (nr__3) ! (arcsec) X-ray positional uncertainty (1{sigma}) as
*                                  given in the 1RXS-catalog. The 90% confidence
*                                  error radius is r_90_=1.65{sigma}
      real*4        CR         (nr__3) ! (ct/s) RASS countrate in the total ROSAT
*                                  window 0.1-2.4keV
      real*4        CRH        (nr__3) ! (ct/s) RASS countrate in the hard ROSAT
*                                  window 0.5-2.0keV
      real*4        HR1_1      (nr__3) ! hardness ratio (1)
      real*4        HR2        (nr__3) ! hardness ratio (1)
      real*4        NH         (nr__3) ! (10+20cm-2) Galactic hydrogen column density
      character*10  Name       (nr__3) ! (Truncated) Name in optical catalogues
      character*5   XClass     (nr__3) ! Class of X-ray source (2)
      character*10  Type_1     (nr__3) ! Type within class (2)
      real*4        z_1        (nr__3) ! ? redshift
      character*1   u_z        (nr__3) ! Uncertainy flag on z
      character*1   l_Mag      (nr__3) ! Limit flag on Mag
      real*4        Mag        (nr__3) ! (mag) ? Optical brightness (typically in the V-band,
*                                    sometimes only through spectrograph slit
      character*1   u_Mag      (nr__3) ! Uncertainty flag on Mag
      character*1   n_Mag      (nr__3) ! [CSNBDRE] Band and origin of magnitude (3)
      integer*4     FX_1       (nr__3) ! (10-17W/m2) Flux in ROSAT X-ray band
      real*4        logFX_Fo   (nr__3) ! ? log flux ratio X-ray to optical
      real*4        logLX      (nr__3) ! (10-7W) ? log of X-ray luminosity
      character*1   Note_1     (nr__3) ! [Y] Y: Note detailed in notes.dat file
*Note (1): Hardness ratio:
*     HR1=(H+S)/(H-S)   with H and S being the counts in the hard (0.5-2.0keV)
*                       and the soft (0.1-0.4keV) spectral bands, respectively.
*     HR2=(D-C)/(D+C)   with D and C being the count in the (0.9-2.0keV)
*                       and the (0.5-0.9keV) spectral bands, respectively.
*Note (2): A column indicates an uncertain identification.
*     AGN: active galactic nucleus, X-rays originate from the central engine
*   GALAX: normal galaxy without obvious nuclear activity. X-rays originate
*          predominantly from the stellar constituents of the galaxy
*   CLUST: cluster of galaxies
*    GGRP: small (compact) group of galaxies
*    STAR: coronal or photospheric emitter of X-rays
*      CV: cataclysmic variable or related object (white dwarf accretor)
*     XRB: X-ray binary (neutron star or black hole accretor)
*      MC: Magellanic cloud source, not considered in the identification program
*   VIRGO: X-ray source in the Virgo region, not considered in the
*          identification program
*Note (3): Origin of magnitude:
*     C: CDS/SIMBAD (V band)
*     D: CDS/SIMBAD (D band)
*     N: NED (a magnitude in the optical range)
*     R: APM/ROE scan of POSS/ESO/SERC red (E) plate
*     B: APM/ROE scan of POSS/ESO/SERC blue (O) plate
*     S: below slit magnitude determined by folding a low-resolution
*         spectrum with the sensitivity curve of a V-filter
*     E: not specified

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

C  Declarations for 'notes.dat'	! Individual notes of rosat.dat file

      integer*4 nr__4
      parameter (nr__4=283)	! Number of records
      character*80 ar__4  	! Full-size record

      integer*4     RBS_2      (nr__4) ! RBS number
      character*75  Note_2     (nr__4) ! Text of the note

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

C  Loading file 'table1.dat'	! List of X-ray sources forming the
*                              ROSAT Hard Survey, RHS

C  Format for file interpretation

    1 format(
     +  I2,1X,I4,1X,A15,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,
     +  A1,1X,I2,1X,F4.2,1X,F4.2,1X,F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,65
        read(1,'(A70)')ar__
        read(ar__,1)
     +  RHS(i__),RBS(i__),v1RXSJ(i__),RAh(i__),RAm(i__),RAs(i__),
     +  DE_(i__),DEd(i__),DEm(i__),DEs(i__),D(i__),e_Pos(i__),
     +  CRate(i__),e_CRate(i__),HR1(i__),e_HR1(i__)
        if(ar__(4:7) .EQ. '') RBS(i__) = iNULL__
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  RHS(i__),RBS(i__),v1RXSJ(i__),RAh(i__),RAm(i__),RAs(i__),
     +  DE_(i__),DEd(i__),DEm(i__),DEs(i__),D(i__),e_Pos(i__),
     +  CRate(i__),e_CRate(i__),HR1(i__),e_HR1(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Summary of the optical identification program
*                              of the new sources in the RHS-sample.

C  Format for file interpretation

    2 format(
     +  I2,2X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,2X,I2,3X,A4,2X,A9,
     +  1X,F5.3,2X,F4.1,1X,F4.1,1X,F6.1,1X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,64
        read(1,'(A75)')ar__1
        read(ar__1,2)
     +  RHS_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
     +  DEd_1(i__),DEm_1(i__),DEs_1(i__),Dox(i__),Class(i__),
     +  Type(i__),z(i__),Vmag(i__),FX(i__),Fr(i__),Notes(i__)
        if(ar__1(48:52) .EQ. '') z(i__) = rNULL__
        if(ar__1(65:70) .EQ. '') Fr(i__) = rNULL__
        RAdeg_1(i__) = rNULL__
        DEdeg_1(i__) = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh_1(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
        if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
        if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
        if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
        if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
        if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
        if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  RHS_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
     +  DEd_1(i__),DEm_1(i__),DEs_1(i__),Dox(i__),Class(i__),
     +  Type(i__),z(i__),Vmag(i__),FX(i__),Fr(i__),Notes(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'note3.dat'	! Notes from table3.dat

C  Format for file interpretation

    3 format(A2,2X,A80)

C  Effective file loading

      open(unit=1,status='old',file=
     +'note3.dat')
      write(6,*) '....Loading file: note3.dat'
      do i__=1,33
        read(1,'(A84)')ar__2
        read(ar__2,3)Note(i__),Text(i__)
c    ..............Just test output...........
        write(6,3)Note(i__),Text(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'rosat.dat'	! The ROSAT Bright Survey (RBS) catalogue

C  Format for file interpretation

    4 format(
     +  I4,1X,A15,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,I3,2X,
     +  I3,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,A10,1X,A5,1X,
     +  A10,1X,F6.4,A1,1X,A1,F4.1,A1,A1,1X,I5,F6.2,F5.1,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'rosat.dat')
      write(6,*) '....Loading file: rosat.dat'
      do i__=1,2072
        read(1,'(A151)')ar__3
        read(ar__3,4)
     +  RBS_1(i__),v1RXSJ_1(i__),RAh_2(i__),RAm_2(i__),RAs_2(i__),
     +  DE__2(i__),DEd_2(i__),DEm_2(i__),DEs_2(i__),Dist(i__),
     +  e_Pos_1(i__),CR(i__),CRH(i__),HR1_1(i__),HR2(i__),NH(i__),
     +  Name(i__),XClass(i__),Type_1(i__),z_1(i__),u_z(i__),
     +  l_Mag(i__),Mag(i__),u_Mag(i__),n_Mag(i__),FX_1(i__),
     +  logFX_Fo(i__),logLX(i__),Note_1(i__)
        if(ar__3(22:23) .EQ. '') RAh_2(i__) = iNULL__
        if(ar__3(25:26) .EQ. '') RAm_2(i__) = iNULL__
        if(ar__3(28:31) .EQ. '') RAs_2(i__) = rNULL__
        if(ar__3(34:35) .EQ. '') DEd_2(i__) = iNULL__
        if(ar__3(37:38) .EQ. '') DEm_2(i__) = iNULL__
        if(ar__3(40:41) .EQ. '') DEs_2(i__) = iNULL__
        if(ar__3(43:45) .EQ. '') Dist(i__) = iNULL__
        if(ar__3(110:115) .EQ. '') z_1(i__) = rNULL__
        if(ar__3(119:122) .EQ. '') Mag(i__) = rNULL__
        if(ar__3(131:136) .EQ. '') logFX_Fo(i__) = rNULL__
        if(ar__3(137:141) .EQ. '') logLX(i__) = rNULL__
        RAdeg_2(i__) = rNULL__
        DEdeg_2(i__) = rNULL__
c  Derive coordinates RAdeg_2 and DEdeg_2 from input data
c  (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown)
        if(RAh_2(i__) .GT. -180) RAdeg_2(i__)=RAh_2(i__)*15.
        if(RAm_2(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAm_2(i__)/4.
        if(RAs_2(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAs_2(i__)/240.
        if(DEd_2(i__) .GE. 0) DEdeg_2(i__)=DEd_2(i__)
        if(DEm_2(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEm_2(i__)/60.
        if(DEs_2(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEs_2(i__)/3600.
        if(DE__2(i__).EQ.'-'.AND.DEdeg_2(i__).GE.0) DEdeg_2(i__)=-DEdeg_2(i__)
c    ..............Just test output...........
        write(6,4)
     +  RBS_1(i__),v1RXSJ_1(i__),RAh_2(i__),RAm_2(i__),RAs_2(i__),
     +  DE__2(i__),DEd_2(i__),DEm_2(i__),DEs_2(i__),Dist(i__),
     +  e_Pos_1(i__),CR(i__),CRH(i__),HR1_1(i__),HR2(i__),NH(i__),
     +  Name(i__),XClass(i__),Type_1(i__),z_1(i__),u_z(i__),
     +  l_Mag(i__),Mag(i__),u_Mag(i__),n_Mag(i__),FX_1(i__),
     +  logFX_Fo(i__),logLX(i__),Note_1(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_2(i__),DEdeg_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'notes.dat'	! Individual notes of rosat.dat file

C  Format for file interpretation

    5 format(I4,1X,A75)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,283
        read(1,'(A80)')ar__4
        read(ar__4,5)RBS_2(i__),Note_2(i__)
c    ..............Just test output...........
        write(6,5)RBS_2(i__),Note_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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