We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ca080a commit cf37939Copy full SHA for cf37939
uxarray/core/api.py
@@ -107,6 +107,9 @@ def open_grid(
107
108
else:
109
# Attempt to use Xarray directly for remaining input types
110
+ # Force netCDF4 engine for .nc files to avoid scipy reader issues
111
+ if isinstance(grid_filename_or_obj, (str, os.PathLike)) and str(grid_filename_or_obj).endswith('.nc'):
112
+ kwargs.setdefault('engine', 'netcdf4')
113
grid_ds = xr.open_dataset(grid_filename_or_obj, chunks=grid_chunks, **kwargs)
114
grid = Grid.from_dataset(grid_ds, use_dual=use_dual)
115
0 commit comments