Action #740

Feature #733: Implement SPI observation interface

Implement GSPIObservation

Added by Knödlseder Jürgen almost 12 years ago. Updated over 4 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assigned To:Knödlseder Jürgen% Done:

100%

Category:-
Target version:1.7.0
Duration:

obs_spi.xml Magnifier (443 Bytes) Knödlseder Jürgen, 02/18/2013 05:08 PM

obs_rspfile.xml Magnifier (353 Bytes) Knödlseder Jürgen, 04/14/2020 01:50 PM

obs_rspgrp_line.xml Magnifier (413 Bytes) Knödlseder Jürgen, 04/14/2020 01:50 PM

obs_rspgrp.xml Magnifier (400 Bytes) Knödlseder Jürgen, 04/14/2020 01:50 PM

obs.xml Magnifier (296 Bytes) Knödlseder Jürgen, 04/14/2020 01:50 PM

test.py Magnifier (959 Bytes) Knödlseder Jürgen, 04/14/2020 01:50 PM


Recurrence

No recurrence.

History

#1 Updated by Knödlseder Jürgen over 11 years ago

Find attached a draft XML file for handling SPI data: obs_spi.xml.

#2 Updated by Knödlseder Jürgen almost 11 years ago

  • Target version deleted (SPI sprint #1)

#3 Updated by Knödlseder Jürgen over 4 years ago

  • Status changed from New to In Progress
  • Assigned To set to Knödlseder Jürgen
  • Target version set to 1.7.0
  • % Done changed from 0 to 50

I started to implement the GSPIObservation class. The loading of the Observation Group is so far supported, the following XML file can be digested by the class:

<?xml version="1.0" standalone="no"?>
<observation_list title="observation library">
  <observation name="Crab" id="0044" instrument="SPI">
    <parameter name="ObservationGroup" file="$TEST_SPI_DATA/obs/og_spi.fits"/>
  </observation>
</observation_list>

I still need to implement support for the response functions.

#4 Updated by Knödlseder Jürgen over 4 years ago

I merged the current code into devel, yet I still need to add the response part.

#5 Updated by Knödlseder Jürgen over 4 years ago

  • % Done changed from 50 to 90

I need to add some little code that will automatically load the SPI response when it is encountered in the XML file.

#6 Updated by Knödlseder Jürgen over 4 years ago

I completed the XML interface for a SPI observation. It is possible to specify now either a response group or a response file. For a response group it is furthermore possible to specify the line energy. Here are the possible XML formats that are supported:
<observation name="Crab" id="0044" instrument="SPI">
    <parameter name="ObservationGroup" file="og_spi.fits"/>
</observation>
<observation name="Crab" id="0044" instrument="SPI">
    <parameter name="ObservationGroup" file="og_spi.fits"/>
    <parameter name="ResponseGroup"    file="spi_irf_grp.fits" energy="511"/>
</observation>
<observation name="Crab" id="0044" instrument="SPI">
    <parameter name="ObservationGroup" file="og_spi.fits"/>
    <parameter name="ResponseFile"     file="irf.fits"/>
</observation>

Attached a test script test.py and several XML files that are needed for testing:

#7 Updated by Knödlseder Jürgen over 4 years ago

  • Status changed from In Progress to Pull request
  • % Done changed from 90 to 100

#8 Updated by Knödlseder Jürgen over 4 years ago

  • Status changed from Pull request to Closed

Merged into devel.

Also available in: Atom PDF