You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
As mentioned in #182 here xgcm currently fails out when the metrics we use have missing values.
We could very easily fix this by adding a
.fillna(0)
here but I am not sure that we want to do that every time. How much performance will this cost?The other option I see is to catch the exception and provide a more helpful error message specific to xgcm? This could sound somthing like this:
xgcm cannot use the metric x, because it has missing values. Please fill missing values with
ds['x'].fillna(0)before creating the grid
.Thoughts?
The text was updated successfully, but these errors were encountered: