Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/432/69 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 2026-Oct-05
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/432/69 Extremely Red Objects XMM-Newton observations (Brusa+, 2005)
*================================================================================
*XMM-Newton observations of Extremely Red Objects and the link with luminous,
*X-ray obscured quasars.
* Brusa M., Comastri A., Daddi E., Pozzetti L., Zamorani G., Vignali C.,
* Cimatti A., Fiore F., Mignoli M., Ciliegi P., Rottgering H.J.A.
* <Astron. Astrophys. 432, 69 (2005)>
* =2005A&A...432...69B
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Properties of the X-ray selected sources
integer*4 nr__
parameter (nr__=97) ! Number of records
character*65 ar__ ! Full-size record
C J2000 position composed of: RAdeg DEdeg
integer*4 Seq (nr__) ! X-ray source identification
real*8 RAdeg (nr__) ! (deg) X-ray right ascension, in decimal
* degrees (J2000)
real*8 DEdeg (nr__) ! (deg) X-ray declination, in decimal degrees (J2000)
real*4 F2_10keV (nr__) ! (mW/m2) ? Hard (2-10keV) X-ray flux
character*1 l_HC (nr__) ! Limit flag on HC
real*4 HC (nr__) ! (ct) Hard counts (3 sigma if upper limit)
real*4 e_HC (nr__) ! ? rms uncertainty on HC
real*4 F0_5_2keV (nr__) ! (mW/m2) ? Soft (0.5-2keV) X-ray flux
character*1 l_SC (nr__) ! Limit flag on SC
real*4 SC (nr__) ! (ct) Soft counts (3 sigma if upper limit)
real*4 e_SC (nr__) ! ? rms uncertainty on SC
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Optical and near-infrared photometry of the
selected sources
integer*4 nr__1
parameter (nr__1=111) ! Number of records
character*55 ar__1 ! Full-size record
C J2000 position composed of: RAdeg DEdeg
character*1 St (nr__1) ! [1-4] Status of the association (1)
integer*4 Seq_1 (nr__1) ! X-ray source identification
real*8 RAdeg_1 (nr__1) ! (deg) X-ray position - Right ascension (J2000)
real*8 DEdeg_1 (nr__1) ! (deg) X-ray position - Declination (J2000)
real*4 d_X_O (nr__1) ! (arcsec) ? Distance between optical and X-ray source
real*4 Rmag (nr__1) ! (mag) ? R-band magnitude (AB system)
character*1 l_Kmag (nr__1) ! Limit flag on Kmag
real*4 Kmag (nr__1) ! (mag) ? K-band magnitude (AB system)
real*4 LR_R (nr__1) ! ? Likelihood ratio in the R-band
real*4 LR_K (nr__1) ! ? Likelihood ratio in the K-band
*Note (1): The Table is splitted in 4 parts as follows:
* 1 = sources with secure X-ray to optical associations
* 2 = sources with ambiguous X-ray to optical associations
* 3 = sources with low X-ray to optical likelihood ratio
* 4 = sources without optical/near infrared counterparts
C=============================================================================
C Loading file 'table1.dat' ! Properties of the X-ray selected sources
C Format for file interpretation
1 format(
+ 1X,I3,1X,F9.5,1X,F7.5,1X,E8.2,1X,A1,F5.1,1X,F4.1,1X,E8.2,1X,
+ A1,F6.1,1X,F4.1)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,97
read(1,'(A65)')ar__
read(ar__,1)
+ Seq(i__),RAdeg(i__),DEdeg(i__),F2_10keV(i__),l_HC(i__),
+ HC(i__),e_HC(i__),F0_5_2keV(i__),l_SC(i__),SC(i__),e_SC(i__)
if(ar__(24:31) .EQ. '') F2_10keV(i__) = rNULL__
if(ar__(40:43) .EQ. '') e_HC(i__) = rNULL__
if(ar__(45:52) .EQ. '') F0_5_2keV(i__) = rNULL__
if(ar__(62:65) .EQ. '') e_SC(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ Seq(i__),RAdeg(i__),DEdeg(i__),F2_10keV(i__),l_HC(i__),
+ HC(i__),e_HC(i__),F0_5_2keV(i__),l_SC(i__),SC(i__),e_SC(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! Optical and near-infrared photometry of the
* selected sources
C Format for file interpretation
2 format(
+ A1,1X,I3,1X,F9.5,1X,F7.5,1X,F4.2,1X,F5.2,1X,A1,F5.2,1X,F6.2,
+ 1X,F6.2)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,111
read(1,'(A55)')ar__1
read(ar__1,2)
+ St(i__),Seq_1(i__),RAdeg_1(i__),DEdeg_1(i__),d_X_O(i__),
+ Rmag(i__),l_Kmag(i__),Kmag(i__),LR_R(i__),LR_K(i__)
if(ar__1(25:28) .EQ. '') d_X_O(i__) = rNULL__
if(ar__1(30:34) .EQ. '') Rmag(i__) = rNULL__
if(ar__1(37:41) .EQ. '') Kmag(i__) = rNULL__
if(ar__1(43:48) .EQ. '') LR_R(i__) = rNULL__
if(ar__1(50:55) .EQ. '') LR_K(i__) = rNULL__
c ..............Just test output...........
write(6,2)
+ St(i__),Seq_1(i__),RAdeg_1(i__),DEdeg_1(i__),d_X_O(i__),
+ Rmag(i__),l_Kmag(i__),Kmag(i__),LR_R(i__),LR_K(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end