Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/687/1019 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 2024-Apr-20 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 ! (deg) Right Ascension J2000 real*8 DEdeg ! (deg) Declination J2000 C ---------------------------------- ! (position vector(s) in degrees) character*3 rl ! Half-mass radius (r_h_) limits (1) character*4 ID ! Source identification (<[EHC2008] [s/i]sNN> in * Simbad) character*1 f_ID ! [j] Flag for s55 (in table 1) (2) 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 re ! (arcsec) Radius of the detect cell for collecting X-ray * counts real*4 Cx ! Number of 0.3-8.0keV source counts collected * in the detect cell real*4 SigX ! (arcsec) Radius enclosing the true source position * with 68% confidence (3) character*5 Chip ! (arcmin) CCD on which the X-ray source appears (only * for table 2) (4) real*4 rM71 ! (arcmin) ? Radius from the nominal center of the * cluster (J19:53:46.1+18:46:42; only for table 1) real*4 off ! (arcsec) ? Radial offset of candidate counterparts (5) real*4 Jmag ! (mag) ? J magnitude of a candidate counterpart * found in the 2MASS catalog (5) real*4 R1mag ! (mag) ? R1 magnitude of a candidate counterpart * found in the USNO-B1.0 catalog (5) real*4 R2mag ! (mag) ? R2 magnitude of a candidate counterpart * found in the USNO-B1.0 catalog (5) real*4 Vmag ! (mag) ? VT magnitude of a candidate counterpart * found in the Tycho-2 catalog (5) real*8 Prob ! (%) ? Probability of chance coincidence (5)(6) character*17 Com ! 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 ! (deg) Right Ascension J2000 real*8 DEdeg_1 ! (deg) Declination J2000 C ---------------------------------- ! (position vector(s) in degrees) character*3 rl_1 ! Half-mass radius (r_h_) limits (1) character*4 ID_1 ! Source identification (<[EHC2008] [s/i]sNN> in * Simbad) character*1 f_ID_1 ! [j] Flag for s55 (in table 1) (2) integer*4 RAh_1 ! (h) Hour of right ascension (J2000) integer*4 RAm_1 ! (min) Minute of right ascension (J2000) real*4 RAs_1 ! (s) Second of right ascension (J2000) character*1 DE__1 ! Declination sign (J2000) integer*4 DEd_1 ! (deg) Degree of declination (J2000) integer*4 DEm_1 ! (arcmin) Arcminute of declination (J2000) real*4 DEs_1 ! (arcsec) Arcsecond of declination (J2000) real*4 re_1 ! (arcsec) Radius of the detect cell for collecting X-ray * counts real*4 Cx_1 ! Number of 0.3-8.0keV source counts collected * in the detect cell real*4 SigX_1 ! (arcsec) Radius enclosing the true source position * with 68% confidence (3) character*5 Chip_1 ! (arcmin) CCD on which the X-ray source appears (only * for table 2) (4) real*4 rM71_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 ! (arcsec) ? Radial offset of candidate counterparts (5) real*4 Jmag_1 ! (mag) ? J magnitude of a candidate counterpart * found in the 2MASS catalog (5) real*4 R1mag_1 ! (mag) ? R1 magnitude of a candidate counterpart * found in the USNO-B1.0 catalog (5) real*4 R2mag_1 ! (mag) ? R2 magnitude of a candidate counterpart * found in the USNO-B1.0 catalog (5) real*4 Vmag_1 ! (mag) ? VT magnitude of a candidate counterpart * found in the Tycho-2 catalog (5) real*8 Prob_1 ! (%) ? Probability of chance coincidence (5)(6) character*17 Com_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,ID,f_ID,RAh,RAm,RAs,DE_,DEd,DEm,DEs,re,Cx,SigX,Chip,rM71, + off,Jmag,R1mag,R2mag,Vmag,Prob,Com if(ar__(60:63) .EQ. '') rM71 = rNULL__ if(ar__(65:68) .EQ. '') off = rNULL__ if(ar__(70:75) .EQ. '') Jmag = rNULL__ if(ar__(77:81) .EQ. '') R1mag = rNULL__ if(ar__(83:86) .EQ. '') R2mag = rNULL__ if(ar__(88:93) .EQ. '') Vmag = rNULL__ if(ar__(95:101) .EQ. '') Prob = rNULL__ 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) + rl,ID,f_ID,RAh,RAm,RAs,DE_,DEd,DEm,DEs,re,Cx,SigX,Chip,rM71, + off,Jmag,R1mag,R2mag,Vmag,Prob,Com write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg 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,ID_1,f_ID_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1, + re_1,Cx_1,SigX_1,Chip_1,rM71_1,off_1,Jmag_1,R1mag_1,R2mag_1, + Vmag_1,Prob_1,Com_1 if(ar__1(60:63) .EQ. '') rM71_1 = rNULL__ if(ar__1(65:68) .EQ. '') off_1 = rNULL__ if(ar__1(70:75) .EQ. '') Jmag_1 = rNULL__ if(ar__1(77:81) .EQ. '') R1mag_1 = rNULL__ if(ar__1(83:86) .EQ. '') R2mag_1 = rNULL__ if(ar__1(88:93) .EQ. '') Vmag_1 = rNULL__ if(ar__1(95:101) .EQ. '') Prob_1 = rNULL__ RAdeg_1 = rNULL__ DEdeg_1 = 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 .GT. -180) RAdeg_1=RAh_1*15. if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4. if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240. if(DEd_1 .GE. 0) DEdeg_1=DEd_1 if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60. if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600. if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1 c ..............Just test output........... write(6,2) + rl_1,ID_1,f_ID_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1, + re_1,Cx_1,SigX_1,Chip_1,rM71_1,off_1,Jmag_1,R1mag_1,R2mag_1, + Vmag_1,Prob_1,Com_1 write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1 c .......End.of.Just test output........... end do close(1) C============================================================================= stop end