kessler.util¶
Functions
|
|
|
|
|
|
|
|
|
|
|
Written by Andrew Ng, 18/03/2022, Based on source code @ https://github.com/nasa/CARA_Analysis_Tools/blob/master/two-dimension_Pc/Main/TransformationCode/TimeTransformations/DOY2Date.m Use the datetime python package. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Adapted by Andrew Ng, 18/3/2022. Original MATLAB source code found at: https://github.com/nasa/CARA_Analysis_Tools/blob/master/two-dimension_Pc/Main/TransformationCode/TimeTransformations/getCcsdsTimeFormat.m get_ccsds_time_format - process and outputs the format of the time string extracted from the CDM. The CCSDS time format is required to be of the general form yyyy-[mm-dd|ddd]THH:MM:SS[.F*][Z] (1) The date and time fields are separated by a “T”. (2) The date field has a four digit year followed by either a two digit month and two digit day, or a three digit day-of-year. (3) The year, month, day, and day-of-year fields are separated by a dash. (4) The hours, minutes and seconds fields are each two digits separated by colons. (5) The fraction of seconds is optional and can have any number of digits. (6) If a fraction of seconds is provided, it is separated from the two digit seconds by a period. (7) The time string can end with an optional “Z” time zone indicator. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|