pyspi.utils.response.spi_pointing module
- class pyspi.utils.response.spi_pointing.SPIPointing(sc_pointing_file)[source]
Bases:
object- __init__(sc_pointing_file)[source]
This class handles the current SPI pointings based of the input SPI pointing file
- Parameters
sc_pointing_file – An INTEGRAL/SPI spacecraft pointing file
- Returns
- property sc_matrix
get the sc_matrics of all the times in this pointing :returns: array of sc_matrices
- property sc_points
ra, dec coordinates of the SPI x,y and z axis in the ICRS frame for all the times in this pointing
- Returns
ra, dec coordinates of the SPI x,y and z axis in the ICRS frame for all the pointings
- pyspi.utils.response.spi_pointing.construct_sc_matrix(scx_ra, scx_dec, scy_ra, scy_dec, scz_ra, scz_dec)[source]
Construct the sc_matrix, with which we can transform ICRS <-> Sat. Frame
- Parameters
scx_ra – ra coordinate of satellite x-axis in ICRS
scx_dec – dec coordinate of satellite x-axis in ICRS
scy_ra – ra coordinate of satellite y-axis in ICRS
scy_dec – dec coordinate of satellite y-axis in ICRS
scz_ra – ra coordinate of satellite z-axis in ICRS
scz_dec – dec coordinate of satellite z-axis in ICRS
- Returns
sc_matrix (3x3)
- pyspi.utils.response.spi_pointing.construct_scy(scx_ra, scx_dec, scz_ra, scz_dec)[source]
Construct the vector of the y-axis of the Integral coord system in the ICRS frame
- Parameters
scx_ra – ra coordinate of satellite x-axis in ICRS
scx_dec – dec coordinate of satellite x-axis in ICRS
scz_ra – ra coordinate of satellite z-axis in ICRS
scz_dec – dec coordinate of satellite z-axis in ICRS
- Returns
vector of the y-axis of the Integral coord system
in the ICRS frame