SimuEclairsEnergyChannel¶
-
class
SimuEclairsEnergyChannel(sim_effect=None)[source]¶ Bases:
objectMethods Summary
add_src(model_src_obj)add_src_astroparticule()add_src_cxb([level])add_src_cxb_flat([level])add_src_point_with_catalog_fov(cat_fov[, …])reset all source l_ponc_src and init with cat fov add_src_point_with_catalog_swift(att_eclairs)reset all source l_ponc_src and init with swift catalog create_evts([verbose])loop on energy channel create events get_list_src()get_shadow_channel(idx)plot_channel(idx[, p_mes])plot_shadow(shadow[, p_mes])print_nb_photon()set_context_simu(duration[, t_start])set the context parameters for the simulation simu_arf()apply arf with binomial process to conserve integer value simu_global_noise_poisson([verbose])simu_rmf()simu_rmf_2()simu_rmf_jit()simu_src([idx_chan, l_src, verbose])simulation of sources Methods Documentation
-
add_src_point_with_catalog_fov(cat_fov, use_irf=True, verbose=False)[source]¶ reset all source l_ponc_src and init with cat fov cat_fov is an user catalaog can by used for debug, analysis and test .. cat_fov must have intensity array shape
Parameters: - cat_fov (CatalogFovBasic) – sidx_chanources catalog with energy
- verbose (bool) – print outputs sources build (default=None)
-
add_src_point_with_catalog_swift(att_eclairs, use_irf=True, verbose=False)[source]¶ reset all source l_ponc_src and init with swift catalog
Parameters: - att_eclairs (common.mission.attitude.AttitudeECLAIRs) – ECLAIRs attitude
- verbose (bool) – print outputs from sources build (default=None)
-
set_context_simu(duration, t_start=0)[source]¶ set the context parameters for the simulation
Parameters: - duration (float) – simulation time in s
- t_start (float) – start time of the simulated observation in s from mjdref
-
simu_src(idx_chan=None, l_src=None, verbose=False)[source]¶ simulation of sources
Parameters: - idx_chan (int >0) – channel index to be simulated. Default=None for all channel
- l_src (list(string)) – list of sources to be simulated. Default=None for all sources already initiated
- verbose (bool) – for print outputs. Default=False
-