FORTRAN Generation
(/./ftp/cats/J/A_A/335/467)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/335/467 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-29
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/A+A/335/467       High galactic latitude RASS X-ray sources (Thomas+ 1998)
*================================================================================
*Identification of soft high galactic latitude RASS X-ray sources.
*I. A complete count-rate limited sample.
*       Thomas H.-C., Beuermann K., Reinsch K., Schwope A.D., Truemper J.,
*       Voges W.
*      <Astron. Astrophys. 335, 467 (1998)>
*      =1998A&A...335..467T      (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Summary of the optical identification program
                                  for previously known sources in our sample.

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

      character*15  v1RXS      (nr__) ! 1RXS designation
      character*1   n_1RXS     (nr__) ! [*] Note on the object (1)
      character*14  Name       (nr__) ! Name of the optical counterpart
      character*10  SpType     (nr__) ! Spectral type of the counterpart
      real*4        Sep        (nr__) ! (arcsec) Separation between optical and X-ray positions
      real*4        Sep_r90    (nr__) ! Separation between optical and X-ray positions
*                                   in units of the 90% confidence radii
*Note (1): 1RXS J035025.0+171455 (V471 Tau): HR1=-0.7, white dwarf companion
*           (Werner & Rauch, 1997A&A...324L..25W and references therein)
*          1RXS J041521.5-073843 (40 Eri): HR1=-0.3, white dwarf companion
*          1RXS J132511.6-110932 (Spica): HR1=-0.9, coronal emission
*           (Cassinelli et al., 1994ApJ...421..705C)

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

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

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

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

      character*15  v1RXS_1    (nr__1) ! 1RXS designation
      integer*4     RAh        (nr__1) ! (h) ? Optical counterpart right ascension (J2000)
      integer*4     RAm        (nr__1) ! (min) ? Optical counterpart right ascension (J2000)
      real*4        RAs        (nr__1) ! (s) ? Optical counterpart right ascension (J2000)
      character*1   DE_        (nr__1) ! Declination sign
      integer*4     DEd        (nr__1) ! (deg) ? Optical counterpart declination (J2000)
      integer*4     DEm        (nr__1) ! (arcmin) ? Optical counterpart declination (J2000)
      integer*4     DEs        (nr__1) ! (arcsec) ? Optical counterpart declination (J2000)
      real*4        Sep_1      (nr__1) ! (arcsec) ? Separation between optical and X-ray
*                                      positions in arcsec
      real*4        Sep_r90_1  (nr__1) ! ? Separation between optical and X-ray
*                                      positions in units of the 90% confidence
*                                      radii
      real*4        CR         (nr__1) ! (ct/s) RASS BSC PSPC count-rate
      integer*4     e_CR       (nr__1) ! (10-2ct/s) rms uncertainty on CR
      real*4        HR1        (nr__1) ! Hardness ratio HR1
      integer*4     e_HR1      (nr__1) ! (10-2) rms uncertainty on HR1
      character*5   Class      (nr__1) ! Classification of the optical counterpart
      character*7   Type       (nr__1) ! Type of the optical counterpart
      real*4        z          (nr__1) ! ? Redshift if extragalactic
      character*1   u_z        (nr__1) ! Uncertainty flag on z
      real*4        Vmag       (nr__1) ! (mag) ? V magnitude
      character*7   Note       (nr__1) ! Notes (1)
*Note (1): 1: spectroscopic identification, this work
*          2: WFC identification (Pye et al., 1995, Cat. <J/MNRAS/274/1165>,
*              Mason et al., 1995, Cat. <J/MNRAS/274/1194>)
*          3: Hamburg/RASS identification (Bade et al., 1998A&AS..127..145B)
*          4: Grupe et al., 1998A&A...330...25G
*          5: inferred identification from the Digitized Sky Survey
*              (see Sect. 3.2)
*          6: radio source (see Sect. 3.2)
*          7: blank field
*          8: Remarks to individual sources in notes.dat file

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

C  Declarations for 'notes.dat'	! Individual notes

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

      character*16  v1RXS_2    (nr__2) ! 1RXS designation
      character*128 Note_1     (nr__2) ! Text of the note

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

C  Loading file 'table2.dat'	! Summary of the optical identification program
*                                  for previously known sources in our sample.

C  Format for file interpretation

    1 format(A15,A1,1X,A14,1X,A10,1X,F4.1,1X,F3.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,270
        read(1,'(A52)')ar__
        read(ar__,1)
     +  v1RXS(i__),n_1RXS(i__),Name(i__),SpType(i__),Sep(i__),
     +  Sep_r90(i__)
c    ..............Just test output...........
        write(6,1)
     +  v1RXS(i__),n_1RXS(i__),Name(i__),SpType(i__),Sep(i__),
     +  Sep_r90(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

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

C  Format for file interpretation

    2 format(
     +  A15,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,F4.1,1X,F3.1,
     +  1X,F4.2,1X,I2,1X,F5.2,1X,I2,1X,A5,1X,A7,1X,F5.3,A1,1X,F4.1,1X,
     +  A7)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,127
        read(1,'(A97)')ar__1
        read(ar__1,2)
     +  v1RXS_1(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Sep_1(i__),Sep_r90_1(i__),CR(i__),e_CR(i__),
     +  HR1(i__),e_HR1(i__),Class(i__),Type(i__),z(i__),u_z(i__),
     +  Vmag(i__),Note(i__)
        if(ar__1(17:18) .EQ. '') RAh(i__) = iNULL__
        if(ar__1(20:21) .EQ. '') RAm(i__) = iNULL__
        if(ar__1(23:26) .EQ. '') RAs(i__) = rNULL__
        if(ar__1(29:30) .EQ. '') DEd(i__) = iNULL__
        if(ar__1(32:33) .EQ. '') DEm(i__) = iNULL__
        if(ar__1(35:36) .EQ. '') DEs(i__) = iNULL__
        if(ar__1(38:41) .EQ. '') Sep_1(i__) = rNULL__
        if(ar__1(43:45) .EQ. '') Sep_r90_1(i__) = rNULL__
        if(ar__1(78:82) .EQ. '') z(i__) = rNULL__
        if(ar__1(85:88) .EQ. '') Vmag(i__) = rNULL__
        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,2)
     +  v1RXS_1(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Sep_1(i__),Sep_r90_1(i__),CR(i__),e_CR(i__),
     +  HR1(i__),e_HR1(i__),Class(i__),Type(i__),z(i__),u_z(i__),
     +  Vmag(i__),Note(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 'notes.dat'	! Individual notes

C  Format for file interpretation

    3 format(A16,1X,A128)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,36
        read(1,'(A145)')ar__2
        read(ar__2,3)v1RXS_2(i__),Note_1(i__)
c    ..............Just test output...........
        write(6,3)v1RXS_2(i__),Note_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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