Skip to content

Commit 0125b37

Browse files
isilberAdamTheisen
andauthored
FIX: read_arm_mmcr fails when using a read-only input file (#888)
* FIX: `read_arm_mmcr` fails when using a read-only input file * FIX: add condition on "heights" dimension * ENH: I think I have a fix to work for read only. The proposed method did not work on my mac after downloading data. --------- Co-authored-by: AdamTheisen <[email protected]>
1 parent 372f565 commit 0125b37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

act/io/arm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ def read_arm_mmcr(filenames):
841841
# read it in with xarray
842842
multi_ds = []
843843
for f in filenames:
844-
nc = Dataset(f, 'a')
844+
nc = Dataset(f, 'a', diskless=True)
845845
# Change heights name to range to read appropriately to xarray
846846
if 'heights' in nc.dimensions:
847847
nc.renameDimension('heights', 'range')

0 commit comments

Comments
 (0)