From 408fbd0fb6fd060ed50093bd5493ee64db83b3e0 Mon Sep 17 00:00:00 2001 From: James Byrne Date: Fri, 22 Sep 2023 12:24:03 +0100 Subject: [PATCH] Closes #11: titles and summary --- icenet_app/plots.py | 4 ++-- icenet_app/templates/index.j2 | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/icenet_app/plots.py b/icenet_app/plots.py index b66f118..15d7dbc 100644 --- a/icenet_app/plots.py +++ b/icenet_app/plots.py @@ -28,7 +28,7 @@ def plot_sic_mean(date): forecast_date = get_forecast_dates()[0] leadtime = 1 if date is None else (pd.to_datetime(date) - pd.to_datetime(forecast_date)).days data = np.array(get_image_data(forecast_date, leadtime=leadtime)) - p = figure(width=500, height=500, tools=TOOLS) + p = figure(width=500, height=500, title="Sea Ice Concentration Mean", tools=TOOLS) p.x_range.range_padding = p.y_range.range_padding = 0 p.image(image=[data], x=0, y=0, dw=10, dh=10, palette=palettes.Viridis256, level="image") p.grid.grid_line_width = 0.5 @@ -41,7 +41,7 @@ def plot_sic_stddev(date): forecast_date = get_forecast_dates()[0] leadtime = 1 if date is None else (pd.to_datetime(date) - pd.to_datetime(forecast_date)).days data = np.array(get_image_data(forecast_date, data_type="sic_stddev", leadtime=leadtime)) - p = figure(width=500, height=500, tools=TOOLS) + p = figure(width=500, height=500, title="Uncertainty (ensemble standard deviation across members)", tools=TOOLS) p.x_range.range_padding = p.y_range.range_padding = 0 p.image(image=[data], x=0, y=0, dw=10, dh=10, palette=palettes.Blues256, level="image") p.grid.grid_line_width = 0.5 diff --git a/icenet_app/templates/index.j2 b/icenet_app/templates/index.j2 index 12a3c92..8e04cab 100644 --- a/icenet_app/templates/index.j2 +++ b/icenet_app/templates/index.j2 @@ -24,9 +24,16 @@
{{ icenet_metadata['spatial_resolution'] }} in {{ icenet_metadata['geospatial_bounds_crs'] }}
+ {% endif %}
{% if icenet_metadata %} +
+
+
{{ icenet_metadata['summary'] }}
+
+
+