Skip to content

Commit

Permalink
Support what chunking() returns for NetCDF v3 files.
Browse files Browse the repository at this point in the history
  • Loading branch information
pp-mo committed Apr 2, 2024
1 parent b7685b9 commit f7c4c2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/iris/fileformats/netcdf/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ def _get_cf_var_data(cf_var, filename):
result = as_lazy_data(proxy, chunks=None, dask_chunking=True)
else:
chunks = cf_var.cf_data.chunking()
if chunks is None:
# Occurs for non-version-4 netcdf
chunks = "contiguous"
# In the "contiguous" case, pass chunks=None to 'as_lazy_data'.
if chunks == "contiguous":
if (
Expand Down

0 comments on commit f7c4c2d

Please sign in to comment.