From 0125b371a18bb51387d7dacc0413c38294788dd9 Mon Sep 17 00:00:00 2001 From: Israel Silber <55999320+isilber@users.noreply.github.com> Date: Thu, 19 Dec 2024 08:55:48 -0800 Subject: [PATCH] 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 --- act/io/arm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/act/io/arm.py b/act/io/arm.py index 05c9201a87..f8dc8f9e7f 100644 --- a/act/io/arm.py +++ b/act/io/arm.py @@ -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')