Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/687/1019 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-19
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/ApJ/687/1019 Chandra X-ray observations of M71 (Elsner+, 2008)
*================================================================================
*Chandra X-ray observatory observations of the globular cluster M71.
* Elsner R.F., Heinke C.O., Cohn H.N., Lugger P.M., Maxwell J.E.,
* Stairs I.H., Ransom S.M., Hessels J.W.T., Becker W., Huang R.H.H.,
* Edmonds P.D., Grindlay J.E., Bogdanov S., Ghosh K., Weisskopf M.C.
* <Astrophys. J., 687, 1019-1034 (2008)>
* =2008ApJ...687.1019E
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Chandra X-ray sources detected with r_M71_<=2r_h_
integer*4 nr__
parameter (nr__=68) ! Number of records
character*119 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)
character*3 rl (nr__) ! Half-mass radius (r_h_) limits (1)
character*4 ID (nr__) ! Source identification (<[EHC2008] [s/i]sNN> in
* Simbad)
character*1 f_ID (nr__) ! [j] Flag for s55 (in table 1) (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__) ! Declination sign (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 re (nr__) ! (arcsec) Radius of the detect cell for collecting X-ray
* counts
real*4 Cx (nr__) ! Number of 0.3-8.0keV source counts collected
* in the detect cell
real*4 SigX (nr__) ! (arcsec) Radius enclosing the true source position
* with 68% confidence (3)
character*5 Chip (nr__) ! (arcmin) CCD on which the X-ray source appears (only
* for table 2) (4)
real*4 rM71 (nr__) ! (arcmin) ? Radius from the nominal center of the
* cluster (J19:53:46.1+18:46:42; only for table 1)
real*4 off (nr__) ! (arcsec) ? Radial offset of candidate counterparts (5)
real*4 Jmag (nr__) ! (mag) ? J magnitude of a candidate counterpart
* found in the 2MASS catalog (5)
real*4 R1mag (nr__) ! (mag) ? R1 magnitude of a candidate counterpart
* found in the USNO-B1.0 catalog (5)
real*4 R2mag (nr__) ! (mag) ? R2 magnitude of a candidate counterpart
* found in the USNO-B1.0 catalog (5)
real*4 Vmag (nr__) ! (mag) ? VT magnitude of a candidate counterpart
* found in the Tycho-2 catalog (5)
real*8 Prob (nr__) ! (%) ? Probability of chance coincidence (5)(6)
character*17 Com (nr__) ! Comment (counterpart or location)
*Note (1): Limits as follows:
* rh = sources with r_M71_<=r_h_;
* 2rh = sources with r_h_<r_M71_<=2r_h_;
* t2 = sources with 2r_h_<=r_M71_ (table 2)
*Note (2):
* j = This source is on the S2 front-side CCD. All other sources in this
* table are on the S3 back-side CCD.
*Note (3): The corresponding radii for inclusion with 95% or 99% confidence are
* found by multiplying this column by 1.62 or 2.01, respectively.
*Note (4): In a few cases, the source is dithered across the gap between CCDs.
*Note (5): Found by searching the HEASARC 2MASS (see
* http://www.ipac.caltech.edu/2mass/; Cat. II/246), USNO-B1.0
* (Monet et al. 2003; Cat. I/284), and Tycho-2 (Hog et al. 2000,
* Cat. I/259) catalogs, requiring that the candidate counterpart lie
* within the 99% confidence radius of a Chandra source.
* There are 6414 and 3376 2MASS sources, 15324 and 9196 USNO sources,
* and 7 and 9 Tycho sources appearing within the S2-S3-S4 and I2-I3
* boundaries shown in Figures 3 and 4, respectively.
* If blank, no candidate counterpart was found in these catalogs. (See
* section 6.1 for further details).
*Note (6): The percent probability of a chance coincidence is calculated from:
* P_coinc_=N(<m){pi}r^2^_99_/A_search_ where N(<m) is the number of
* sources in the corresponding catalog inside the search area,
* A_search_, with a magnitude smaller than that of the candidate
* counterpart, and r_99_ is the radius enclosing the X-ray source
* location with 99% confidence.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Chandra X-ray sources detected with 2r_h_>=r_M71_
integer*4 nr__1
parameter (nr__1=97) ! Number of records
character*119 ar__1 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg_1 (nr__1) ! (deg) Right Ascension J2000
real*8 DEdeg_1 (nr__1) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*3 rl_1 (nr__1) ! Half-mass radius (r_h_) limits (1)
character*4 ID_1 (nr__1) ! Source identification (<[EHC2008] [s/i]sNN> in
* Simbad)
character*1 f_ID_1 (nr__1) ! [j] Flag for s55 (in table 1) (2)
integer*4 RAh_1 (nr__1) ! (h) Hour of right ascension (J2000)
integer*4 RAm_1 (nr__1) ! (min) Minute of right ascension (J2000)
real*4 RAs_1 (nr__1) ! (s) Second of right ascension (J2000)
character*1 DE__1 (nr__1) ! Declination sign (J2000)
integer*4 DEd_1 (nr__1) ! (deg) Degree of declination (J2000)
integer*4 DEm_1 (nr__1) ! (arcmin) Arcminute of declination (J2000)
real*4 DEs_1 (nr__1) ! (arcsec) Arcsecond of declination (J2000)
real*4 re_1 (nr__1) ! (arcsec) Radius of the detect cell for collecting X-ray
* counts
real*4 Cx_1 (nr__1) ! Number of 0.3-8.0keV source counts collected
* in the detect cell
real*4 SigX_1 (nr__1) ! (arcsec) Radius enclosing the true source position
* with 68% confidence (3)
character*5 Chip_1 (nr__1) ! (arcmin) CCD on which the X-ray source appears (only
* for table 2) (4)
real*4 rM71_1 (nr__1) ! (arcmin) ? Radius from the nominal center of the
* cluster (J19:53:46.1+18:46:42; only for table 1)
real*4 off_1 (nr__1) ! (arcsec) ? Radial offset of candidate counterparts (5)
real*4 Jmag_1 (nr__1) ! (mag) ? J magnitude of a candidate counterpart
* found in the 2MASS catalog (5)
real*4 R1mag_1 (nr__1) ! (mag) ? R1 magnitude of a candidate counterpart
* found in the USNO-B1.0 catalog (5)
real*4 R2mag_1 (nr__1) ! (mag) ? R2 magnitude of a candidate counterpart
* found in the USNO-B1.0 catalog (5)
real*4 Vmag_1 (nr__1) ! (mag) ? VT magnitude of a candidate counterpart
* found in the Tycho-2 catalog (5)
real*8 Prob_1 (nr__1) ! (%) ? Probability of chance coincidence (5)(6)
character*17 Com_1 (nr__1) ! Comment (counterpart or location)
*Note (1): Limits as follows:
* rh = sources with r_M71_<=r_h_;
* 2rh = sources with r_h_<r_M71_<=2r_h_;
* t2 = sources with 2r_h_<=r_M71_ (table 2)
*Note (2):
* j = This source is on the S2 front-side CCD. All other sources in this
* table are on the S3 back-side CCD.
*Note (3): The corresponding radii for inclusion with 95% or 99% confidence are
* found by multiplying this column by 1.62 or 2.01, respectively.
*Note (4): In a few cases, the source is dithered across the gap between CCDs.
*Note (5): Found by searching the HEASARC 2MASS (see
* http://www.ipac.caltech.edu/2mass/; Cat. II/246), USNO-B1.0
* (Monet et al. 2003; Cat. I/284), and Tycho-2 (Hog et al. 2000,
* Cat. I/259) catalogs, requiring that the candidate counterpart lie
* within the 99% confidence radius of a Chandra source.
* There are 6414 and 3376 2MASS sources, 15324 and 9196 USNO sources,
* and 7 and 9 Tycho sources appearing within the S2-S3-S4 and I2-I3
* boundaries shown in Figures 3 and 4, respectively.
* If blank, no candidate counterpart was found in these catalogs. (See
* section 6.1 for further details).
*Note (6): The percent probability of a chance coincidence is calculated from:
* P_coinc_=N(<m){pi}r^2^_99_/A_search_ where N(<m) is the number of
* sources in the corresponding catalog inside the search area,
* A_search_, with a magnitude smaller than that of the candidate
* counterpart, and r_99_ is the radius enclosing the X-ray source
* location with 99% confidence.
C=============================================================================
C Loading file 'table1.dat' ! Chandra X-ray sources detected with r_M71_<=2r_h_
C Format for file interpretation
1 format(
+ A3,1X,A4,A1,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,
+ F4.1,1X,F6.1,1X,F4.2,1X,A5,1X,F4.2,1X,F4.2,1X,F6.3,1X,F5.2,1X,
+ F4.1,1X,F6.3,1X,F7.4,1X,A17)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,68
read(1,'(A119)')ar__
read(ar__,1)
+ rl(i__),ID(i__),f_ID(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
+ DEd(i__),DEm(i__),DEs(i__),re(i__),Cx(i__),SigX(i__),
+ Chip(i__),rM71(i__),off(i__),Jmag(i__),R1mag(i__),R2mag(i__),
+ Vmag(i__),Prob(i__),Com(i__)
if(ar__(60:63) .EQ. '') rM71(i__) = rNULL__
if(ar__(65:68) .EQ. '') off(i__) = rNULL__
if(ar__(70:75) .EQ. '') Jmag(i__) = rNULL__
if(ar__(77:81) .EQ. '') R1mag(i__) = rNULL__
if(ar__(83:86) .EQ. '') R2mag(i__) = rNULL__
if(ar__(88:93) .EQ. '') Vmag(i__) = rNULL__
if(ar__(95:101) .EQ. '') Prob(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)
+ rl(i__),ID(i__),f_ID(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
+ DEd(i__),DEm(i__),DEs(i__),re(i__),Cx(i__),SigX(i__),
+ Chip(i__),rM71(i__),off(i__),Jmag(i__),R1mag(i__),R2mag(i__),
+ Vmag(i__),Prob(i__),Com(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 'table2.dat' ! Chandra X-ray sources detected with 2r_h_>=r_M71_
C Format for file interpretation
2 format(
+ A3,1X,A4,A1,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,
+ F4.1,1X,F6.1,1X,F4.2,1X,A5,1X,F4.2,1X,F4.2,1X,F6.3,1X,F5.2,1X,
+ F4.1,1X,F6.3,1X,F7.4,1X,A17)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,97
read(1,'(A119)')ar__1
read(ar__1,2)
+ rl_1(i__),ID_1(i__),f_ID_1(i__),RAh_1(i__),RAm_1(i__),
+ RAs_1(i__),DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),
+ re_1(i__),Cx_1(i__),SigX_1(i__),Chip_1(i__),rM71_1(i__),
+ off_1(i__),Jmag_1(i__),R1mag_1(i__),R2mag_1(i__),Vmag_1(i__),
+ Prob_1(i__),Com_1(i__)
if(ar__1(60:63) .EQ. '') rM71_1(i__) = rNULL__
if(ar__1(65:68) .EQ. '') off_1(i__) = rNULL__
if(ar__1(70:75) .EQ. '') Jmag_1(i__) = rNULL__
if(ar__1(77:81) .EQ. '') R1mag_1(i__) = rNULL__
if(ar__1(83:86) .EQ. '') R2mag_1(i__) = rNULL__
if(ar__1(88:93) .EQ. '') Vmag_1(i__) = rNULL__
if(ar__1(95:101) .EQ. '') Prob_1(i__) = rNULL__
RAdeg_1(i__) = rNULL__
DEdeg_1(i__) = rNULL__
c Derive coordinates RAdeg_1 and DEdeg_1 from input data
c (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
if(RAh_1(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c ..............Just test output...........
write(6,2)
+ rl_1(i__),ID_1(i__),f_ID_1(i__),RAh_1(i__),RAm_1(i__),
+ RAs_1(i__),DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),
+ re_1(i__),Cx_1(i__),SigX_1(i__),Chip_1(i__),rM71_1(i__),
+ off_1(i__),Jmag_1(i__),R1mag_1(i__),R2mag_1(i__),Vmag_1(i__),
+ Prob_1(i__),Com_1(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end