Skip to content

Commit f02b6f2

Browse files
feat: ensemble mean api page (#968)
Co-authored-by: Patrick Zippenfenig <patrick@zippenfenig.de>
1 parent 55348f5 commit f02b6f2

8 files changed

Lines changed: 1654 additions & 8 deletions

File tree

src/routes/en/docs/+layout.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
]
3838
},
3939
{ title: 'Historical Weather', url: '/en/docs/historical-weather-api' },
40-
{ title: 'Ensemble Models', url: '/en/docs/ensemble-api' },
40+
{ title: 'Ensemble Models', url: '/en/docs/ensemble-api', children: [
41+
{ title: 'Ensemble Mean API', url: '/en/docs/ensemble-mean-api' }
42+
]},
4143
{ title: 'Seasonal Forecast', url: '/en/docs/seasonal-forecast-api' },
4244
{ title: 'Climate Change', url: '/en/docs/climate-api' },
4345
{ title: 'Marine Forecast', url: '/en/docs/marine-weather-api' },

src/routes/en/docs/ensemble-api/+page.svelte

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,14 @@
129129
><circle cx="12" cy="12" r="10" /><path d="M12 16v-4" /><path d="M12 8h.01" /></svg
130130
>
131131
<Alert.Description>
132-
The initial version of ensemble weather models has been integrated. You can learn more about
133-
these models in the <a
132+
This API offers access to individual ensemble member forecasts from various weather models. You
133+
can retrieve up to three days of historical data. Additionally, we store <a
134+
href="/en/docs/ensemble-mean-api"
135+
title="Ensemble Mean API"
136+
class="text-link underline">ensemble means and spreads</a
137+
>
138+
with a longer retention period. For more information on ensemble models, see this
139+
<a
134140
class="text-link underline"
135141
href="https://openmeteo.substack.com/p/ensemble-weather-forecast-api"
136142
target="_blank">blog article</a

src/routes/en/docs/ensemble-api/options.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ export const bom_access_global_ensemble = [
495495
'is_day'
496496
];
497497

498-
export const meteoswiss = [
498+
export const meteoswiss_variables = [
499499
'temperature_2m',
500500
'surface_pressure',
501501
'snow_depth',
@@ -544,8 +544,8 @@ export const availableVariables: Record<string, string[]> = {
544544
ukmo_uk_ensemble_2km: ukmo_2km_variables,
545545
gem_global_ensemble: gem_global_variables,
546546
bom_access_global_ensemble: bom_access_global_ensemble,
547-
meteoswiss_icon_ch1_ensemble: meteoswiss,
548-
meteoswiss_icon_ch2_ensemble: meteoswiss
547+
meteoswiss_icon_ch1_ensemble: meteoswiss_variables,
548+
meteoswiss_icon_ch2_ensemble: meteoswiss_variables
549549
};
550550

551551
export const hourly = [
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import type { LayoutLoad } from './$types';
2+
3+
export const load = (() => {
4+
return {
5+
heroTitle: 'Ensemble Mean API',
6+
heroDescription: 'Mean Ensemble Weather Forecasts from Multiple Models',
7+
heroImage: '/images/backgrounds/forstberg.webp',
8+
heroImagePosition: 'center 65%'
9+
};
10+
}) satisfies LayoutLoad;

0 commit comments

Comments
 (0)