Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Userwarning non-nanosecond datetime #74

Open
kingkong-cmd opened this issue Jan 12, 2025 · 0 comments
Open

Userwarning non-nanosecond datetime #74

kingkong-cmd opened this issue Jan 12, 2025 · 0 comments

Comments

@kingkong-cmd
Copy link

Hi Matthew,

I keep getting these warnings when reading grib wind data files from NOAA. Logs says it's coming from gribberish, but is it actually coming from xarray?

Not a life ending problem, but it is flooding my logs to the point where they become unreadable. Using newest version of xarray/gribberish, but was same before. Can't really convert to "nanosecond precision" since files are from NOAA.

.venv/lib/python3.13/site-packages/gribberish/gribberish_backend.py:50: UserWarning: Converting non-nanosecond precision datetime values to nanosecond precision. This behavior can eventually be relaxed in xarray, as it is an artifact from pandas which is now beginning to support non-nanosecond precision values. This warning is caused by passing non-nanosecond np.datetime64 or np.timedelta64 values to the DataArray or Variable constructor; it can be silenced by converting the values to nanosecond precision ahead of time.

[[package]]
name = "gribberish"
version = "0.21.2"

[[package]]
name = "xarray"
version = "2025.1.1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant