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 d5cd463 commit 774c591Copy full SHA for 774c591
uxarray/core/api.py
@@ -111,12 +111,9 @@ def open_grid(
111
112
else:
113
# Attempt to use Xarray directly for remaining input types
114
- # Force netCDF4 engine for .nc files to avoid scipy reader issues
115
- if isinstance(grid_filename_or_obj, (str, os.PathLike)) and str(
116
- grid_filename_or_obj
117
- ).endswith(".nc"):
118
- kwargs.setdefault("engine", "netcdf4")
119
- grid_ds = xr.open_dataset(grid_filename_or_obj, chunks=grid_chunks, **kwargs)
+ grid_ds = _open_dataset_with_fallback(
+ grid_filename_or_obj, chunks=grid_chunks, **kwargs
+ )
120
grid = Grid.from_dataset(grid_ds, use_dual=use_dual)
121
122
# Return the grid (and chunks, if requested) in a consistent manner.
0 commit comments