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

flood of warnings when running tc_tracks_forecast.fetch_ecmwf #146

Open
emanuel-schmid opened this issue Sep 27, 2024 · 1 comment
Open

Comments

@emanuel-schmid
Copy link
Contributor

emanuel-schmid commented Sep 27, 2024

When running TCForecast.fetch_ecmwf a very high number of warnings are delivered, like so:

...
~$ climada_petals\climada_petals\hazard\tc_tracks_forecast.py:515: 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.
  track = xr.Dataset(
~$ climada_petals\climada_petals\hazard\tc_tracks_forecast.py:515: 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.
  track = xr.Dataset(
...

To suppress these for the time being all UserWarnings are caught and ignored in _subset_to_track, see f89e496.

@emanuel-schmid
Copy link
Contributor Author

see similar issue #84.

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