Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new variables wave_peak_period, albedo and hail #345

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/routes/en/docs/historical-forecast-api/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@
{ name: 'convective_inhibition', label: 'Convective Inhibition' },
{ name: 'freezing_level_height', label: 'Freezing Level Height' },
{ name: 'boundary_layer_height', label: 'Boundary Layer Height PBL' },
{ name: 'hail', label: 'Hail (only Met Office UK 2km)' }
]
];

Expand Down
3 changes: 2 additions & 1 deletion src/routes/en/docs/historical-weather-api/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@
],
[
{ name: 'is_day', label: 'Is Day or Night' },
{ name: 'sunshine_duration', label: 'Sunshine Duration' }
{ name: 'sunshine_duration', label: 'Sunshine Duration' },
{ name: 'albedo', label: 'Albedo (only CERRA)' },
]
];

Expand Down
62 changes: 45 additions & 17 deletions src/routes/en/docs/marine-weather-api/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@
]
];

const additionalVariables = [
[
{ name: 'wave_peak_period', label: 'Wave Peak Period (ERA5 only)' },
],
[
]
];


let models = [
[
{ name: 'best_match', label: 'Best match', caption: 'MeteoFrance Wave & Currents' },
Expand Down Expand Up @@ -258,35 +267,29 @@
<div class="row py-3 px-0">
<div class="accordion" id="accordionVariables">
<AccordionItem
id="models"
title="Wave Models"
count={countVariables(models, $params.models)}
id="additional-variables"
title="Additional Variables And Options"
count={countVariables(additionalVariables, $params.hourly)}
>
{#each models as group}
<div class="col-md-6 mb-3">
{#each additionalVariables as group}
<div class="col-md-6">
{#each group as e}
<div class="form-check">
<input
class="form-check-input"
type="checkbox"
value={e.name}
id="{e.name}_model"
name="models"
bind:group={$params.models}
id="{e.name}_hourly"
name="hourly"
bind:group={$params.hourly}
/>
<label class="form-check-label" for="{e.name}_model"
>{e.label}&nbsp;<span class="text-muted">({e.caption})</span></label
>
<label class="form-check-label" for="{e.name}_hourly">{e.label}</label>
</div>
{/each}
</div>
{/each}
</AccordionItem>
<AccordionItem
id="additional-variables"
title="Additional Options"
>
<div class="col-md-12 mb-3">

<div class="col-md-12 mb-3 mt-3">
<small class="text-muted"
>Note: You can further adjust the forecast time range for hourly weather variables using <mark>&forecast_hours=</mark> and <mark>&past_hours=</mark> as shown below.
</div>
Expand Down Expand Up @@ -344,6 +347,31 @@
</div>
</div>
</AccordionItem>
<AccordionItem
id="models"
title="Wave Models"
count={countVariables(models, $params.models)}
>
{#each models as group}
<div class="col-md-6 mb-3">
{#each group as e}
<div class="form-check">
<input
class="form-check-input"
type="checkbox"
value={e.name}
id="{e.name}_model"
name="models"
bind:group={$params.models}
/>
<label class="form-check-label" for="{e.name}_model"
>{e.label}&nbsp;<span class="text-muted">({e.caption})</span></label
>
</div>
{/each}
</div>
{/each}
</AccordionItem>
</div>
</div>

Expand Down