Returned datetime is not accurate #14
-
Hi I'm trying to convert the datetime parameter from the multi index column, but the conversion to "year-month-day hour-min-sec" is not accurate with me. I'm not sure what I'm doing wrong. For example, for the file "https://cddis.nasa.gov/archive/gnss/products/ionex/2022/001/igsg0010.22i.Z", the epoch is for date 2022-01-01. I read the file using the following syntax:
The output of the previous command is
Which is NOT 2022. I tried to change the command to
But still the same result. Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi You will need to use the following function gns.gn_datetime.j2000_to_pydatetime(d[0].index[0][0]) this will return
inside Best regards Sébastien |
Beta Was this translation helpful? Give feedback.
Hi
You will need to use the following function
this will return
inside
gnssanalysis
datetime are stored as number of seconds since J2000 (01-01-2000T12:00:00) whereasthe datetime library has its 0 being
01-01-1970T00-00-00
, the difference of origin time explain the difference in results.Best regards
Sébastien