SPI data analysis

If you are unsure what to do, got stuck somewhere, or have questions of any kind (concerning SPI), ask me (Ingo) or Pierre, or consult the online cookbook if we are not present.

First problem: simple Crab image analysis

This problem is very basic and all necessary commands are provided to guide you through the basic steps.
This guideline is a strongly shortened version of the SPI analysis cookbook. We strongly recommend, that you look at the online cookbook in parallel, as the cookbook contains many explanations.

  1. Get a list of scws from here.
  2. Set up your environment as usual
  3. create your OG
  4. launch the main GUI: spi_science_analysis
  5. since we first want to know, what is in the data without biasing our analysis, we do not want any catalog extraction.
  6. check the options for the energy binning. Since we want an image first, make sure you use a single broad bin, i.e., 20-40 keV
  7. check the spiros options: make sure, spiros is set to "imaging" mode. Use POINTING+FCFOV to get nicer intensity images.
  8. run the pipeline
  9. when the pipeline has finished, check the produced logfile spi_sa........log: you will see lots of output from all executables called by the script. This logfile is also a good place to look for any unusual messages in case you experience problems. Go to the end of the logfile to the spiros section and locate the Contributions to CHI2 parameter by pointing exposure table. It is a bit confusing to read, but very important. Checkout the column "Reduced CHI2". All values should be compatible with a good fit (i.e., around 1.0). For this first problem, I have provided you a cleaned list of science windows, so all Reduced CHI2 should be OK.
  10. create a region file for ds9 from the source list provided by spiros
  11. look at your images with ds9:
    Intensity image:
    ds9 spiros_image_intensity_result.fits -region source_res.reg
    Actually more important is usually the significance image:
    ds9 spiros_image_sigma_result.fits -region source_res.reg
    but also take a look at the error image.

Exercises

Second problem: simple Crab spectral analysis

  1. Copy your OG (i.e., cp -r crab_ima crab_spe, and cd into the new OG
  2. create an appropriate input catalog: copy the produced source list cp source_res.fits source_cat.fits
  3. use fv, to edit the columns "name" and "sel_flag". Source-1 will be the Crab, so set the name appropriately. Make sure that the sel_flag for the Crab is set to 1.
  4. edit the header of the extension and replace the extension name "SPI.-SRCL-RES" with "SPI.-SRCL-CAT"
  5. save and quit fv
  6. launch spi_science_analysis
  7. provide source_cat.fits as input catalog!
  8. select an energy binning that is appropriate for spectral analysis, i.e., 20-200 keV in -100 bins (the minus gives you a logarithmic binning which you should prefer)
  9. set spiros in spectral mode and also select LIKEH as optimization statistic (preferred for spectral extraction, but not necessary)
  10. run
  11. launch xspec and analyze the produced spectrum spectrum_Crab.fits

Exercises

Third problem: real life analysis of V0332+53

Note that unlike before, you'll be confronted here with a real life example, i.e., an uncleaned science window list as you download it from the archive (or from your private data).

  1. begin from scratch, i.e., remove your previous spi_science_analysis.par file: rm ~/pfiles/spi_science_analysis.par
  2. Download the scw list from here.
  3. create your OG as usual
  4. Again, do not use the catalog extraction
  5. run a simple image analysis
  6. look at the Contributions to CHI2 parameter by pointing exposure table in the logfile. You see some really bad pointings!
  7. rerun spiros, but use background method 5 this time - the situations should be much better now, but still many pointings are unacceptable: write down those pointings which are really bad
  8. rerun spiros, but exclude those really bad pointings
  9. check the logfile. Repeat this selection process until you have a good solution.

Exercises


Prepared by Ingo Kreykenbohm (ISDC/IAAT).
Email:Ingo Kreykenbohm@obs.unige.ch Telephone: +41 22 3792102