GlobalContextSimulator

class GlobalContextSimulator[source]

Bases: ecpi.simu.lib.context.ContextSimulator

Create global simulation context.

used singleton design pattern, ie only one instance of class ManageProcessusEcpi

Attributes Summary

duration
earth_limb
earth_pos_fov_unit
eclairs_attitude
energy_range
idx_chan
instance
pos_sat
t_start

Methods Summary

add_observer(observer)
param observer:
del_observer(observer)
param observer:
earth_frac()
is_in_fov()
notify_observer()
open_fov_map()
reset()
set_duration(duration)
param duration:simulation time in s
set_idx_chan(idx_chan) Set energy channel index
set_mdl_effect(mdl_effect)
param mdl_effect:
 
set_pos_sat(pos)
param pos:satellite position in km in GCRS frame
set_quaternion_svom(quater) ..note :: proposal:
set_sim_geom(sim_pts)
param sim_pts:
set_t_start(t_start)
param t_start:start time of the simulated observation in s from mjdref

Attributes Documentation

duration
earth_limb
earth_pos_fov_unit
eclairs_attitude
energy_range
idx_chan
instance = None
pos_sat
t_start

Methods Documentation

add_observer(observer)
Parameters:observer
del_observer(observer)
Parameters:observer
earth_frac()
is_in_fov()
notify_observer()
open_fov_map()
reset()[source]
set_duration(duration)
Parameters:duration (float) – simulation time in s
set_idx_chan(idx_chan)

Set energy channel index

Parameters:idx_chan (int) – energy channel index
set_mdl_effect(mdl_effect)
Parameters:mdl_effect
set_pos_sat(pos)
Parameters:pos (array 3 float) – satellite position in km in GCRS frame
set_quaternion_svom(quater)

..note :: proposal: add switch to allow the user to choose between specifying a quaternion or an attitude. Or split functions.

set_sim_geom(sim_pts)
Parameters:sim_pts
set_t_start(t_start)
Parameters:t_start (float) – start time of the simulated observation in s from mjdref