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 cf37939 commit 6553bc4Copy full SHA for 6553bc4
uxarray/core/api.py
@@ -108,8 +108,10 @@ def open_grid(
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')
+ if isinstance(grid_filename_or_obj, (str, os.PathLike)) and str(
+ grid_filename_or_obj
113
+ ).endswith(".nc"):
114
+ kwargs.setdefault("engine", "netcdf4")
115
grid_ds = xr.open_dataset(grid_filename_or_obj, chunks=grid_chunks, **kwargs)
116
grid = Grid.from_dataset(grid_ds, use_dual=use_dual)
117
0 commit comments