ecpi.process.bube.core.detector_images module

Section author: ECLAIRs GP team

Detector images class definition

Summary

Classes:

DetectorImages

build and save detector images for a defined observation time

Class diagram:

Reference

class DetectorImages(detector_effect=None, secl=None)[source]

Bases: object

build and save detector images for a defined observation time

corrects_background(enable_arf=True)[source]

Apply background correction on shadowgrams.

Parameters

enable_arf (bool) – whether or not to multiply par ARF in BKG subtraction. Default is True.

corrects_bkg_nonuniformity()[source]

Correct background non uniformity using the pixel detector efficiencies.

..warning: it is assumed the global_efficiency matrix is the same for every channel !

get_shadowgrams()[source]

Return attribute shadowgrams corrected

get_shadowgrams_var()[source]

Return attribute shadowgrams_var

set_bkg_correction_mode(mode)[source]
Parameters

mode

Type! mode

Returns

set_shadow(shadowgrams, shadowgrams_var, obs_time, energy_channels, update_context=True)[source]
Parameters
  • shadowgrams (list(2D array)) – detector images

  • shadowgrams_var (list(2D array)) – detector variance images

  • obs_time (float) – observation time in s

  • energy_channels – different energy ranges (in PI) to extract

the images [[low_energy, high_energy],[]] :type energy_channels: [[int, int]]

set_sources_simulator(secl)[source]
Parameters

secl

Type

secl:

Returns