Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/432/69 into FORTRAN code for reading data files line by line.
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-06
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 ! X-ray source identification
real*8 RAdeg ! (deg) X-ray right ascension, in decimal
* degrees (J2000)
real*8 DEdeg ! (deg) X-ray declination, in decimal degrees (J2000)
real*4 F2_10keV ! (mW/m2) ? Hard (2-10keV) X-ray flux
character*1 l_HC ! Limit flag on HC
real*4 HC ! (ct) Hard counts (3 sigma if upper limit)
real*4 e_HC ! ? rms uncertainty on HC
real*4 F0_5_2keV ! (mW/m2) ? Soft (0.5-2keV) X-ray flux
character*1 l_SC ! Limit flag on SC
real*4 SC ! (ct) Soft counts (3 sigma if upper limit)
real*4 e_SC ! ? 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 ! [1-4] Status of the association (1)
integer*4 Seq_1 ! X-ray source identification
real*8 RAdeg_1 ! (deg) X-ray position - Right ascension (J2000)
real*8 DEdeg_1 ! (deg) X-ray position - Declination (J2000)
real*4 d_X_O ! (arcsec) ? Distance between optical and X-ray source
real*4 Rmag ! (mag) ? R-band magnitude (AB system)
character*1 l_Kmag ! Limit flag on Kmag
real*4 Kmag ! (mag) ? K-band magnitude (AB system)
real*4 LR_R ! ? Likelihood ratio in the R-band
real*4 LR_K ! ? 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,RAdeg,DEdeg,F2_10keV,l_HC,HC,e_HC,F0_5_2keV,l_SC,SC,e_SC
if(ar__(24:31) .EQ. '') F2_10keV = rNULL__
if(ar__(40:43) .EQ. '') e_HC = rNULL__
if(ar__(45:52) .EQ. '') F0_5_2keV = rNULL__
if(ar__(62:65) .EQ. '') e_SC = rNULL__
c ..............Just test output...........
write(6,1)
+ Seq,RAdeg,DEdeg,F2_10keV,l_HC,HC,e_HC,F0_5_2keV,l_SC,SC,e_SC
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,Seq_1,RAdeg_1,DEdeg_1,d_X_O,Rmag,l_Kmag,Kmag,LR_R,LR_K
if(ar__1(25:28) .EQ. '') d_X_O = rNULL__
if(ar__1(30:34) .EQ. '') Rmag = rNULL__
if(ar__1(37:41) .EQ. '') Kmag = rNULL__
if(ar__1(43:48) .EQ. '') LR_R = rNULL__
if(ar__1(50:55) .EQ. '') LR_K = rNULL__
c ..............Just test output...........
write(6,2)
+ St,Seq_1,RAdeg_1,DEdeg_1,d_X_O,Rmag,l_Kmag,Kmag,LR_R,LR_K
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end