SolidAngleComputation

class SolidAngleComputation(instru_ecl: ecpi.common.instru.model_geom.InstruECLAIRs, use_numba=False)[source]

Bases: object

Solid angle computation for the ECLAIRs instrument.

constructor

..note :: numba mode only concerns the calculator method for the moment

Parameters:
  • instru_ecl (InstruECLAIRs object) – description of the mask of ECLAIRs
  • use_numba (bool. Default is False.) – whether or not to optimize the detector-mask loops

Methods Summary

run_calculator([fully_opened_mask, debug]) Compute solid angle map without the Earth in the FOV.
set_mask_configuration(sub_mask_arr, …) Sets the mask configuration: whether or not to compute solid angle with the real mask geometry or with open submasks.

Methods Documentation

run_calculator(fully_opened_mask=False, debug=False)[source]

Compute solid angle map without the Earth in the FOV.

documentation: * simulation_correction_cxb_earth_15_05_2020_v2_alg.pdf (version 2) p.10->11 * simulation_correction_pipeline_cxb_earth_15_05_2020_v2_pb.pdf (version 2) p.4

Parameters:fully_opened_mask – whether or not to consider the opened mask.

The ECLAIRs mask cross remains ! Default is False. :type fully_opened_mask: bool :return: solid angle map :rtype: 2D array(float) with shape 80x80

..note: the computation includes the cos theta effect. It follows the sum of the solid angle is 2199.0922 instead of 2452.0531 (without cos theta case).

set_mask_configuration(sub_mask_arr, fully_opened_mask)[source]

Sets the mask configuration: whether or not to compute solid angle with the real mask geometry or with open submasks.

Parameters:
  • sub_mask_arr (2D array(int) Filled with 0s and 1s.) – array specifying submask geometry
  • fully_opened_mask – whether or not to consider the opened mask.

The ECLAIRs maks cross remains ! :type fully_opened_mask: bool