Action #740
Feature #733: Implement SPI observation interface
Implement GSPIObservation
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assigned To: | Knödlseder Jürgen | % Done: | 100% | |
Category: | - | |||
Target version: | 1.7.0 | |||
Duration: |
Recurrence
No recurrence.
History
#1 Updated by Knödlseder Jürgen almost 12 years ago
- File obs_spi.xml added
Find attached a draft XML file for handling SPI data: obs_spi.xml.
#2 Updated by Knödlseder Jürgen about 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
- File obs_rspfile.xml added
- File obs_rspgrp_line.xml added
- File obs_rspgrp.xml added
- File obs.xml added
- File test.py added
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:
Attached a test script test.py and several XML files that are needed for testing:
<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
.