Skip to content

Commit 9585d40

Browse files
committed
Fix bug where icemod is only grid input to _process_parent() utility func.
1 parent 4af7a27 commit 9585d40

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

nemo_cookbook/processing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,8 @@ def _process_parent(
656656

657657
# Define root node inheritable coords & attrs from first non-domain grid.
658658
root_name = [grid for grid in d_parent.keys() if grid != 'domain'][0]
659+
# Handle case where icemod is only non-domain grid:
660+
root_name = 'gridT' if root_name == 'icemod' else root_name
659661
d_root = d_proc_grids[root_name].drop_dims(["j", "i", "k"])
660662
d_root.attrs = {'nftype': nftype, 'iperio': iperio}
661663

0 commit comments

Comments
 (0)