Skip to content

Commit 19efa65

Browse files
committed
NetCDF lazy streaming only squeeze first axis.
1 parent 0794594 commit 19efa65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/iris/fileformats/netcdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2871,7 +2871,7 @@ def _lazy_stream_data(data, fill_value, fill_warn, cf_var):
28712871
# versus the cf_var - to avoid a broadcasting ambiguity.
28722872
# Happens when bounds data is for a scalar point - array is 2D but
28732873
# contains just 1 row, so the cf_var is 1D.
2874-
data = data.squeeze()
2874+
data = data.squeeze(axis=0)
28752875

28762876
if is_lazy_data(data):
28772877

0 commit comments

Comments
 (0)