Convert ADI times to datetime 64
How to set adi time values in xarray: • Use adi get sample timevals to get seconds since 1970 and a microseconds offset • Every time we load times, we will convert to datetime64 in xarray • We will construct datetimes as microseconds since epoch time • See if there is an efficient way to detect if the xarray time array has changed or if I should just always deserialize values back to adi. • When converting back to time values in ADI, we have to convert the microseconds since epoch to seconds since midnight plus microseconds. Microseconds are part of the decimal of the double time offset value.
Edited by Carina Lansing