pyspi.utils.response.spi_frame module

class pyspi.utils.response.spi_frame.SPIFrame(*args, copy=True, representation_type=None, differential_type=None, **kwargs)[source]

Bases: astropy.coordinates.baseframe.BaseCoordinateFrame

INTEGRAL SPI Frame :Parameters: representation (BaseRepresentation or None) – A representation object or None to have no data (or use the other keywords)

property default_differential
property default_representation
frame_attributes = {'scx_dec': <astropy.coordinates.attributes.Attribute object>, 'scx_ra': <astropy.coordinates.attributes.Attribute object>, 'scy_dec': <astropy.coordinates.attributes.Attribute object>, 'scy_ra': <astropy.coordinates.attributes.Attribute object>, 'scz_dec': <astropy.coordinates.attributes.Attribute object>, 'scz_ra': <astropy.coordinates.attributes.Attribute object>}
property frame_specific_representation_info

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

name = 'spiframe'
scx_dec = None
scx_ra = None
scy_dec = None
scy_ra = None
scz_dec = None
scz_ra = None
pyspi.utils.response.spi_frame.j2000_to_spi(j2000_frame, spi_coord)[source]

Transform icrs frame to SPI frame

pyspi.utils.response.spi_frame.spi_to_j2000(spi_coord, j2000_frame)[source]

Transform spi fram to ICRS frame

pyspi.utils.response.spi_frame.transform_icrs_to_spi(ra_icrs, dec_icrs, sc_matrix)[source]

Calculates lon, lat in spi frame for given ra, dec in ICRS frame and given sc_matrix (sc_matrix pointing dependent)

Parameters
  • ra_icrs – Ra in ICRS in degree

  • dec_icrs – Dec in ICRS in degree

  • sc_matrix – sc Matrix that gives orientation of SPI in ICRS frame

Returns

lon, lat in spi frame

pyspi.utils.response.spi_frame.transform_spi_to_icrs(az_spi, zen_spi, sc_matrix)[source]

Calculates lon, lat in spi frame for given ra, dec in ICRS frame and given sc_matrix (sc_matrix pointing dependent)

Parameters
  • az_spi – azimuth in SPI coord system in degree

  • zen_spi – zenit in SPI coord system in degree

  • sc_matrix – sc Matrix that gives orientation of SPI in ICRS frame

Returns

ra, dex in ICRS in deg