Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/128/1501 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-May-17
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/AJ/128/1501 CLASXS: X-ray catalog (Yang+, 2004)
*================================================================================
*The Chandra Large Area Synoptic X-ray Survey (CLASXS) of the
*Lockman Hole-Northwest: the X-ray catalog.
* Yang Y., Mushotzky R.F., Steffen A.T., Barger A.J., Cowie L.L.
* <Astron. J., 128, 1501-1523 (2004)>
* =2004AJ....128.1501Y
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Main Chandra Catalog: Basic Source Properties
integer*4 nr__
parameter (nr__=525) ! Number of records
character*127 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 CLASXS (nr__) ! Source identification number (1)
character*16 CXCCLASXS (nr__) ! Source name (2)
integer*4 RAh (nr__) ! (h) Hour of right ascension (J2000)
integer*4 RAm (nr__) ! (min) Minute of right ascension (J2000)
real*4 RAs (nr__) ! (s) Second of right ascension (J2000)
character*1 DE_ (nr__) ! Sign of the declination (J2000)
integer*4 DEd (nr__) ! (deg) Degree of declination (J2000)
integer*4 DEm (nr__) ! (arcmin) Arcminute of declination (J2000)
real*4 DEs (nr__) ! (arcsec) Arcsecond of declination (J2000)
real*4 e_RAs (nr__) ! (arcsec) Statistical error in RAs
real*4 e_DEs (nr__) ! (arcsec) Statistical error in DEs
character*1 l_Soft (nr__) ! Limit flag on Soft
real*4 Soft (nr__) ! (aW/m2) The 0.4-2.0keV band flux (3)
real*4 E_Soft (nr__) ! (aW/m2) ? The upper 1{sigma} Poisson error on
* Soft
real*4 e_Soft_1 (nr__) ! (aW/m2) ? The lower 1{sigma} Poisson error on
* Soft
character*1 l_Hard (nr__) ! Limit flag on Hard
real*8 Hard (nr__) ! (aW/m2) The 2.0-8.0keV band flux (3)
real*4 E_Hard (nr__) ! (aW/m2) ? The upper 1{sigma} Poisson error on
* Hard
real*4 e_Hard_1 (nr__) ! (aW/m2) ? The lower 1{sigma} Poisson error on
* Hard
character*1 l_Full (nr__) ! Limit flag on Full
real*4 Full (nr__) ! (aW/m2) The 0.4-8.0keV band flux (3)
real*4 E_Full (nr__) ! (aW/m2) ? The upper 1{sigma} Poisson error on
* Full
real*4 e_Full_1 (nr__) ! (aW/m2) ? The lower 1{sigma} Poisson error on
* Full
character*1 l_HR (nr__) ! Limit flag on HR
real*8 HR (nr__) ! Hardness ratio (4)
*Note (1): The numbers correspond to ascending order of right ascension.
*Note (2): Source name follows the IAU convention and should read CXCCLASXS,
* plus the name given in the table.
*Note (3): In units of 10^-15^ergs/cm^2^/s. If a source is detected
* in multiple observations, and if there is more than one observation in
* which the source effective area is more than 80% of the effective area
* at the aim point, then the mean flux is used; otherwise, the flux from
* the observation that has the largest effective area is used. The
* errors quoted are the 1{sigma} upper and lower Poisson errors, using
* the approximations from Gehrels (1986ApJ...303..336G). For any source
* detected in one band but with a very weak signal in another, the
* background- subtracted flux could be negative. In this case, only the
* upper Poisson error is quoted.
*Note (4): HR=C_Hard_/C_Soft_, where C_Hard_ and C_Soft_ are the count rates
* in the hard and soft bands.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Main Chandra Catalog: Additional Source
Properties
integer*4 nr__1
parameter (nr__1=525) ! Number of records
character*104 ar__1 ! Full-size record
integer*4 CLASXS_1 (nr__1) ! Source identification number (1)
character*1 l_Nsoft (nr__1) ! Limit flag on Nsoft
real*8 Nsoft (nr__1) ! (ct) Net 0.4-2.0keV band counts (2)
real*4 E_Nsoft (nr__1) ! (ct) ? The upper 1{sigma} Poisson error on Nsoft
real*4 e_Nsoft_1 (nr__1) ! (ct) ? The lower 1{sigma} Poisson error on Nsoft
character*1 l_Nhard (nr__1) ! Limit flag on Nhard
real*8 Nhard (nr__1) ! (ct) Net 2.0-8.0keV band counts (2)
real*4 E_Nhard (nr__1) ! (ct) ? The upper 1{sigma} Poisson error on Nhard
real*8 e_Nhard_1 (nr__1) ! (ct) ? The lower 1{sigma} Poisson error on Nhard
character*1 l_Nfull (nr__1) ! Limit flag on Nfull
real*4 Nfull (nr__1) ! (ct) Net 0.4-8.0keV band counts (2)
real*4 E_Nfull (nr__1) ! (ct) ? The upper 1{sigma} Poisson error on Nfull
real*4 e_Nfull_1 (nr__1) ! (ct) ? The lower 1{sigma} Poisson error on Nfull
real*4 Tsoft (nr__1) ! (s) Effective 0.4-2.0keV band exposure time
real*4 Thard (nr__1) ! (s) Effective 2.0-8.0keV band exposure time
real*4 Tfull (nr__1) ! (s) Effective 0.4-8.0keV band exposure time
integer*4 FNum (nr__1) ! LHNW field number where the source has the
* largest effective area
integer*4 Det (nr__1) ! The LHNW field detection numbers (3)
*Note (1): The numbers correspond to ascending order of right ascension.
*Note (2): If a source is detected in multiple observations, then the
* observation in which the source has the largest effective area is
* used. As in Table 2, for the sources with negative counts, only the
* upper limits are listed.
*Note (3): Each digit represents a field number of the Lockman Hole-NorthWest
C=============================================================================
C Loading file 'table2.dat' ! Main Chandra Catalog: Basic Source Properties
C Format for file interpretation
1 format(
+ I3,1X,A16,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F5.3,
+ 1X,F5.3,1X,A1,F6.3,1X,F5.3,1X,F4.2,1X,A1,F8.4,1X,F4.2,1X,F5.2,
+ 1X,A1,F6.2,1X,F5.2,1X,F5.2,1X,A1,1X,F7.3)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,525
read(1,'(A127)')ar__
read(ar__,1)
+ CLASXS(i__),CXCCLASXS(i__),RAh(i__),RAm(i__),RAs(i__),
+ DE_(i__),DEd(i__),DEm(i__),DEs(i__),e_RAs(i__),e_DEs(i__),
+ l_Soft(i__),Soft(i__),E_Soft(i__),e_Soft_1(i__),l_Hard(i__),
+ Hard(i__),E_Hard(i__),e_Hard_1(i__),l_Full(i__),Full(i__),
+ E_Full(i__),e_Full_1(i__),l_HR(i__),HR(i__)
if(ar__(66:70) .EQ. '') E_Soft(i__) = rNULL__
if(ar__(72:75) .EQ. '') e_Soft_1(i__) = rNULL__
if(ar__(87:90) .EQ. '') E_Hard(i__) = rNULL__
if(ar__(92:96) .EQ. '') e_Hard_1(i__) = rNULL__
if(ar__(106:110) .EQ. '') E_Full(i__) = rNULL__
if(ar__(112:116) .EQ. '') e_Full_1(i__) = rNULL__
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)
+ CLASXS(i__),CXCCLASXS(i__),RAh(i__),RAm(i__),RAs(i__),
+ DE_(i__),DEd(i__),DEm(i__),DEs(i__),e_RAs(i__),e_DEs(i__),
+ l_Soft(i__),Soft(i__),E_Soft(i__),e_Soft_1(i__),l_Hard(i__),
+ Hard(i__),E_Hard(i__),e_Hard_1(i__),l_Full(i__),Full(i__),
+ E_Full(i__),e_Full_1(i__),l_HR(i__),HR(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! Main Chandra Catalog: Additional Source
* Properties
C Format for file interpretation
2 format(
+ I3,1X,A1,F7.3,1X,F5.2,1X,F6.3,1X,A1,F8.4,1X,F5.2,1X,F7.4,1X,
+ A1,F6.2,1X,F5.2,1X,F5.2,1X,E8.3,1X,E8.3,1X,E8.3,1X,I1,1X,I4)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,525
read(1,'(A104)')ar__1
read(ar__1,2)
+ CLASXS_1(i__),l_Nsoft(i__),Nsoft(i__),E_Nsoft(i__),
+ e_Nsoft_1(i__),l_Nhard(i__),Nhard(i__),E_Nhard(i__),
+ e_Nhard_1(i__),l_Nfull(i__),Nfull(i__),E_Nfull(i__),
+ e_Nfull_1(i__),Tsoft(i__),Thard(i__),Tfull(i__),FNum(i__),
+ Det(i__)
if(ar__1(14:18) .EQ. '') E_Nsoft(i__) = rNULL__
if(ar__1(20:25) .EQ. '') e_Nsoft_1(i__) = rNULL__
if(ar__1(37:41) .EQ. '') E_Nhard(i__) = rNULL__
if(ar__1(43:49) .EQ. '') e_Nhard_1(i__) = rNULL__
if(ar__1(59:63) .EQ. '') E_Nfull(i__) = rNULL__
if(ar__1(65:69) .EQ. '') e_Nfull_1(i__) = rNULL__
c ..............Just test output...........
write(6,2)
+ CLASXS_1(i__),l_Nsoft(i__),Nsoft(i__),E_Nsoft(i__),
+ e_Nsoft_1(i__),l_Nhard(i__),Nhard(i__),E_Nhard(i__),
+ e_Nhard_1(i__),l_Nfull(i__),Nfull(i__),E_Nfull(i__),
+ e_Nfull_1(i__),Tsoft(i__),Thard(i__),Tfull(i__),FNum(i__),
+ Det(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end