Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add update for conmon vert plots.
  • Loading branch information
EdwardSafford-NOAA committed Dec 29, 2023
1 parent e5cd91b commit 6360f9a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/eva/data/mon_data_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6360f9a

Please sign in to comment.