pyspedas icon indicating copy to clipboard operation
pyspedas copied to clipboard

Converting CDF epoch values to datetimes is slow

Open jameswilburlewis opened this issue 1 year ago • 0 comments

[email protected] emailed me asking if we could go back to using unix times internally in pytplot, rather than datetimes. They noticed that conversion of CDF epoch values to datetimes is slow -- perhaps 2-3 times slower than using unix times instead. But converting from unix times to datetime64 values is much faster. So they're wondering if we should go back to using unix times internally.

cdf_to_tplot used to work that way, so we need to understand why it was changed to use datetimes internally.

Maybe there's something the cdflib maintainers can do to speed up the conversion?

jameswilburlewis avatar Jan 29 '24 18:01 jameswilburlewis