Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/382/279 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-Sep-10
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/MNRAS/382/279 XMM-LSS catalogue. Version I. (Pierre+, 2007)
*================================================================================
*The XMM-LSS catalogue:
*X-ray sources and associated optical data. Version I.
* Pierre M., Chiappetti L., Pacaud F., Gueguen A., Libbrecht C., Altieri B.,
* Aussel H., Gandhi P., Garcet O., Gosset E., Paioro L., Ponman T.J.,
* Read A.M., Refregier A., Starck J.-L., Surdej J., Valtchanov I., Adami C.,
* Alloin D., Alshino A., Andreon S., Birkinshaw M., Bremer M., Detal A.,
* Duc P.-A., Galaz G., Jones L., Le Fevre J.-P., Le Fevre O., Maccagni D.,
* Mazure A., Quintana H., Rottgering H.J.A., Sprimont P.-G., Tasse C.,
* Trinchieri G., Willis J.P.
* <Mon. Not. R. Astron. Soc. 382, 279 (2007)>
* =2007MNRAS.382..279P
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'xlss.dat' ! The catalogue
integer*4 nr__
parameter (nr__=3385) ! Number of records
character*291 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 XSeq (nr__) ! *Internal sequence identifier
character*17 XLSS (nr__) ! *Catalog name of the object
* (JHHMMSS.s+DDMMSSa)
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)
real*4 DEs (nr__) ! (arcsec) X-ray Declination (J2000)
integer*4 BSeq (nr__) ! *? Identifier in 0.5-2keV band
character*16 XLSSB (nr__) ! ? Alternate name in 0.5-2keV band
* (JHHMMSS.s+DDMMSS)
integer*4 Bc1c2 (nr__) ! *? [0-2] 0.5-2keV extended source class
real*4 Bcorerad (nr__) ! (arcsec) ? 0.5-2keV Core radius for extended sources
real*8 Bextlike (nr__) ! *? 0.5-2keV Extension likelihood
real*8 Bdetlike (nr__) ! ? 0.5-2keV Detection likelihood
real*4 Boffaxis (nr__) ! (arcmin) ? 0.5-2keV Off-axis angle
integer*4 BRAh (nr__) ! (h) *? 0.5-2keV Right ascension (J2000)
integer*4 BRAm (nr__) ! (min) ? 0.5-2keV Right ascension (J2000)
real*4 BRAs (nr__) ! (s) ? 0.5-2keV Right ascension (J2000)
character*1 BDE_ (nr__) ! 0.5-2keV Declination sign (J2000)
integer*4 BDEd (nr__) ! (deg) ? 0.5-2keV Declination (J2000)
integer*4 BDEm (nr__) ! (arcmin) ? 0.5-2keV Declination (J2000)
real*4 BDEs (nr__) ! (arcsec) ? 0.5-2keV Declination (J2000)
real*4 eBpos (nr__) ! (arcsec) *? Position error in 0.5-2keV band
real*8 Bratemos (nr__) ! (ct/s) ? 0.5-2keV MOS count rate
real*8 Bratepn (nr__) ! (ct/s) ? 0.5-2keV pn count rate
real*4 Bflux (nr__) ! (aW/m2) *? 0.5-2keV Flux in 0.5-2keV band
integer*4 f_Bflux (nr__) ! *[0-2]? 0.5-2keV Flux difference flag
integer*4 CDSeq (nr__) ! *? Identifier in 2-10keV band
character*16 XLSSCD (nr__) ! ? Alternate name in 2-10keV band
* (JHHMMSS.s+DDMMSS)
real*4 CDcorerad (nr__) ! (arcsec) *? 2-10keV Core radius for extended sources
real*8 CDextlike (nr__) ! *? 2-10keV Extension likelihood
real*8 CDdetlike (nr__) ! *? 2-10keV Detection likelihood
real*4 CDoffaxis (nr__) ! (arcmin) ? 2-10keV Off-axis angle
integer*4 CDRAh (nr__) ! (h) *? 2-10keV Right ascension (J2000)
integer*4 CDRAm (nr__) ! (min) ? 2-10keV Right ascension (J2000)
real*4 CDRAs (nr__) ! (s) ? 2-10keV Right ascension (J2000)
character*1 CDDE_ (nr__) ! 2-10keV Declination sign (J2000)
integer*4 CDDEd (nr__) ! (deg) ? 2-10keV Declination (J2000)
integer*4 CDDEm (nr__) ! (arcmin) ? 2-10keV Declination (J2000)
real*4 CDDEs (nr__) ! (arcsec) ? 2-10keV Declination (J2000)
real*4 eCDpos (nr__) ! (arcsec) *? Position error in 2-10keV band
real*8 CDratemos (nr__) ! (ct/s) ? 2-10keV MOS count rate
real*8 CDratepn (nr__) ! (ct/s) ? 2-10keV pn count rate
real*4 CDflux (nr__) ! (aW/m2) *? 2-10keV Flux in 2-10keV band
integer*4 f_CDflux (nr__) ! *[0-2]? 2-10keV Flux difference flag
*Note on XSeq:
* This note applies to all merged band columns from XSeq to DEs. Columns
* whose label begins with X refer to band-merged X-ray properties and
* are always present for all records.
*Note on XLSS:
* In a very few cases the IAU standard catalogue name has an a/b suffix
* after the coordinate designation. This occurs when the band merging is
* ambiguous and one 0.5-2keV band source may have two different hard
* band counterparts, or viceversa.
*Note on BSeq, CDSeq:
* If a source was not detected in the band, all these columns are blank.
*Note on Bc1c2:
* The C1/C2 classification flag is set for candidate clusters according
* to Pacaud et al. (2006MNRAS.372..578P) and assumes the following values:
* 1 = object classified as C1 cluster candidate in the 0.5-2keV band
* 2 = object classified as C2 cluster candidate in the 0.5-2keV band
* 0 = undefined in any other case
*Note on Bextlike, CDextlike:
* The extension likelihood has value -99999.00000 for pointlike sources
*Note on BRAh, CDRAh:
* This note applies to all 0.5-2keV and 2-10keV band columns. The
* coordinates and count rates, and associated position error and flux
* in a band are relevant to the pointlike or extended fit according to
* the classification of the source
*Note on eBpos, eCDpos:
* The position error is computed from the count rate and off axis angle
* according to prescriptions given in the paper.
* For extended sources it is set to 0.0
*Note on Bflux, CDflux: in 10^-15^erg/cm^2^/s.
* The flux is set to -1.0 when undefined for any reason (in particular
* it is set to undefined for all C1 clusters)
*Note on f_Bflux, f_CDflux:
* The flux flag indicates how the fluxes computed from MOS or pn rates
* alone differ from the mean flux, with the following coding:
* 0 = difference < 20%
* 1 = difference between 20 and 50%
* 2 = difference > 50%
*Note on CDcorerad:
* The hard band core radius can assume value -1 when the extended source
* fit fails in the hard band.
*Note on CDdetlike:
* The hard band detection likelihood can assume value -99999.00000 when
* the source is not considered extended in the hard band.
C=============================================================================
C Loading file 'xlss.dat' ! The catalogue
C Format for file interpretation
1 format(
+ I5,6X,A17,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F4.1,1X,I4,7X,
+ A16,1X,I1,1X,F6.2,1X,F12.5,1X,F12.5,1X,F5.2,1X,I2,1X,I2,1X,
+ F4.1,1X,A1,I2,1X,I2,1X,F4.1,1X,F3.1,1X,F7.4,1X,F7.4,1X,F5.1,
+ 1X,I1,2X,I4,8X,A16,1X,F6.2,1X,F12.5,1X,F12.5,1X,F5.2,1X,I2,1X,
+ I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F4.1,1X,F3.1,1X,F7.4,1X,F7.4,1X,
+ F5.1,1X,I1)
C Effective file loading
open(unit=1,status='old',file=
+'xlss.dat')
write(6,*) '....Loading file: xlss.dat'
do i__=1,3385
read(1,'(A291)')ar__
read(ar__,1)
+ XSeq(i__),XLSS(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
+ DEd(i__),DEm(i__),DEs(i__),BSeq(i__),XLSSB(i__),Bc1c2(i__),
+ Bcorerad(i__),Bextlike(i__),Bdetlike(i__),Boffaxis(i__),
+ BRAh(i__),BRAm(i__),BRAs(i__),BDE_(i__),BDEd(i__),BDEm(i__),
+ BDEs(i__),eBpos(i__),Bratemos(i__),Bratepn(i__),Bflux(i__),
+ f_Bflux(i__),CDSeq(i__),XLSSCD(i__),CDcorerad(i__),
+ CDextlike(i__),CDdetlike(i__),CDoffaxis(i__),CDRAh(i__),
+ CDRAm(i__),CDRAs(i__),CDDE_(i__),CDDEd(i__),CDDEm(i__),
+ CDDEs(i__),eCDpos(i__),CDratemos(i__),CDratepn(i__),
+ CDflux(i__),f_CDflux(i__)
if(ar__(53:56) .EQ. '') BSeq(i__) = iNULL__
if(ar__(81:81) .EQ. '') Bc1c2(i__) = iNULL__
if(ar__(83:88) .EQ. '') Bcorerad(i__) = rNULL__
if(ar__(90:101) .EQ. '') Bextlike(i__) = rNULL__
if(ar__(103:114) .EQ. '') Bdetlike(i__) = rNULL__
if(ar__(116:120) .EQ. '') Boffaxis(i__) = rNULL__
if(ar__(122:123) .EQ. '') BRAh(i__) = iNULL__
if(ar__(125:126) .EQ. '') BRAm(i__) = iNULL__
if(ar__(128:131) .EQ. '') BRAs(i__) = rNULL__
if(ar__(134:135) .EQ. '') BDEd(i__) = iNULL__
if(ar__(137:138) .EQ. '') BDEm(i__) = iNULL__
if(ar__(140:143) .EQ. '') BDEs(i__) = rNULL__
if(ar__(145:147) .EQ. '') eBpos(i__) = rNULL__
if(ar__(149:155) .EQ. '') Bratemos(i__) = rNULL__
if(ar__(157:163) .EQ. '') Bratepn(i__) = rNULL__
if(ar__(165:169) .EQ. '') Bflux(i__) = rNULL__
if(ar__(171:171) .EQ. '') f_Bflux(i__) = iNULL__
if(ar__(174:177) .EQ. '') CDSeq(i__) = iNULL__
if(ar__(203:208) .EQ. '') CDcorerad(i__) = rNULL__
if(ar__(210:221) .EQ. '') CDextlike(i__) = rNULL__
if(ar__(223:234) .EQ. '') CDdetlike(i__) = rNULL__
if(ar__(236:240) .EQ. '') CDoffaxis(i__) = rNULL__
if(ar__(242:243) .EQ. '') CDRAh(i__) = iNULL__
if(ar__(245:246) .EQ. '') CDRAm(i__) = iNULL__
if(ar__(248:251) .EQ. '') CDRAs(i__) = rNULL__
if(ar__(254:255) .EQ. '') CDDEd(i__) = iNULL__
if(ar__(257:258) .EQ. '') CDDEm(i__) = iNULL__
if(ar__(260:263) .EQ. '') CDDEs(i__) = rNULL__
if(ar__(265:267) .EQ. '') eCDpos(i__) = rNULL__
if(ar__(269:275) .EQ. '') CDratemos(i__) = rNULL__
if(ar__(277:283) .EQ. '') CDratepn(i__) = rNULL__
if(ar__(285:289) .EQ. '') CDflux(i__) = rNULL__
if(ar__(291:291) .EQ. '') f_CDflux(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)
+ XSeq(i__),XLSS(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
+ DEd(i__),DEm(i__),DEs(i__),BSeq(i__),XLSSB(i__),Bc1c2(i__),
+ Bcorerad(i__),Bextlike(i__),Bdetlike(i__),Boffaxis(i__),
+ BRAh(i__),BRAm(i__),BRAs(i__),BDE_(i__),BDEd(i__),BDEm(i__),
+ BDEs(i__),eBpos(i__),Bratemos(i__),Bratepn(i__),Bflux(i__),
+ f_Bflux(i__),CDSeq(i__),XLSSCD(i__),CDcorerad(i__),
+ CDextlike(i__),CDdetlike(i__),CDoffaxis(i__),CDRAh(i__),
+ CDRAm(i__),CDRAs(i__),CDDE_(i__),CDDEd(i__),CDDEm(i__),
+ CDDEs(i__),eCDpos(i__),CDratemos(i__),CDratepn(i__),
+ CDflux(i__),f_CDflux(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end