pyspi.utils.response.spi_drm module

class pyspi.utils.response.spi_drm.SPIDRM(drm_generator, ra, dec)[source]

Bases: threeML.utils.OGIP.response.InstrumentResponse

__init__(drm_generator, ra, dec)[source]

Init a SPIDRM object which is based on the InstrumenResponse class from 3ML. Contains everything that is necessary for 3ML to recognize it as a response.

Parameters
  • drm_generator – DRM generator for the SPI Response

  • ra – ra of source (in ICRS)

  • dec – dec of source (in ICRS)

clone() pyspi.utils.response.spi_drm.SPIDRM[source]

Get clone of this response object

Returns

new cloned response

set_location(ra, dec, cache=False)[source]

Set the source location

Parameters
  • ra – ra of source (in ICRS)

  • dec – dec of source (in ICRS)

Returns

set_location_direct_sat_coord(azimuth, zenith, cache=False)[source]

Set the source location

Parameters
  • azimuth – az poisition in the sat. frame

  • zenith – zenith poisition in the sat. frame

Returns