Pointlike Tutorial: Prerequisite Steps
Assumptions
For the purposes of this tutorial, it is assumed that you are:
- running on a SLAC Central Linux RHEL5-64 machine in a bash shell from within your data directory.
- using ScienceTools-09-23-02, or higher.
Caveats: As of 05/23/2011, when this was written, ScienceTools-09-23-01 was the highest release version and did not incorporate the latest changes to pointlike. Therefore, it was only with the then LATEST version of the ScienceTools that you could:
- avoid a problem with CALDB, the workaround of which is noticed in the
- have access to the FTOOLS and the GLAST_EXT libraries.
Prerequisite Procedures
- Get the data.
- Run gtselect.
- Select GTIs (using gtmktime).
Note: Steps 1 and 2, enable you to eliminate photons coming from the Earth limb by applying a zenith angle cut of 105o; gtmktime also updates the Good Time Intervals (GTIs) to match the FT2 data.
For a more detailed discussion, see Agreed procedures for data preparation: Removing Earth's Albedo and Correcting GTIs.
- Create an exposure cube (using gtltcube).
Note: gtltcube outputs an expCube.fits file, a HealPix table covering the full sky of the integrated livetime as a function.
- Create a source model file.
1. Get the data.
- Setup SLAC Central Linux.
- Get 6 months of data using the new AstroServer and copy the data to your data subdirectory.
Note: For the purposes of this tutorial, we used the same FT1 and FT2 files that are used in the pyLikelihood tutorials.
- Job Name — enter a meaningful name for your job (e.g., pyLike_6mosData_binned)
- Event Sample — select p6_public_v2
- Energy Range — Min: 100 Max:300000
- Time Range — Min: 243756000 Max: 259308000
- Position — RA: 343.6566 DEC: 16.1494
- Radius — 15.0 degrees
- Event Classes — Diffuse
- Output — FT2 (fits).
- Output — FT1 (fits) FT2 (fits)
- Debug Mode — False
- User Comment — optional
- Click on the Proceed button
If you wish to use the same files that are used in this tutorial, you can download them here (note that these are the same data files used for the pyLikelihood Binned Analysis):
http://www.slac.stanford.edu/exp/glast/workbook/sciToolsData/pointlike_tutorial/
Available files include:
- Run gtselect as follows:
bash-3.2$ gtselect
Input FT1 file[pyLike_6mosData_binned-ft1.fits]
Output FT1 file[3C454-ft1.fits]
RA for new search center (degrees) (0:360) [180] 343.6566
Dec for new search center (degrees) (-90:90) [0] 16.1494
radius of new search region (degrees) (0:180) [15]
start time (MET in s) (0:) [243756000]
end time (MET in s) (0:) [259308000]
lower energy limit (MeV) (0:) [100]
upper energy limit (MeV) (0:) [300000]
maximum zenith angle value (degrees) (0:180) [105]
Done.
bash-3.2$ |
Note: Since we obtained our data from the Astro Data server and are only running gtselect to filter out any data greater than 105o, the maximum zenith angle, we could simply enter: Input FT1 file; Output FT1 file; radius of the new search region [180]; and maximum zenith angle value [105].
- Verify that the output file is now in your work directory.
3. Select GTIs
(using gtmktime) |
|
bash-3.2$ $ gtmktime
Spacecraft data file[pyLike_6mosData_binned-ft2-30s.fits]
Filter expression[(DATA_QUAL==1 && LAT_CONFIG==1 && ABS(ROCK_ANGLE)<52)]
Apply ROI-based zenith angle cut[yes]
Event data file[3C454-ft1.fits]
Output event file name[3C454_GTI.fits] |
Tip: Use gtvcut if you wish to view the Data SubSpace Keywords. (See gtvcut Help file; also see Data SubSpace Keywords.
4. Create Exposure Hypercube
(using gtltcube) |
|
- Run gtltcube.
bash-3.2$ gtltcube
Event data file[3C454_GTI.fits]
Spacecraft data file[pyLike_6mosData_binned-ft2-30s.fits]
Output file[3C454-expCube.fits]
Step size in cos(theta) (0.:1.) [0.025]
Pixel size (degrees)[1]
Working on file pyLike_6mosData_binned-ft2-30s.fits
.....................!
bash-3.2$ |
- Verify that the output file is now in your work data subdirectory.
5. Create a Source Model File
- Get extragalactic diffuse file (e.g., isotropic_iem_v02.txt) and place it in your data subdirectory.
- Get galactic diffuse file (e.g., gll_iem_v02.fit) and place it in your data subdirectory.
- Create source model file (see example_3C454-srcModel.xml) and place it in your data subdirectory.
Owned by:Joshua Lande |
|
Last updated by: Chuck Patterson
05/24/2011 |
|
|