From 6360f9ab06a7bfb708eb47df4b0700fe4b8fed36 Mon Sep 17 00:00:00 2001 From: "edward.safford" Date: Fri, 29 Dec 2023 18:40:08 +0000 Subject: [PATCH] Ref #167 Add update for conmon vert plots. --- src/eva/data/mon_data_space.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/eva/data/mon_data_space.py b/src/eva/data/mon_data_space.py index 6eaaa42f..51f1ffad 100644 --- a/src/eva/data/mon_data_space.py +++ b/src/eva/data/mon_data_space.py @@ -1023,7 +1023,16 @@ def loadConditionalItems(self, dataset, chans_dict, levs_dict, datatype_dict, dataset['chan_nassim'] = (['Channel'], chans_dict["chans_nassim"]) if levs_dict is not None: - dataset['level'] = (['Level'], levs_dict["levels"]) + + # If datatype_dict is available then level needs to include that dimension + # for potential batch processing by DataType (conmon vert plots). + if datatype_dict is not None: + combined_list = [] + for x in datatype_dict['datatype']: + combined_list.append(levs_dict['levels']) + dataset['level'] = (['DataType', 'Level'], combined_list) + else: + dataset['level'] = (['Level'], levs_dict["levels"]) dataset['level_yaxis_z'] = (['Level'], [0.0]*len(levs_dict["levels"])) if 'levels_assim' in levs_dict: