ModelCxbShapeBased¶
-
class
ModelCxbShapeBased(cxb_level=3035, solidangle_filename='/home/user/projet/ECLAIRs/ecpi/common/data/instru/pixels_solid_angle.fits')[source]¶ Bases:
ecpi.simu.lib.sources.ModelSrcInterfaceModel for a CXB without spectrum based on the pixel solid angle shape
..warning :: dead code ?
constructor
Parameters: - cxb_level (float [ph/cm2/s]) – intensity of CXB
- solidangle_filename (string) – PATH/filename of the solid angle image
Attributes Summary
nameGet name. static_attitudestatic_durationstatic_e_maxstatic_e_minstatic_idx_chanstatic_mdl_effectstatic_positionstatic_sim_geomstatic_timestatic_velocityMethods 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: cxb 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)¶