What went wrong?
It throws this warning
UserWarning: no grid type found in this dataset
warnings.warn("no grid type found in this dataset")
And returns None
Also of note -- you only get the warning if you open a multifile dataset -- but it returns None regardless (i.e., it doesn't work in either case)
Operating System
Windows
Version
0.1.1.dev8+g97ec48035
Python Version
3.10
Code to Reproduce
ds = xr.open_mfdataset(['http://edsdata.oceansmap.com/thredds/dodsC/EDS/HYCOM_GLOBAL/hycomglobal_20260619.nc','http://edsdata.oceansmap.com/thredds/dodsC/EDS/HYCOM_GLOBAL/hycomglobal_20260620.nc'])
bbox = (-126.0, 47.5, -124.0, 48.5)
ds.xsg.subset_bbox(bbox)
Errors, Traceback, and Logs
In [106]: ds.xsg.subset_bbox(bbox)
C:\Users\amy.macfadyen\PyProjects\xarray-subset-grid\xarray_subset_grid\accessor.py:47: UserWarning: no grid type found in this dataset
warnings.warn("no grid type found in this dataset")
In [107]:
What went wrong?
It throws this warning
UserWarning: no grid type found in this dataset
warnings.warn("no grid type found in this dataset")
And returns None
Also of note -- you only get the warning if you open a multifile dataset -- but it returns None regardless (i.e., it doesn't work in either case)
Operating System
Windows
Version
0.1.1.dev8+g97ec48035
Python Version
3.10
Code to Reproduce
Errors, Traceback, and Logs
In [106]: ds.xsg.subset_bbox(bbox) C:\Users\amy.macfadyen\PyProjects\xarray-subset-grid\xarray_subset_grid\accessor.py:47: UserWarning: no grid type found in this dataset warnings.warn("no grid type found in this dataset") In [107]: