Skip to content

Commit

Permalink
fixing web page generation
Browse files Browse the repository at this point in the history
  • Loading branch information
brianpm committed Feb 6, 2025
1 parent 7c0539f commit 4c60852
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/adf_variable_defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
# Available ADF Default Plot Types
#+++++++++++++
default_ptypes: ["Tables","LatLon","LatLon_Vector","Zonal","Meridional",
"NHPolar","SHPolar","TimeSeries","Histogram","Special"]
"NHPolar","SHPolar","TimeSeries","GlobalHistogramTS", "GlobalHistogramClimo","Special"]

#+++++++++++++
# Constants
Expand Down
6 changes: 3 additions & 3 deletions scripts/plotting/adf_histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def get_load_args(adfobj, case, variablename):
skip_make_plot = []
for var in var_list:
for s in seasons:
plot_name = plot_loc / f"{var}_{s}_{plot_name_string}.{plot_type}"
plot_name = plot_loc / f"{var}_{s}_{plot_name_string}_Mean.{plot_type}"
plot_exists = plot_name.is_file()
print(
f"Projected file name: {plot_name.name}. Exists: {plot_exists}"
Expand Down Expand Up @@ -202,7 +202,7 @@ def get_load_args(adfobj, case, variablename):
ha='right', # Horizontal alignment: right
va='bottom') # Vertical alignment: bottom

plot_name = plot_loc / f"{var}_{season}_{plot_name_string}.{plot_type}"
plot_name = plot_loc / f"{var}_{season}_{plot_name_string}_Mean.{plot_type}"
fig.savefig(plot_name, bbox_inches='tight', dpi=72)
plt.close(fig)
adfobj.add_website_data(
Expand All @@ -211,7 +211,7 @@ def get_load_args(adfobj, case, variablename):
None,
season=season,
multi_case=True,
plot_type="Histogram",
plot_type=plot_name_string,
)
print(f"\t Saved {var} Histogram for {season}: {plot_name.name}")

Expand Down

0 comments on commit 4c60852

Please sign in to comment.