Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/557/A81 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/A+A/557/A81 XMM-LSS field X-ray sources classification (Melnyk+, 2013)
*================================================================================
*Classification and environmental properties of X-ray selected point-like sources
*in the XMM-LSS field.
* Melnyk O., Plionis M., Elyiv A., Salvato M., Chiappetti L., Clerc N.,
* Gandhi P., Pierre M., Sadibekova T., Pospieszalska-Surdej A., Surdej J.
* <Astron. Astrophys. 557, A81 (2013)>
* =2013A&A...557A..81M
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Parameters of X-ray sources
integer*4 nr__
parameter (nr__=4206) ! Number of records
character*109 ar__ ! Full-size record
C J2000.0 position composed of: RAdeg DEdeg
character*16 v2XLSSd ! 2XLSSd name (JHHMMSS.s+DDMMSS)
character*1 m_2XLSSd ! [ab] Multiplicity index on 2XLSSd
real*8 RAdeg ! (deg) Optical counterpart Right ascension (J2000.0)
real*8 DEdeg ! (deg) Optical counterpart declination (J2000.0)
real*4 zsp ! ?=9.9999 spectroscopic redshift when available
integer*4 q_zsp ! Rank of the spectroscopic redshift (1)
character*6 r_zsp ! Source of the spectroscopic redshift,
* in refs.dat file (2)
character*7 spCl ! Spectral classification:
* AGN, GAL, GAL/AGN, QSO, QSO2, STAR
real*4 zph ! ?=9.9999 Photometric redshift
character*7 sedCl ! Classification according to SED (3)
integer*4 q_zph ! Rank of the photometric redshift (4)
real*4 HR ! [-1/1] Hardness ratio
real*4 LXsoft ! (10-7W) ?=0 X-ray luminosity in the soft band (erg/s)
real*4 LXhard ! (10-7W) ?=0 X-ray luminosity in the hard band (erg/s)
character*4 Cl ! Final classification of the source:
* AGN, GAL, QSO or STAR
integer*4 dog ! [0/1] 1 = DOG object (Dust Obscured Galaxy)
*Note (1): Spectroscopic redshift quality code:
* 1 = good quality (two or more lines in the spectra)
* 2 = acceptable redshifts (one clear line in the spectra)
* 3 = dubious redshift
* 9 = unknown or does not exist
*Note (2): The compilation of redshifts from 7-14 can be found here:
* http://www.nottingham.ac.uk/~ppzoa/UDS_redshifts_18Oct2010.fits
*Note (3): classification according to SED:
* GAL = normal galaxy templates of Ilbert et al. (2009ApJ...690.1236I)
* or templates #1-6 of Salvato et. al (2009ApJ...690.1250S)
* AGN/QSO = hybrid and AGN/QSO templates (#7-30) of
* Salvato et al. (2009ApJ...690.1250S)
*Note (4): Photometric redshift quality code:
* 1 = good quality photometric redshift: 7 or more bands, PDZ=100
* 2 = medium quality photometric redshift: 7 or more bands, PDZ<100
* 3 = dubious photometric redshift, 4-6 bands
* 4 = no redshift because of lack of photometry
* 5 = no redshift because the objects are invisible (very faint) or
* wrong associations (probably misclassified)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'refs.dat' ! References
integer*4 nr__1
parameter (nr__1=15) ! Number of records
character*149 ar__1 ! Full-size record
integer*4 Ref ! Reference number
character*19 BibCode ! BibCode
character*20 Aut ! Author's name
character*105 Com ! Comments
C=============================================================================
C Loading file 'table2.dat' ! Parameters of X-ray sources
C Format for file interpretation
1 format(
+ A16,A1,1X,F8.5,1X,F8.5,1X,F6.4,1X,I1,1X,A6,1X,A7,1X,F6.4,1X,
+ A7,1X,I1,1X,F5.2,1X,E9.3,1X,E9.3,1X,A4,1X,I1)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,4206
read(1,'(A109)')ar__
read(ar__,1)
+ v2XLSSd,m_2XLSSd,RAdeg,DEdeg,zsp,q_zsp,r_zsp,spCl,zph,sedCl,
+ q_zph,HR,LXsoft,LXhard,Cl,dog
c ..............Just test output...........
write(6,1)
+ v2XLSSd,m_2XLSSd,RAdeg,DEdeg,zsp,q_zsp,r_zsp,spCl,zph,sedCl,
+ q_zph,HR,LXsoft,LXhard,Cl,dog
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'refs.dat' ! References
C Format for file interpretation
2 format(I2,1X,A19,1X,A20,1X,A105)
C Effective file loading
open(unit=1,status='old',file=
+'refs.dat')
write(6,*) '....Loading file: refs.dat'
do i__=1,15
read(1,'(A149)')ar__1
read(ar__1,2)Ref,BibCode,Aut,Com
c ..............Just test output...........
write(6,2)Ref,BibCode,Aut,Com
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end