ModelInternalNoise¶
-
class
ModelInternalNoise(noise_level=0.003)[source]¶ Bases:
simu.lib.sources.ModelFlatModel for a flat internal noise, impact on detector of particles in the terrestrial environment The internal noise is independent from wavelength
constructor
Parameters: noise_level (float) – internal noise level in ph/s/cm2/keV (default is 0.003) Attributes Summary
attitudeduratione_maxe_minidx_chanmdl_effectnamepositionsim_geomsnrtimevelocityMethods 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_satellite_context(attitude, position, …)set the satellite information: attitude, position, velocity and time set_sim_dpix(dpix)use_always_noisy_model()Attributes Documentation
-
attitude= [0, 0, 0]¶
-
duration= 10¶
-
e_max= 0¶
-
e_min= 0¶
-
idx_chan= 0¶
-
mdl_effect= <common.instru.model_effect.ECLAIRsDetectorEffectDefault object>¶
-
name¶
-
position= [0, 0, 0]¶
-
sim_geom= <simu.lib.InstruX.SimuECLAIRsMaskProjection object>¶
-
snr¶
-
time= None¶
-
velocity= [0, 0, 0]¶
Methods Documentation
-
get_model(obs_time=None)[source]¶ return the shadowgram model
Parameters: obs_time (floatl) – 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
-
set_energy_band(e_min, e_max)¶ set the energy lower and upper limit for sources models classes :param e_min: energy lower limit in keV :type e_min: float :param e_max: energy upper limit in keV :type e_max: float
-
set_idx_channel(idx_chan)¶
-
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)¶
-
use_always_noisy_model()¶
-