Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/694/425 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.5, on 2013-May-22
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__=-1.e37) ! NULL real number
parameter (iNULL__=-2147483647) ! NULL int number
C=============================================================================
Cat. J/ApJ/694/425 A Chandra X-ray observation of L1251B (Simon, 2009)
*================================================================================
*A Chandra X-ray observation of L1251B.
* Simon T.
* <Astrophys. J., 694, 425-437 (2009)>
* =2009ApJ...694..425S
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! X-ray detections in L1251B
integer*4 nr__
parameter (nr__=43) ! Number of records
character*136 ar__ ! Full-size record
real*8 RA_ ! (deg) Right Ascension J2000
real*8 Dec ! (deg) Declination J2000
integer*4 CXO ! CXO source number (<[S2009b] CXO NN> in Simbad)
integer*4 RAh ! (h) Hour of right ascension (J2000)
integer*4 RAm ! (min) Minute of right ascension (J2000)
real*4 RAs ! (s) Second of right ascension (J2000)
character*1 DE_ ! Declination sign (J2000)
integer*4 DEd ! (deg) Degree of declination (J2000)
integer*4 DEm ! (arcmin) Arcminute of declination (J2000)
real*4 DEs ! (arcsec) Arcsecond of declination (J2000)
real*4 theta ! (arcmin) Off-axis angle (1)
character*24 OName ! Identification(s)
integer*4 v_S2006_ ! ? Corresponding XMM source number from Table 1
* of Paper I (Simon T., 2006AJ....131..501S)
real*4 off ! (arcsec) ? Angular offset between the position of each
* Chandra X-ray source and its XMM counterpart
real*4 Rad ! (arcsec) Radius of extraction cell (2)
real*4 Texp ! (ks) Effective exposure time (3)
real*4 CR1 ! (ct/ks) ? Background-corrected source count rate in
* the (0.3-10.0)keV energy band on August 10 (4)
real*4 e_CR1 ! (ct/ks) ? CR1 uncertainty
character*1 f_CR1 ! [h] Source detected in combined observation (5)
real*4 CR2 ! (ct/ks) ? Background-corrected source count rate in
* the (0.3-10.0)keV energy band on August 11 (4)
real*4 e_CR2 ! (ct/ks) ? CR2 uncertainty
character*17 v2MASS ! 2MASS identification (JHHMMSSss+DDMMSSs)
character*1 f_2MASS ! [i] large offset from X-ray (6)
real*4 Ksmag ! (mag) ? 2MASS Ks-band magnitude (7)
character*1 l_J_H ! Limit flag on J-H
real*4 J_H ! (mag) ? 2MASS J-H color index (7)
real*4 H_Ks ! (mag) ? 2MASS H-Ks color index (7)
*Note (1): From the aim point of the observation (J223839.42+751130.8).
*Note (2): Radius of extraction cell corresponding to 90% encircled energy
* fraction (EEF) in the PSF at the location of the source on the ACIS
* array.
*Note (3): Effective exposure time for each subexposure based on exposure maps
* computed for an energy of 1.5keV, which account for the change in
* camera sensitivity across the field of view. The effective exposure
* time is used to compute the source count rate.
*Note (4): Corrected to 100% encircled energy fraction. Background counts were
* typically measured through an annular aperture centered on the source,
* having inner and outer radii equal to four and eight times the 90% EEF
* radius, respectively. In a few cases, the background was determined
* from an adjacent circular extraction cell with a radius equal to eight
* times the size of the 90% EEF radius. The cited errors are statistical
* only. The count rates in the two subexposures were significantly
* different at the >=5{sigma} level for the following sources:
* 7, 8, 12, 19, 26, 32, and 41.
*Note (5): h = Source formally detected at >=3{sigma} level in the combined
* observation only. Count rate determined from the merged data set.
*Note (6): i = Large offset from X-ray position. See Section 4.1 and Table 4.
*Note (7): Broadband photometry converted to CIT system using the transformations
* given by Carpenter (2001).
C=============================================================================
C Loading file 'table2.dat' ! X-ray detections in L1251B
C Format for file interpretation
1 format(
+ I2,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F3.1,1X,A24,
+ I2,1X,F4.2,1X,F4.2,1X,F5.2,1X,F5.2,1X,F4.2,A1,1X,F5.2,1X,F4.2,
+ 1X,A17,1X,A1,1X,F6.3,1X,A1,F5.3,1X,F5.3)
C Effective file loading
open(unit=1,file='table2.dat', status='old')
write(6,*) '....Loading file: table2.dat'
do i__=1,43
read(1,'(A136)')ar__
read(ar__,1)
+ CXO,RAh,RAm,RAs,DE_,DEd,DEm,DEs,theta,OName,v_S2006_,off,Rad,
+ Texp,CR1,e_CR1,f_CR1,CR2,e_CR2,v2MASS,f_2MASS,Ksmag,l_J_H,J_H,
+ H_Ks
if(ar__(56:57) .EQ. '') v_S2006_ = iNULL__
if(ar__(59:62) .EQ. '') off = rNULL__
if(ar__(75:79) .EQ. '') CR1 = rNULL__
if(ar__(81:84) .EQ. '') e_CR1 = rNULL__
if(ar__(87:91) .EQ. '') CR2 = rNULL__
if(ar__(93:96) .EQ. '') e_CR2 = rNULL__
if(ar__(118:123) .EQ. '') Ksmag = rNULL__
if(ar__(126:130) .EQ. '') J_H = rNULL__
if(ar__(132:136) .EQ. '') H_Ks = rNULL__
c Derive coordinates RA_ and Dec from input data
c (RA_ and Dec are set to rNULL_ when unknown)
RA_ = RAh
if(RAh .GE. 0) RA_=RAh*15.
if(RAm .GE. 0) RA_=RA_+RAm/4.
if(RAs .GE. 0) RA_=RA_+RAs/240.
Dec = DEd
if(DEm .GE. 0) Dec=Dec+DEm/60.
if(DEs .GE. 0) Dec=Dec+DEs/3600.
if(DE_.EQ.'-'.AND.Dec.GE.0) Dec=-Dec
c ..............Just test output...........
write(6,1)
+ CXO,RAh,RAm,RAs,DE_,DEd,DEm,DEs,theta,OName,v_S2006_,off,Rad,
+ Texp,CR1,e_CR1,f_CR1,CR2,e_CR2,v2MASS,f_2MASS,Ksmag,l_J_H,J_H,
+ H_Ks
write(6,'(6H Pos: 2F8.4)') RA_,Dec
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end