ecpi.common.sky.extented_body module
Section author: ECLAIRs GP team
To manage extended body in field of view, like: Earth, moon, sun
Summary
Classes:
Informs if Earth is in the filed of view of the ECLAIRs instrument. |
|
Informs if an arbitrary astronomical body is in the filed of view of the ECLAIRs instrument. |
|
Informs if Moon is in the filed of view of the ECLAIRs instrument. |
|
Informs if Sun is in the filed of view of the ECLAIRs instrument. |
Class diagram:
Reference
- class EarthInFov[source]
Bases:
ecpi.common.sky.extented_body.ExtentedBodyInFovInforms if Earth is in the filed of view of the ECLAIRs instrument. Inherits from ExtendedBodyinFov class.
- class ExtentedBodyInFov[source]
Bases:
objectInforms if an arbitrary astronomical body is in the filed of view of the ECLAIRs instrument.
- compute_occultation_frac()[source]
Compute occultation fraction in FOV, call open_fov_map() method before
- Parameters
side_fov – integer, number of side pixels
- Returns
earth fraction [0..1]
- Return type
float
- compute_openfov_map(side_fov=199)[source]
Create the open field of view map
Note
Definition
OpenFOV map is square boolean array (side_fovxside_fov), True is open (no extended body)
- Parameters
side_fov – integer, number of side pixels
- Returns
True if extended body is NOT present
- Return type
numpy array (side_fov, side_fov) of bool
- is_in_fov()[source]
Return whether Earth appears in ECALIRs field of view
- Returns
if Earth is in FOV
- Return type
bool
- set_eclairs_attitude(ecl_att)[source]
Set ECLAIRs attitude object
- Parameters
ecl_att (array(float) of length 3) – ECLAIRs instrument attitude object
- class MoonInFov[source]
Bases:
ecpi.common.sky.extented_body.ExtentedBodyInFovInforms if Moon is in the filed of view of the ECLAIRs instrument. Inherits from ExtendedBodyinFov class.
- class SunInFov[source]
Bases:
ecpi.common.sky.extented_body.ExtentedBodyInFovInforms if Sun is in the filed of view of the ECLAIRs instrument. Inherits from ExtendedBodyinFov class.