ecpi.process.dpco.core.gti_earth module

Section author: ECLAIRs GP team

GTI earth

Data Preparation and Calibration

GTI is a list of two real values which defines an interval in time.

t_att is table extension 1 of SVO-ATT-CNV FITS file t_orb is table extension 1 of SVO-ORB-CNV FITS file eic_saa_data is ?? of EIC SAA FITS file

Summary

Functions:

get_earth_occultation_fraction_array

Computes the earth occultation fraction of every element from the input arrays.

get_gtis_by_interval

Extracts the intervals of time where earth_occult_fraction is in gti_neo (0), gti_peo(1) or gti_teo(2).

get_gtis_by_type

Creates a list of elements marked 'neo', 'peo' or 'teo' from the input array eof_values We have 0. <= NEO < PEO < TEO <= 1. | | peof_min peof_max input :param eof_values: computed values of earth_occultation :param peof_min: minimal earth occultation fraction :param peof_max: maximal earth occultation fraction :type eof_values: np.array :type peof_min: float :type peof_max: float.

select_xeo

param eof

Reference

get_earth_occultation_fraction_array(t_orb)[source]

Computes the earth occultation fraction of every element from the input arrays. Null earth occultation is computed using limb angles and attitude of the satellite. Actual Earth Occultation Fraction are computed only for elements with partial and (possibly) total occultation.

input :param t_orb: data_flow.att_pvt table (SVO-ATT-CNV + SVO-ORB-CNV) :type t_orb: astropy table

output : eo_frac : 1D array with earth occultation fraction in the range [0,1]

get_gtis_by_interval(earth_occult_fraction, t_time, peof_min, peof_max)[source]

Extracts the intervals of time where earth_occult_fraction is in gti_neo (0), gti_peo(1) or gti_teo(2). Returns an array of 3 lists of intervals [t_start,t_stop] for gti_neo, gti_peo and gti_teo respectively

Those intervals are defined by two input parameters
  1. <= NEO < PEO < TEO <= 1.

    peof_min peof_max

input :param earth_occult_fraction: list of values of the earth

occultation fraction

Parameters
  • t_time (np.array( float )) – list of times corresponding to the earth_occultation_fraction values

  • peof_min (float) – minimal occultation value for PEO

  • peof_max (float) – maximal occultation value for PEO

output numpy array of 3, possibly empty, lists of intervals [t_start,t_stop] for gti_neo, gti_peo and gti_teo, respectively.

get_gtis_by_type(eof_values, peof_min, peof_max)[source]

Creates a list of elements marked ‘neo’, ‘peo’ or ‘teo’ from the input array eof_values We have

  1. <= NEO < PEO < TEO <= 1.

    peof_min peof_max

input :param eof_values: computed values of earth_occultation :param peof_min: minimal earth occultation fraction :param peof_max: maximal earth occultation fraction :type eof_values: np.array :type peof_min: float :type peof_max: float

output : python ordered list of strings ‘neo’, ‘peo’ or ‘teo’

select_xeo(eof, peof_min, peof_max)[source]
Parameters
  • eof

  • peof_min

  • peof_max

Type

eof:

Type

peof_min:

Type

peof_max:

Returns