FORTRAN Generation
(/./ftp/cats/J/MNRAS/382/279)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/382/279 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-Sep-12
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       ! (deg) Right Ascension J2000
      real*8        DEdeg       ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     XSeq        ! *Internal sequence identifier
      character*17  XLSS        ! *Catalog name of the object
*                                        (JHHMMSS.s+DDMMSSa)
      integer*4     RAh         ! (h) X-ray Right ascension (J2000)
      integer*4     RAm         ! (min) X-ray Right ascension (J2000)
      real*4        RAs         ! (s) X-ray Right ascension (J2000)
      character*1   DE_         ! X-ray Declination sign (J2000)
      integer*4     DEd         ! (deg) X-ray Declination (J2000)
      integer*4     DEm         ! (arcmin) X-ray Declination (J2000)
      real*4        DEs         ! (arcsec) X-ray Declination (J2000)
      integer*4     BSeq        ! *? Identifier in 0.5-2keV band
      character*16  XLSSB       ! ? Alternate name in 0.5-2keV band
*                                      (JHHMMSS.s+DDMMSS)
      integer*4     Bc1c2       ! *? [0-2] 0.5-2keV extended source class
      real*4        Bcorerad    ! (arcsec) ? 0.5-2keV Core radius for extended sources
      real*8        Bextlike    ! *? 0.5-2keV Extension likelihood
      real*8        Bdetlike    ! ? 0.5-2keV Detection likelihood
      real*4        Boffaxis    ! (arcmin) ? 0.5-2keV Off-axis angle
      integer*4     BRAh        ! (h) *? 0.5-2keV Right ascension (J2000)
      integer*4     BRAm        ! (min) ? 0.5-2keV Right ascension (J2000)
      real*4        BRAs        ! (s) ? 0.5-2keV Right ascension (J2000)
      character*1   BDE_        ! 0.5-2keV Declination sign (J2000)
      integer*4     BDEd        ! (deg) ? 0.5-2keV Declination (J2000)
      integer*4     BDEm        ! (arcmin) ? 0.5-2keV Declination (J2000)
      real*4        BDEs        ! (arcsec) ? 0.5-2keV Declination (J2000)
      real*4        eBpos       ! (arcsec) *? Position error in 0.5-2keV band
      real*8        Bratemos    ! (ct/s) ? 0.5-2keV MOS count rate
      real*8        Bratepn     ! (ct/s) ? 0.5-2keV pn  count rate
      real*4        Bflux       ! (aW/m2) *? 0.5-2keV Flux in 0.5-2keV band
      integer*4     f_Bflux     ! *[0-2]? 0.5-2keV Flux difference flag
      integer*4     CDSeq       ! *? Identifier in 2-10keV band
      character*16  XLSSCD      ! ? Alternate name in 2-10keV band
*                                      (JHHMMSS.s+DDMMSS)
      real*4        CDcorerad   ! (arcsec) *? 2-10keV Core radius for extended sources
      real*8        CDextlike   ! *? 2-10keV Extension likelihood
      real*8        CDdetlike   ! *? 2-10keV Detection likelihood
      real*4        CDoffaxis   ! (arcmin) ? 2-10keV Off-axis angle
      integer*4     CDRAh       ! (h) *? 2-10keV Right ascension (J2000)
      integer*4     CDRAm       ! (min) ? 2-10keV Right ascension (J2000)
      real*4        CDRAs       ! (s) ? 2-10keV Right ascension (J2000)
      character*1   CDDE_       ! 2-10keV Declination sign (J2000)
      integer*4     CDDEd       ! (deg) ? 2-10keV Declination (J2000)
      integer*4     CDDEm       ! (arcmin) ? 2-10keV Declination (J2000)
      real*4        CDDEs       ! (arcsec) ? 2-10keV Declination (J2000)
      real*4        eCDpos      ! (arcsec) *? Position error in 2-10keV band
      real*8        CDratemos   ! (ct/s) ? 2-10keV MOS count rate
      real*8        CDratepn    ! (ct/s) ? 2-10keV pn  count rate
      real*4        CDflux      ! (aW/m2) *? 2-10keV Flux in 2-10keV band
      integer*4     f_CDflux    ! *[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,XLSS,RAh,RAm,RAs,DE_,DEd,DEm,DEs,BSeq,XLSSB,Bc1c2,
     +  Bcorerad,Bextlike,Bdetlike,Boffaxis,BRAh,BRAm,BRAs,BDE_,BDEd,
     +  BDEm,BDEs,eBpos,Bratemos,Bratepn,Bflux,f_Bflux,CDSeq,XLSSCD,
     +  CDcorerad,CDextlike,CDdetlike,CDoffaxis,CDRAh,CDRAm,CDRAs,
     +  CDDE_,CDDEd,CDDEm,CDDEs,eCDpos,CDratemos,CDratepn,CDflux,
     +  f_CDflux
        if(ar__(53:56) .EQ. '') BSeq = iNULL__
        if(ar__(81:81) .EQ. '') Bc1c2 = iNULL__
        if(ar__(83:88) .EQ. '') Bcorerad = rNULL__
        if(ar__(90:101) .EQ. '') Bextlike = rNULL__
        if(ar__(103:114) .EQ. '') Bdetlike = rNULL__
        if(ar__(116:120) .EQ. '') Boffaxis = rNULL__
        if(ar__(122:123) .EQ. '') BRAh = iNULL__
        if(ar__(125:126) .EQ. '') BRAm = iNULL__
        if(ar__(128:131) .EQ. '') BRAs = rNULL__
        if(ar__(134:135) .EQ. '') BDEd = iNULL__
        if(ar__(137:138) .EQ. '') BDEm = iNULL__
        if(ar__(140:143) .EQ. '') BDEs = rNULL__
        if(ar__(145:147) .EQ. '') eBpos = rNULL__
        if(ar__(149:155) .EQ. '') Bratemos = rNULL__
        if(ar__(157:163) .EQ. '') Bratepn = rNULL__
        if(ar__(165:169) .EQ. '') Bflux = rNULL__
        if(ar__(171:171) .EQ. '') f_Bflux = iNULL__
        if(ar__(174:177) .EQ. '') CDSeq = iNULL__
        if(ar__(203:208) .EQ. '') CDcorerad = rNULL__
        if(ar__(210:221) .EQ. '') CDextlike = rNULL__
        if(ar__(223:234) .EQ. '') CDdetlike = rNULL__
        if(ar__(236:240) .EQ. '') CDoffaxis = rNULL__
        if(ar__(242:243) .EQ. '') CDRAh = iNULL__
        if(ar__(245:246) .EQ. '') CDRAm = iNULL__
        if(ar__(248:251) .EQ. '') CDRAs = rNULL__
        if(ar__(254:255) .EQ. '') CDDEd = iNULL__
        if(ar__(257:258) .EQ. '') CDDEm = iNULL__
        if(ar__(260:263) .EQ. '') CDDEs = rNULL__
        if(ar__(265:267) .EQ. '') eCDpos = rNULL__
        if(ar__(269:275) .EQ. '') CDratemos = rNULL__
        if(ar__(277:283) .EQ. '') CDratepn = rNULL__
        if(ar__(285:289) .EQ. '') CDflux = rNULL__
        if(ar__(291:291) .EQ. '') f_CDflux = iNULL__
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  XSeq,XLSS,RAh,RAm,RAs,DE_,DEd,DEm,DEs,BSeq,XLSSB,Bc1c2,
     +  Bcorerad,Bextlike,Bdetlike,Boffaxis,BRAh,BRAm,BRAs,BDE_,BDEd,
     +  BDEm,BDEs,eBpos,Bratemos,Bratepn,Bflux,f_Bflux,CDSeq,XLSSCD,
     +  CDcorerad,CDextlike,CDdetlike,CDoffaxis,CDRAh,CDRAm,CDRAs,
     +  CDDE_,CDDEd,CDDEm,CDDEs,eCDpos,CDratemos,CDratepn,CDflux,
     +  f_CDflux
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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