simu.lib.context module¶
Section author: ECLAIRs GP team
Context is a high-level facade to centralize information and functionality on the ECLAIRs instrument required for the simulation, like:
instrument geometry
detector effect
position and attitude of ECLAIRs
earth in FOV
range energy
time exposure
As this is information needed by many models we use the singleton design pattern to share it.
Summary¶
Classes:
Defines a general simulation context for ECLAIRs observations |
|
Create global simulation context. |
|
Designe pattern observer |
-
class
ContextSimulator[source]¶ Bases:
simu.lib.context.ObservableDefines a general simulation context for ECLAIRs observations
-
property
duration¶
-
property
earth_limb¶
-
property
earth_pos_fov_unit¶
-
property
eclairs_attitude¶
-
property
energy_range¶
-
property
idx_chan¶
-
property
pos_sat¶
-
set_idx_chan(idx_chan)[source]¶ Set energy channel index
- Parameters
idx_chan (int) – energy channel index
-
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_t_start(t_start)[source]¶ - Parameters
t_start (float) – start time of the simulated observation in s from mjdref
-
property
t_start¶
-
property
-
class
GlobalContextSimulator(*args, **kargs)[source]¶ Bases:
simu.lib.context.ContextSimulatorCreate global simulation context.
-
instance= None¶
-