Skip to content

Commit

Permalink
ENH: I think I have a fix to work for read only. The proposed method …
Browse files Browse the repository at this point in the history
…did not work on my mac after downloading data.
  • Loading branch information
AdamTheisen committed Dec 17, 2024
1 parent 8e37e2b commit 476f834
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions act/io/arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,12 +841,12 @@ def read_arm_mmcr(filenames):
# read it in with xarray
multi_ds = []
for f in filenames:
nc = Dataset(f, 'r')
nc = Dataset(f, 'a', diskless=True)
# Change heights name to range to read appropriately to xarray
if 'heights' in nc.dimensions:
nc.renameDimension('heights', 'range')
if nc is not None:
ds = xr.open_dataset(xr.backends.NetCDF4DataStore(nc))
# Change heights name to range to read appropriately to xarray
if 'heights' in ds.dims:
ds = ds.rename_dims({"heights": "range"})
multi_ds.append(ds)
# Concatenate datasets together
if len(multi_ds) > 1:
Expand Down

0 comments on commit 476f834

Please sign in to comment.