Introduction to the Standard Analysis of LAT Data
In general, it can be said that there are two types of analyses of LAT Data: a "point" source analysis (e.g., supernova remnant) and an "extended", diffuse source analysis (i.e., source is 2~3o across); for example, the Large Magellanic Cloud. Extended Sources. Extended sources are, at a minimum, many light years across and therefore cannot vary over the course of a year (i.e., cannot get brighter or dimmer). As a result, a standard analysis consists of performing a spectral analysis; no light curve is generated. Point Sources. In contrast, a standard analysis of point sources consists of performing both a spectral analysis and generating a light curve and, for the purposes of this discussion, we will focus on a standard point source analysis using the interactive LAT analysis tool (iLat), a python software wrapper currently installed and running on SLAC's linux batch farm and using the LAT software environment variables and tools. The core of the iLAT wrapper uses the Automated Science Processing (ASP) scripts; Science Tools; and FTOOLS. The matplotlib (pylab) module provides plotting capabilities, and the standalone script used by the catalog pipeline is used to perform likelihood analysis. Review TopicsBefore performing a point source analysis, you may wish to review some or all of the following topics:
LAT Data ProductsA LAT data analysis requires information about where the LAT was pointing and what was the observing efficiency. This data is provided by the event and spacecraft FITS files, respectively referred to as FT1 and FT2 files. Origin of the Photon DataThese two filetypes result from the processing of the data downlinked from the Fermi spacecraft (considered to be 'Level 0' data), and are therefore regarded as 'Level 1' data. LAT Level 1 processing involves reconstructing the interaction of the event in the LAT from the 'hits' in the various detectors, identifying the type of event (e.g., astrophysical photon), and characterizing the event's relevant physical parameters (e.g., direction, energy). The characterization of an event results in a set of ~200 parameter values that make up the merit ntuple. Since most events are not astrophysical photons, and most of the parameters describing an event are not relevant for data analysis, only a small set of parameters for the counts have been extracted from the event data to form the event file you will normally use. Note: The full event dataset will always be available for users who wish to examine the full set of parameters of the astrophysical counts, as well as many events that are not included in the event files. Photon ClassificationDuring reconstruction, the LAT team makes various cuts that will classify the events based on the probability that they result from photons, and on the quality of the reconstruction. The events will be separated into various event classes, and each class will be characterized by its own set of instrument response functions. Note that this reconstruction methodology and event class cuts have evolved, and they are likely to continue to do so. Event Classes. There are currently three event classes:
Contents of the Event (FT1) Files. For each astrophysical photon the event file contains the following information (the list does not include all possible quantities):
Contents of the Spacecraft (FT2) Files. Spacecraft files contain the following information for 30 second intervals (some intervals may be shorter):
Other Files. In analyzing the LAT data you will use other files, some of which the tools access without your intervention, some of which are intermediate products of the analysis:
FT1 & FT2 Files/FormatsStarting with the signals from different components of the LAT resulting from interactions of charged particles, the LAT team has reconstructed the paths of the electron-positron pair produced when a gamma ray interacts with a tungsten atom in the LAT, and then calculated the gamma ray's arrival time, incident energy, and origin. The resulting data are stored as FITS files. FITS File FormatThe Flexible Image Transport System (FITS) file format was originally developed to provide a standard image file format, but has been expanded to provide standards for many different file types used in astronomy. The files consist of a series of one or more 'Header and Data Units' (HDUs), each of which contains an ASCII header followed by a binary table. The ASCII header describes the contents of the binary table (e.g., the column names and units); thus, FITS files are largely self-defining. Headers have rows of text consisting of 8 character keywords followed first by the value of the keyword and then by a comment describing the keyword. The first ('primary') HDU is reserved for images, and often has no binary table and only a simple header (called the primary header) identifying the file (e.g., name, date of creation, mission). Subsequent HDUs are called 'extensions', which tend to contain copious information pertaining to that extension. There are standard FITS file formats; for example, PHA for a binned spectrum. These standard file formats have required extensions, and required keywords in the headers of these extensions. Similarly, there are standard extensions (with standard keywords)—such as EBOUNDS for storing an energy grid—that can be used in mission-specific file formats. Note: Fermi FITS files are defined in the Science Data Products File Format Document (GLAST-GS-DOC-0001 in the Fermi ground system document system) and can be found in the project's Science Data Products File Format Document. FTOOLSFTOOLS (fcopy, fdump, fmodhead, fplot, and fverify) allow you to examine, copy and manipulate FITS files. The tool 'fv' is a powerful GUI-based utility that should satisfy most needs to examine and modify FITS files. 'fv' will display images, but 'ds9' was designed specifically to display and manipulate images. Event Classes and Instrument Response Functions (IRFs)IRFs describe LAT performance in terms of transformation probability from a true physical quantity (i.e., energy and direction of photons) to the corresponding measured quantity. It is important to note that the IRFs depend not only on the instrument itself, but also on the reconstruction algorithms, the background rejection algorithm, and on the selection of events. At the time this tutorial was written, the latest Instrument Response Function set was P6_v2 (Glast Release v15r0). Pass_6 provides the default cuts for three event classes:
Data SelectionData selection precedes data exploration. The fundamental LAT data are simple event lists, and data selection involves making cuts on the event lists. Data selections can be made when extracting the LAT event list from the database, and further selections are made using the gtselect tool. Thus, you can extract data for a source spanning a large time range, and use gtselect to break this event list into a series of shorter time ranges. You can extract LAT events from a large spatial area that includes a gamma-ray burst, and after localizing the burst, you can select the counts from a smaller area centered on the burst. gtselect – When selecting data, cuts are made using the gtselect tool when extracting data from event lists. This tool enables you to extract data for a long span of time and divide the event list into a series of shorter time ranges. LAT events can also be extracted from a large spatial area that includes a GRB. After localizing the burst, counts can then be selected from a smaller area centered on the burst. (See gtselect.) Note: After selection, use 'fv' and 'ds9' to display count plots as a function of position, time, or energy. When the number of counts becomes excessive, use gtbin to bin the data in time energy, or space; then use fv and ds9 to plot the resulting FITS files. gtbin – Bins GBM or LAT events list in time, energy, and/or space to produce light curves, spectra, count cubes, or count maps, respectively. (See gtbin.) LightcurvesLightcurves depict source intensity as the detected count rate, not as photon or energy flux. The gtbin tool lightcurve (LC) option requires the name of the input and output files, and then presents three time binning options:
The gtbin FITS file output contains the lightcurve, which can now be plotted. For examples, see Count MapsBinned count maps for LAT data depict the number of counts in spatial pixels:
Both the CMAP and CCUBE options require you to specify the:
For the CCUBE option, you must also specify the energy bands to be used:
Output map files can be viewed by fv or ds9. For examples, see:
|