simu.lib.instru_x module¶
Section author: ECLAIRs GP team
Instrument simulation module of point source .. note:: TODO need to be update
Summary¶
Classes:
Simulation with geometric method square intersection |
|
Generic simulation of X instrument coded mask |
-
class
SimuECLAIRsMaskProjection(catalog_x: Optional[ecpi.common.sky.catalog.CatalogFovBasic] = None, p_nb_pixel=None)[source]¶ Bases:
simu.lib.instru_x.SimuInstruXBaseSimulation with geometric method square intersection
-
class
SimuInstruXBase[source]¶ Bases:
objectGeneric simulation of X instrument coded mask
-
add_all_evt(apos)[source]¶ Add one on pixel associated to position
- Parameters
apos (numpy array (n,2)) – array plan position of photon
-
add_cxb(cxb_eclairs_level=1)[source]¶ - Parameters
cxb_eclairs_level (float [count/cm2/s]) – intensity of CXB
-
get_cxb(cxb_eclairs_level=1, cxb_type='flat_nospectr', internal_noise=False, noise_level=0.003)[source]¶ return a numpy array of detector with CXB count by pixel.
- Parameters
cxb_eclairs_level (float [count/cm2/s]) – intensity of CXB
cxb_type (string) – type of CXB = ‘flat_nospectr’ or ‘shapebased_nospectr’. Default is ‘flat_nospectr’.
internal_noise (bool) – flag to add internal noise
noise_level (float) – internal noise level in cts/sec/cm2/keV (default is 0.003)
- Returns
cxb detector image counts
- Return type
array(float)
-
get_snr_sources(shadowgram_tot=None)[source]¶ compute the theoretical max snr of each source. Takes into account the mask is partially coded. SNRs are listed in the order of the sources catalog
- Parameters
shadowgram_tot (array(float)) – final shadowgram (default=from the simu object)
- Returns
list of the snr of each source
- Return type
list(float)
-