Skip to content

Commit

Permalink
FIX: read_arm_mmcr fails when using a read-only input file (#888)
Browse files Browse the repository at this point in the history
* 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 <atheisen@anl.gov>
  • Loading branch information
isilber and AdamTheisen authored Dec 19, 2024
1 parent 372f565 commit 0125b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion act/io/arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ def read_arm_mmcr(filenames):
# read it in with xarray
multi_ds = []
for f in filenames:
nc = Dataset(f, 'a')
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')
Expand Down

0 comments on commit 0125b37

Please sign in to comment.