Skip to content

Commit

Permalink
Closes icenet-ai#11: titles and summary
Browse files Browse the repository at this point in the history
  • Loading branch information
JimCircadian committed Sep 22, 2023
1 parent dd405d5 commit 408fbd0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions icenet_app/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
7 changes: 7 additions & 0 deletions icenet_app/templates/index.j2
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,16 @@
<dd>{{ icenet_metadata['spatial_resolution'] }} in {{ icenet_metadata['geospatial_bounds_crs'] }}</dd>
</dl>
</header>

{% endif %}
<main class="bsk-panel-body">
{% if icenet_metadata %}
<div class="bsk-row">
<div class="bsk-col-12-md-12 bsk-docs-content-block">
<div class="bsk-col-12-md-12 bsk-docs-content-block">{{ icenet_metadata['summary'] }}</div>
</div>
</div>

<div class="bsk-row">
<div class="bsk-col-12-md-12 bsk-docs-content-block">
<div class="bsk-col-12-md-4 bsk-docs-content-block"></div>
Expand Down

0 comments on commit 408fbd0

Please sign in to comment.