DetectorImages¶
-
class
DetectorImages(shadowgrams, shadowgrams_var, obs_time, energy_ranges)[source]¶ Bases:
objectbuild and save detector images for a defined observation time
constructor
Parameters: - shadowgrams (list(2D array)) – detector images
- shadowgrams_var (list(2D array)) – detector variance images
- obs_time (float) – observation time
- energy_ranges ([[int, int]]]) – different energy ranges (in PI) to extract the images [[low_energy, high_energy],[]]
Methods Summary
background_correction()correct the shadowgrams from the background flat_background_correction()correct the shadowgrams from a flat background shapebased_background_correction()Correct the shadowgrams from a CXB model based on the pixel solid angle image shapebased_background_correction_fit([…])correct the shadowgram from a shape based on the pixel solid angle image Methods Documentation
-
background_correction()[source]¶ correct the shadowgrams from the background
Warning
to be implemented
corrected shadowgrams is saved in self.shadowgrams_bgcorrected
-
flat_background_correction()[source]¶ correct the shadowgrams from a flat background
the correction is made by the subtraction of the mean of the shadowgrams corrected shadowgrams is saved in self.shadowgrams_bgcorrected
-
shapebased_background_correction()[source]¶ Correct the shadowgrams from a CXB model based on the pixel solid angle image
-
shapebased_background_correction_fit(solidangle_filename='/home/user/git/ECLAIRs/ecpi/common/data/instru/pixels_solid_angle.fits')[source]¶ correct the shadowgram from a shape based on the pixel solid angle image
the pixel solid angle shape and an offset are fitted to the shadowgrams
corrected shadowgrams is saved in self.shadowgrams_bgcorrected
Parameters: solidangle_filename (string) – PATH/filename of the solid angle image