SolidAngleComputationWithEarth

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

Bases: ecpi.common.instru.solid_angle.SolidAngleComputation

Solid angle computation for the ECLAIRs instrument in the presence of Earth in the FOV.

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(limb_angle, u_earth[, …]) Compute solid angle map with the Earth in the FOV using the mean CXB shape calculation.
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(limb_angle, u_earth, fully_opened_mask=False, debug=False)[source]

Compute solid angle map with the Earth in the FOV using the mean CXB shape calculation.

..note: when angle(vec direction, vec Earth) very close to limb angle may lead to numerical errors in comparsion. introduced a bias in solid angle computation. Check has been added that raises a warning.

Parameters:
  • limb_angle (float) – limb angle (cf. doc) in degree
  • u_earth ([float, float, float]) – unit vector pointing towards Earth center
  • fully_opened_mask – whether or not to consider the opened mask.

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

set_mask_configuration(sub_mask_arr, fully_opened_mask)

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