Introduction to ChaRT Data Files
OverviewLast Update: 16 Feb 2005 - reviewed for CIAO 3.3: no changes Synopsis: After running ChaRT, you will be sent an email pointing to the directory on the FTP server where you can download a compressed tarfile containing the results of the run. This thread illustrates how to retrieve, unpack, and view the output data. The data used here were created by running ChaRT with the following parameters: theta = 5.949 arcmin phi = 197.74 degrees density = 2 energy = 1.7 keV seed = 96969267 |
Contents
- Email from ChaRT
- Download and Unpack the Tarfile
- Columns and Header Keywords
- Examining the PSF data
- Summary
- History
Email from ChaRT
Once your job has finished, ChaRT will send you an email which looks similar to this:
Your job has completed. You may retrieve your files from our anonymous ftp data server, where they will be stored for no more then 2 days. Pertinent information is listed below. Thank you. Host: cda.cfa.harvard.edu Username: anonymous Password: chartusr@cfa.harvard.edu Directory: /pub/traceftp Filename: chartusr-20060216-151627.tar.gz File size (approx, untarred, [MiB]): 20 URL: ftp://cda.harvard.edu/pub/traceftp/chartusr-20060216-151627.tar.gz Job Parameters: Name = ChaRT User Email = chartusr@cfa.harvard.edu Random Seed = 96969267 Source 1 Coord Sys = Theta/Phi Theta [arcmin] = 5.949 Phi [degree] = 197.74 Energies [keV] = 1.7 Density = 2
As well as giving the location of the tarfile, the email lists the parameters used to create the PSF.
Download and Unpack the Tarfile
The name of the tarfile (chartusr-20060216-151627.tar.gz) is created by taking the first eight characters of the email address (chartusr@cfa.harvard.edu) and adding the date (20060216) and the time the data was created (151627). There are two simple ways to retrieve the tarfile from the server:
-
Paste the URL from the email (ftp://cda.harvard.edu/pub/traceftp/chartusr-20060216-151627.tar.gz) into your web browser and a "Save As..." box should be launched.
-
From the command line, it is possible to use wget (most users have this tool installed on the system):
unix% wget ftp://cda.harvard.edu/pub/traceftp/chartusr-20060216-151627.tar.gz
or to FTP to cda.harvard.edu:
unix% ftp cda.harvard.edu Connected to cda. 220 cda FTP server (Version wu-2.6.1(1) Mon Aug 7 15:20:43 EDT 2000) ready. Name (cda.harvard.edu:egalle): anonymous 331 Guest login ok, send your complete e-mail address as password. Password: 230- 230- Welcome to the FTP server at the CXC Science Center 230- (output omitted) 230 Guest login ok, access restrictions apply. ftp> cd /pub/traceftp 250 CWD command successful. ftp> get chartusr-20060216-151627.tar.gz 200 PORT command successful. 150 Opening ASCII mode data connection for chartusr-20060216-151627.tar.gz (17837826 bytes). 226 Transfer complete. local: chartusr-20060216-151627.tar.gz remote: chartusr-20060216-151627.tar.gz 17894667 bytes received in 17 seconds (1054.67 Kbytes/s) ftp> quit
To unpack the compressed tarfile:
unix% gunzip -c chartusr-20060216-151627.tar.gz | tar xf - unix% ls -F source1/ unix% ls source1/ HRMA_theta5.949_phi197.7_en1.7_d2.fits
The tarfile contains one directory per source, called source<n>. This sample dataset has only one source.
Columns and Header Keywords
There are many columns in the output rayfile:
unix% cd source1 unix% dmlist HRMA_theta5.949_phi197.7_en1.7_d2.fits cols -------------------------------------------------------------------------------- Columns for Table Block PSFRAYS -------------------------------------------------------------------------------- ColNo Name Unit Type Range 1 RT_x mm Real8 -Inf:+Inf label for field 1 2 RT_y mm Real8 -320.4703066851: 335.4956411145 label for field 2 3 RT_z mm Real8 -436.7671803184: 294.1401142378 label for field 3 4 RT_COSx NULL Real8 -Inf:+Inf label for field 4 5 RT_COSy NULL Real8 -0.07262875472693: 0.06846542022639 label for field 5 6 RT_COSz NULL Real8 -0.07111031628489: 0.06862719795309 label for field 6 7 RT_KEV keV Real8 1.70: 1.70 label for field 7 8 RT_WGHT NULL Real8 0.10881450363638: 0.92601349072257 label for field 8 9 RT_ID NULL UInt4 1:236042 label for field 9 10 rt_graze radians Real8 0.00362809815137: 0.04633770245340 label for field 10 11 rt_srfms none UInt4 0:2 label for field 11 12 rt_normx none Real8 -0.99925106411291: 0.99926543830483 label for field 12 13 rt_normy none Real8 -0.99933862432843: 0.99932014386197 label for field 13 14 rt_normz none Real8 0.00783637594585: 0.04506851436049 label for field 14 15 rt_time sec Real8 0.0003458911558: 200.6024336395 label for field 15 ...
-
RT_x, RT_y, RT_z: ray position in telescope coordinates [mm]
-
RT_COSx, RT_COSy, RT_COSz: cosine of the ray direction
-
RT_KEV: energy of the ray [keV]
-
RT_WGHT: fractional probability that this ray will reach the focal plane
-
RT_ID: ray id
-
rt_graze: grazing angle at point of last reflection from an optic [radians]
-
rt_srfms: code indicating which surfaces had been missed
-
rt_normx, rt_normy, rt_normz: surface normal at point of last reflection from an optic
-
rt_time: arrival time of ray at entrance of telescope [s]. The first ray arrives at time zero.
There are also some header keywords that should be highlighted; to view the complete header, use:
unix% dmlist HRMA_theta5.949_phi197.7_en1.7_d2.fits header
The ChaRT input parameters used to create the PSF are written as keywords:
unix% dmlist HRMA_theta5.949_phi197.7_en1.7_d2.fits header | egrep 'CREATOR|SRC_|CONFFILE|PSFSEED1' 0021 CREATOR ChaRT v12:44:00-2003/12/09 String 0027 SRC_THET 5.9490 [arcmin] Real8 input THETA 0028 SRC_PHI 197.740 [degrees] Real8 input PHI 0029 SRC_E 1.70 [keV] Real8 Energy used for generation 0030 SRC_DENS 2 Int4 input DENSITY 0042 CONFFILE orbit_XRCF+tilts_04 String HRMA config. file 0044 PSFSEED1 96969267 Int4 Primary random seed for saosac
The CONFFILE keyword lists the name of the raytrace configuration file used in the simulation. If a spectral model is used to create the PSF, different "SRC_" keywords are added to the header to record the filename and exposure time:
unix% dmlist HRMA_theta5.949_phi197.7_ensource_flux_chart.dat_exp15.fits \
header | egrep 'SRC_'
0027 SRC_THET 5.9490 [arcmin] input THETA
0028 SRC_PHI 197.740 [degrees] input PHI
0029 SRC_SPEC source_flux_chart.dat User supplied spectrum file
0030 SRC_EXPT 15 [ksec] input EXPOSURE TIME
Examining the PSF data
HRMA_theta5.949_phi197.7_en1.7_d2.fits is a FITS file with the data stored in the PSFRAYS block of the file. Using dmlist shows that this file contains approximately 192,000 rays:
unix% dmlist HRMA_theta5.949_phi197.7_en1.7_d2.fits blocks
--------------------------------------------------------------------------------
Dataset: HRMA_theta5.949_phi197.7_en1.7_d2.fits
--------------------------------------------------------------------------------
Block Name Type Dimensions
--------------------------------------------------------------------------------
Block 1: PRIMARY Null
Block 2: PSFRAYS Table 15 cols x 191683 rows
The total counts in the PSF image is also recorded in the TOTCTS header keyword:
unix% dmkeypar HRMA_theta5.949_phi197.7_en1.7_d2.fits totcts echo+ 191683.0
Summary
The output from ChaRT (i.e. HRMA_theta5.949_phi197.7_en1.7_d2.fits) cannot be used directly in your analysis. It first needs to be projected onto the detector and have the detector response applied to it to create a simulated event file. The Using MARX to Create an Event File thread describes how to do this.
History
| 27 Jun 2003 | original version, updated for CIAO 3.0: layout |
| 13 Jul 2004 | created Columns and Header Keywords section |
| 16 Feb 2005 | reviewed for CIAO 3.3: no changes |
