ModelSrcInterface

class ModelSrcInterface[source]

Bases: object

Base object for the creation of the shadowgram model of different sources

Constructor

Attributes Summary

name Get name.
static_attitude
static_duration
static_e_max
static_e_min
static_idx_chan
static_mdl_effect
static_position
static_sim_geom
static_time
static_velocity

Methods Summary

get_noisy_model([obs_time]) Return the shadowgram model with poisson noise.
set_energy_band(e_min, e_max) Set the energy lower and upper limit for sources models classes
set_idx_channel(idx_chan) Set channel index and associated energy band.
set_satellite_context(attitude, position, …) Set the satellite information: attitude, position, velocity and time
set_sim_dpix(dpix)

Attributes Documentation

name

Get name.

static_attitude = [0, 0, 0]
static_duration = 10
static_e_max = 0
static_e_min = 0
static_idx_chan = 0
static_mdl_effect = None
static_position = [0, 0, 0]
static_sim_geom = None
static_time = None
static_velocity = [0, 0, 0]

Methods Documentation

get_noisy_model(obs_time=None)[source]

Return the shadowgram model with poisson noise.

Parameters:obs_time (float) – observation time in seconds
static set_energy_band(e_min, e_max)[source]

Set the energy lower and upper limit for sources models classes

Warning

must be renamed as _set_energy_band

Parameters:
  • e_min (float) – energy lower limit in keV
  • e_max (float) – energy upper limit in keV
static set_idx_channel(idx_chan)[source]

Set channel index and associated energy band.

Parameters:idx_chan (int) – channel index
static set_satellite_context(attitude, position, velocity, time)[source]

Set the satellite information: attitude, position, velocity and time

Parameters:
  • attitude ([float, float, float]) – [ra, dec, ori] in degrees
  • position ([float, float, float]) – [X, Y, Z] in km in J2000
  • velocity ([float, float, float]) – [Vx, Vy, Vz] in km/s
  • time (float) – PPS time in s from mjdref
static set_sim_dpix(dpix)[source]