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
The latest SARAH v3 downloads for SID and SIS include a few extra data variables in the xarray dataset, e.g record_status which is an int, which breaks the interpolation function.
AssertionError: interpolate only supports datasets with homogeneous dtype
Simple fix is to remove from dataset, and then it seems to run fine. Not sure if needed for anything else?
The text was updated successfully, but these errors were encountered:
Can you share the link from where you downloaded the SARAH v3 data?
Without knowing what record_status details exactly, it would probably be the easiest approach to just drop that variable before interpolation.
One should also check whether there were other changes from SARAHv2 to SARAHv3 in the variables and conventions. If not, then the fix would be as simple as you have described it.
We'd be happy to receive a PR if you feel like it :)
Here are some details on record_status, extracted with xarray from a SARAH-3 netCDF file:
comment :
Overall status of each record (timestamp) in this file. If a record is flagged as not ok, it is recommended not to use it.
flag_meanings :
ok void bad_quality
long_name :
Record Status
flag_values :
[0 1 2]
Description
The latest SARAH v3 downloads for SID and SIS include a few extra data variables in the xarray dataset, e.g record_status which is an int, which breaks the interpolation function.
AssertionError: interpolate only supports datasets with homogeneous dtype
Simple fix is to remove from dataset, and then it seems to run fine. Not sure if needed for anything else?
The text was updated successfully, but these errors were encountered: