ecpi.common.mission.time module

Section author: ECLAIRs GP team

Referential time tools

Summary

Functions:

convert_mjd_in_svomref_seconds

convert a time in mjd in a time in seconds from the mjd reference

convert_mjd_in_svomref_seconds_ref

convert a time in mjd in a time in seconds from the mjd reference

convert_svomref_seconds_in_mjd

convert a time in seconds from the mjd reference in a time in mjd

create_time_tag_from_tstart

Creates time tag of scientific products.

from_isot_to_mjd

convert isot to mjd

from_mjd_to_isot

convert mjd to isot

get_mjd_ref

return the mjd reference for the SVOM mission

Reference

convert_mjd_in_svomref_seconds(time_mjd)[source]

convert a time in mjd in a time in seconds from the mjd reference

Parameters

time_mjd (float) – time in mjd

Returns

time in seconds

Return type

float

convert_mjd_in_svomref_seconds_ref(time_mjd, time_mjd_ref)[source]

convert a time in mjd in a time in seconds from the mjd reference

Parameters
  • time_mjd (float) – time in mjd

  • time_mjd_ref (float) – time in mjd

Returns

time in seconds

Return type

float

convert_svomref_seconds_in_mjd(time_s)[source]

convert a time in seconds from the mjd reference in a time in mjd

Parameters

time_s (float) – time in s from mjdref

Returns

time in mjd

Return type

float

create_time_tag_from_tstart(tstart)[source]

Creates time tag of scientific products.

Parameters

tstart (float) – starting time of the observation

from_isot_to_mjd(t_isot)[source]

convert isot to mjd

Parameters

t_isot

from_mjd_to_isot(t_mjd)[source]

convert mjd to isot

Parameters

t_mjd

get_mjd_ref()[source]

return the mjd reference for the SVOM mission

Returns

mjd reference in mjd

Return type

float