Skip to content

Commit

Permalink
Merge pull request #295 from justin-richling/logp-plot-fix
Browse files Browse the repository at this point in the history
Fix problem with log-p plots
  • Loading branch information
justin-richling authored Mar 26, 2024
2 parents 4c40fd3 + 4722035 commit a58d820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/plotting/zonal_mean.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def zonal_mean(adfobj):
for var in var_list:
for s in seasons:
#Check zonal log-p:
plot_name_log = plot_loc / f"{var}_{s}_Zonal_logp_Mean.{plot_type}"
plot_name_log = plot_loc / f"{var}_logp_{s}_Zonal_Mean.{plot_type}"

# Check redo_plot. If set to True: remove old plot, if it already exists:
if (not redo_plot) and plot_name_log.is_file():
Expand Down Expand Up @@ -320,7 +320,7 @@ def zonal_mean(adfobj):

#Create new plot with log-p:
if has_lev:
plot_name_log = plot_loc / f"{var}_{s}_Zonal_logp_Mean.{plot_type}"
plot_name_log = plot_loc / f"{var}_logp_{s}_Zonal_Mean.{plot_type}"

if plot_name_log not in logp_zonal_skip:
pf.plot_zonal_mean_and_save(plot_name_log, case_nickname, base_nickname,
Expand Down

0 comments on commit a58d820

Please sign in to comment.