ContextSimulator

class ContextSimulator[source]

Bases: ecpi.simu.lib.context.Observable

Defines a general simulation context for ECLAIRs observations

Constructor

Attributes Summary

duration
earth_limb
earth_pos_fov_unit
eclairs_attitude
energy_range
idx_chan
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()
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
pos_sat
t_start

Methods Documentation

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

Set energy channel index

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

..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)[source]
Parameters:sim_pts
set_t_start(t_start)[source]
Parameters:t_start (float) – start time of the simulated observation in s from mjdref