spedas / pyspedas

Python-based Space Physics Environment Data Analysis Software
https://pyspedas.readthedocs.io/
MIT License
143 stars 58 forks source link

Warnings about non-nanosecond precision storing timestamps in store_data #814

Closed jameswilburlewis closed 1 month ago

jameswilburlewis commented 3 months ago

The new cdflib returns CDF times as numpy datetime64 objects with microsecond precision. This causes warnings in store_data when the timestamps are passed to the xarray DataArray constructor.

There's a very simple fix for this in cdflib that eliminates the warnings. See: https://github.com/MAVENSDC/cdflib/pull/242

jameswilburlewis commented 1 month ago

My pull request has been merged into cdflib and released to pypi, so we can close this issue.