From 5c24413b4fc36283b907876fa9806792f73ee987 Mon Sep 17 00:00:00 2001 From: Carsten Ehbrecht Date: Mon, 6 Nov 2023 17:30:55 +0100 Subject: [PATCH] fix decadal fix for realization var --- rook/utils/decadal_fixes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rook/utils/decadal_fixes.py b/rook/utils/decadal_fixes.py index 5d2ef16..ceefd49 100644 --- a/rook/utils/decadal_fixes.py +++ b/rook/utils/decadal_fixes.py @@ -120,7 +120,7 @@ def decadal_fix_4(ds_id, ds): def decadal_fix_5(ds_id, ds): operands = { "var_id": "realization", - "value": "1", + "value": ds.attrs.get("realization_index"), "dtype": "int32", "attrs": { "long_name": "realization",