Data Analysis Tutorial for the Fermi Gamma-ray Burst Monitor (GBM)
Hoi-Fung Yu (MPE) for the Fermi GBM team
4th FAN Workshop, University of Hong Kong, Hong Kong (12 July 2013)
Data Analysis Tutorial for the Fermi Gamma-ray Burst Monitor (GBM) - - PowerPoint PPT Presentation
Data Analysis Tutorial for the Fermi Gamma-ray Burst Monitor (GBM) Hoi-Fung Yu (MPE) for the Fermi GBM team 4 th FAN Workshop, University of Hong Kong, Hong Kong (12 July 2013) Contents Basic facts of the Fermi GBM GBM data types
Hoi-Fung Yu (MPE) for the Fermi GBM team
4th FAN Workshop, University of Hong Kong, Hong Kong (12 July 2013)
Bursts (GRBs) observed by both the GBM and LAT (Meegan et al. 2009)
permit repointing of the spacecraft to obtain LAT
disseminate burst locations rapidly to the community of ground-based observers
detectors and 2 bismuth germanate, BGO, scintillation detectors
BGOs cover higher energy spectrum (~200 keV - ~40 MeV)
the positions of GRBs can be derived from the measured relative counting rates, a technique previously employed by CGRO BATSE
NaI detector (Meegan et al. 2009) Locations and orientations of the GBM detectors (Meegan et al. 2009) BGO detector (Meegan et al. 2009)
These detectors and the data read-out systems were actually built at MPE!
count rates) with time tag and energy. 128 Energy channels (adjustable boundaries). Each row in event extension in the FITS file is a time and an energy channel.
resolution, 128 energy channels (adjustable boundaries, same as TTE). Each row in spectrum extension in the FITS file is a 128 energy channel spectrum.
1.024 s during burst) temporal resolution, 8 energy channels (adjustable boundaries). Not suitable for spectroscopy.
approximate duration of the burst.
choose TTE data. (TTE data has only time range from ~T0-25 s to ~T0+300 s, and is slower to process.
analyzed using RMFIT, providing they have a single associated response file, and conform to standard FITS format. BAT files are single PHA files, i.e. one spectrum per file. CSPEC/CTIME files are PHA2 files, i.e. multiple spectra per file, each spectrum belonging to a time bin.
glg_tte_b0_bnyymmddxxx_v01.fit) [FIT]
glg_cspec_b0_bnyymmddxxx_v01.pha) [PHA]
glg_ctime_b0_bnyymmddxxx_v01.pha) [PHA]
localization
(should have installed before this tutorial!)
external library is needed!]
contribution page: http://fermi.gsfc.nasa.gov/ssc/data/analysis/rmfit/
prompt type rmfit. Put this inside your .bashrc to use from all terminals.
You must use one of the two options above. The IDL virtual machine included in this install can only be accessed by RMFIT through the rmfit432.command file. If RMFIT will not run make sure you have X11 installed.
You will see a page with explanations about GBM data. Click the “Browse this Table” at the top left-hand
your burst from the returned triggers using your knowledge of the trigger time. “Preview and Retrieve” will allow you to generate the directory listing the available data files for this burst, or you can just retrieve the whole available data package in a tar file.
“glg_cspec_nx_bn080916009_v0y.pha” (“glg_ctime_nx_bn080916009_v0y.pha”) where x is the NaI detector number 0-9, a, b or “glg_cspec_bx_bn080916009_v0y.pha” (“glg_ctime_bx_bn080916009_v0y.pha”) with x =0 or 1. Choose b0 if you have low-numbered NaI, b1 for NaI with x>5. If you have a mixture, select both BGOs and choose better one after looking at data.
“glg_cspec_nx_bn080916009_v0y.rsp” or “glg_cspec_bx_bn080916009_v0y.rsp”. CSPEC response files apply to both CSPEC and TTE data files: the number of energy channels is 128 for both.
From the spectroscopy tutorial: http://fermi.gsfc.nasa.gov/ssc/data/analysis/user/vc_rmfit_tutorial.pdf (RMFIT team, April 2010)
I will use a recent burst GRB 130305A (130305486) as an example (a Fermi and Swift detected burst): http://fermi.gsfc.nasa.gov/ssc/data/access/
Usually the triggered NaIs are bright. Use the blocked BGO.
You can toggle to switch between the lightcurve and energy channel display windows. You can rebin according to temporal resolution (must be integer multiple of the finest bin) or S/N ratio, or click “Rebin: Full Resolution” to return to full resolution.
delete the current selection or click
selection. For NaIs, usually we use ~8-900 keV. Avoid the overflow channels.
“Select Source: Source Interactive” in order to select usable energy ranges.
Background” and then select the background intervals before and after the burst.
current selection or click on “EXIT” at the bottom-left corner of the display window to confirm selection.
fit the background intervals (RMFIT will then extrapolate the fit into the burst region).
they should be all around the value 1. Click “Dismiss” to return to the lightcurve display.
to select the source interval. Click “Exit” to confirm or the right-most region to cancel
s interval containing the brightest part of the burst. Important: The source interval interval must not intercept with the background intervals!
You can also toggle to the energy channel display to see the fitted background rates for each energy channel (remember the energy channel display reveals mainly the effective area effect). RMFIT will display the selected energy range at the upper-right corner, and the bottom, and the source time interval at the bottom.
Lookup” to save the current binning, zooming, background and source selections. The lookup file will be saved with the same name as your current CSPEC/ TTE file with extension “.lu”. You can also choose your desired name for it.
detectors. For consistency you should always use the same lookup file for all detectors!
will be wrong. Toggle to the energy channels display and click “Zoom: Zoom Out: Full Range” to view the full energy range. Avoid energy ~< 200 keV and the
use ~240 keV to ~40 MeV.
select “Spectral Fitting: Fit Selections”. This produces a fit of the entire source interval (which you selected) with some model you will choose. You will be prompted for the detector response file, one per
You will be asked which detectors to include in the fit. Press “Accept” to select all of
detectors, i.e. your fitting statistic will be optimized using information from all detectors.
15. You have many models to choose from. If you click “Restore” you will get even more models which are not offered by default. Clicking a model selects it. Select “C-Stat” to use the Cash- Castor statistics (Cash 1979) instead of the Chi2 statistics, since for GBM data the background should be Poissionian. Combined models can be used by clicking individual model when holding the <ctrl> key. Clicking “Accept” will then fit the data. If you chose “Set parameters” the RMFIT will prompt you a window to initialize the parameters before starting the fit. We will fit models 1, 7, & 5, i.e. Power-law (Pl), Comptonized (Comp), & the famous Band’s GRB function (Band Function, Band 1993) in this tutorial: Note that the Band Function reduces to the Comptonized model when the high-energy power-law index goes to -ve infinity.
Points are the NaIs and BGO data rates blue curve is the model rates (expected rate convolved to the DRMs assuming the model is “correct”) “Zoom” let you zoom the plots “Fit Results” let you write fit results to file “Redo Last Fit” let you redo the fit, you can also change the photon model(s) You can control the fitting process in “Spectral Fitting”, e.g. setting the error interval “Fit Display Options” let you convert the plot to different space, e.g. photon counts, energy, vFv etc.
C-Stat [-2log(likelihood)] cannot be used to estimate goodness of fit, only compared to C-Stat for other (nested) models. Look at the Fit Log and the residuals to decide if the fit is a good fit or not. Fitting a power-law model:
Fitting a Comptonized model: Residuals reduced, C-Stat is much less (for 1 more parameter), i.e. a better model (higher probability to produce the observed spectrum)
Fitting a Band model: Similar residuals, C-Stat is ~40 less, (for 1 more parameter) i.e. best among the 3 models
To show more clearly the fitted model and the data rates, you can rebin the spectrum by combining spectral bins (usually do for the BGO since most of the data points are upper-limits) After rebinning, click “Spectral Fitting: Fit Selections” instead of “Redo Last Fit” since you have already changed the input data.
Comparing to the Band model, you can see that the Comp model has too-deep decay at >1 MeV range. [Note that both the data and the model binnings changed]
If there is any normalization issues, use the “Effective Area Correction” together with the chosen
“Accept” to redo the fit.
With much worse likelihood, and 4 extra parameters, this does not seem to be a necessary addition to the
relative to BGO.
You have already gone through the basic analysis procedures using RMFIT and can now play around with the data! For long and bright bursts, you can try to do time-integrated and time-resolved spectral analysis. Work hard and have fun with GRBs! More details about the usage of RMFIT can be found at the FSSC’s RMFIT Tutorial: http://fermi.gsfc.nasa.gov/ssc/data/analysis/rmfit/ You may also have a look at more GRB spectral fitting papers from the Fermi GBM team: Time-integrated spectral catalogs: Goldstein et al. 2012, Gruber et al. 2013 (in prep.) Time-resolved spectral analysis: Burgess et al. 2013 (in prep.), Yu et al. 2013 (in prep.)