ModelFlat

class ModelFlat(level)[source]

Bases: ecpi.simu.lib.sources.ModelSrcInterface

Generic class for flat model

constructor

Parameters:level (float [ph/cm2/s]) – intensity detected

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_model([obs_time]) return the shadowgram model
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_model(obs_time=None)[source]

return the shadowgram model

Parameters:obs_time (float) – observation time in s
Returns:noise detector image in ph/pix
Return type:array(float)
get_noisy_model(obs_time=None)

Return the shadowgram model with poisson noise.

Parameters:obs_time (float) – observation time in seconds
set_energy_band(e_min, e_max)

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
set_idx_channel(idx_chan)

Set channel index and associated energy band.

Parameters:idx_chan (int) – channel index
set_satellite_context(attitude, position, velocity, time)

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
set_sim_dpix(dpix)