Skip to content

Commit

Permalink
first attempt to get histograms on web output
Browse files Browse the repository at this point in the history
  • Loading branch information
brianpm committed Feb 6, 2025
1 parent 999a11a commit 7c0539f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
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","Special"]
"NHPolar","SHPolar","TimeSeries","Histogram","Special"]

#+++++++++++++
# Constants
Expand Down
8 changes: 8 additions & 0 deletions scripts/plotting/adf_histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,14 @@ def get_load_args(adfobj, case, variablename):
plot_name = plot_loc / f"{var}_{season}_{plot_name_string}.{plot_type}"
fig.savefig(plot_name, bbox_inches='tight', dpi=72)
plt.close(fig)
adfobj.add_website_data(
plot_name,
var,
None,
season=season,
multi_case=True,
plot_type="Histogram",
)
print(f"\t Saved {var} Histogram for {season}: {plot_name.name}")

def make_histograms(data, land, vres):
Expand Down

0 comments on commit 7c0539f

Please sign in to comment.