Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mapplot diagnostic to ClimWIP #1864

Merged
merged 23 commits into from
Nov 4, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions esmvaltool/diag_scripts/weighting/weighted_temperature_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ def mapplot(dataarray, cfg, title_pattern, filename_part, ancestors,
def visualize_and_save_temperature(temperature: 'xr.DataArray', cfg: dict,
ancestors: list):
"""Wrap mapplot: absolute temperature."""
title_pattern = r'Weighted {metric} temperature \n{period} ($\degree$C)'
title_pattern = '\n'.join(
['Weighted {metric} temperature', r'{period} ($\degree$C)'])
lukasbrunner marked this conversation as resolved.
Show resolved Hide resolved
lukasbrunner marked this conversation as resolved.
Show resolved Hide resolved
filename_part = 'temperature_change_weighted_map'
mapplot(temperature,
cfg,
Expand All @@ -102,8 +103,8 @@ def visualize_and_save_temperature(temperature: 'xr.DataArray', cfg: dict,
def visualize_and_save_difference(temperature_difference: 'xr.DataArray',
cfg: dict, ancestors: list):
"""Wrap mapplot: temperature difference between weighted and unweighted."""
title_pattern = r'\n'.join([
r'Difference: weighted minus unweighted {metric} temperature',
title_pattern = '\n'.join([
'Difference: weighted minus unweighted {metric} temperature',
r'{period} ($\degree$C)',
])
filename_part = 'temperature_change_difference_map'
Expand Down