Skip to content

Commit

Permalink
add support for coastal flood risk index in geomet-ogc-api
Browse files Browse the repository at this point in the history
updated cron

flake8
  • Loading branch information
Louis-Philippe Rousseau Lambert committed Jul 25, 2024
1 parent 910f53f commit 79e342d
Show file tree
Hide file tree
Showing 6 changed files with 419 additions and 1 deletion.
1 change: 1 addition & 0 deletions debian/conffiles
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
/opt/msc-pygeoapi/etc/sarracenia/metnotes.conf
/opt/msc-pygeoapi/etc/sarracenia/umos-realtime.conf
/opt/msc-pygeoapi/etc/sarracenia/thunderstorm-outlook.conf
/opt/msc-pygeoapi/etc/sarracenia/coastal-flood-risk-index.conf
3 changes: 3 additions & 0 deletions debian/msc-pygeoapi.cron.d
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,6 @@ MAILTO=""

# every hour at 00h, clean expired thunderstorm outlooks
0 * * * * geoadm . /local/home/geoadm/.profile && msc-pygeoapi data thunderstorm-outlook clean-outlooks --yes

# every hour at 00h, clean expired tcoastal flood risk index
0 * * * * geoadm . /local/home/geoadm/.profile && msc-pygeoapi data coastal-flood-risk-index clean-index --yes
35 changes: 35 additions & 0 deletions deploy/default/msc-pygeoapi-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4111,6 +4111,41 @@ resources:
data: ${MSC_PYGEOAPI_ES_URL}/thunderstorm_outlook
id_field: id

coastal_flood_risk_index:
type: collection
title:
en: Coastal Flooding Risk Index [experimental]
fr: Indice de risque de submersion côtière [expérimental]
description:
en: The Coastal Flooding Risk Index is a geo- and time-referenced polygon product issued by the Meteorological Service of Canada (MSC) to articulate the coastal flooding risk, impact and probability. Products are issued daily by Storm Prediction Centres and are intended to provide early notification, out to 5 days, of coastal flooding due to astronomical tide, storm surge and wave impacts.
fr: L'indice de risque de submersion côtière est un produit polygonal géoréférencé et temporel émis par le Service météorologique du Canada (SMC) afin d'articuler le risque, l'impact et la probabilité de submersion côtière. Les produits sont générés quotidiennement par les centres de prévision des intempéries et sont destinés à fournir une notification précoce, jusqu'à 5 jours, des submersions côtières dues aux marées astronomiques, aux ondes de tempête et aux impacts des vagues.
keywords:
en: [Risk, Index, Probability, Storm surge, Wave impact]
fr: [Risque, Indice, Probabilité, Onde de tempête, Impact des vagues]
crs:
- CRS84
links:
- type: text/html
rel: canonical
title:
en: Meteorological Service of Canada open data
fr: Données ouvertes du Service météorologique du Canada
href:
en: https://eccc-msc.github.io/open-data/msc-data/readme_en
fr: https://eccc-msc.github.io/open-data/msc-data/readme_fr
hreflang:
en: en-CA
fr: fr-CA
extents:
spatial:
bbox: [-72.0416665, 41.9583335, -44.2917685, 60.0415978]
crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
providers:
- type: feature
name: Elasticsearch
data: ${MSC_PYGEOAPI_ES_URL}/coastal_flood_risk_index
id_field: id

wis2-discovery-metadata:
type: collection
title: WMO WIS2 discovery metadata (experimental)
Expand Down
20 changes: 20 additions & 0 deletions deploy/default/sarracenia/coastal-flood-risk-index.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# TODO: Update for HPFX once the data is on HPFX
broker amqps://anonymous:[email protected]
queue_name q_${BROKER_USER}.${PROGRAM}.${CONFIG}.${HOSTNAME}

subtopic coastal-flooding.risk-index.#

mirror True

discard on

plugin ${MSC_PYGEOAPI_METPX_EVENT_FILE_PY}

directory ${MSC_PYGEOAPI_CACHEDIR}

loglevel ${MSC_PYGEOAPI_LOGGING_LOGLEVEL}

report_back False

instances 2
accept .*
4 changes: 3 additions & 1 deletion msc_pygeoapi/loader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ def metadata():
('msc_pygeoapi.loader.radar_coverage_realtime', 'radar_coverage_realtime'),
('msc_pygeoapi.loader.nwp_dataset_footprints', 'nwp_dataset_footprints'),
('msc_pygeoapi.loader.umos_realtime', 'umos_realtime'),
('msc_pygeoapi.loader.thunderstorm_outlook', 'thunderstorm_outlook')
('msc_pygeoapi.loader.thunderstorm_outlook', 'thunderstorm_outlook'),
('msc_pygeoapi.loader.coastal_flood_risk_index',
'coastal_flood_risk_index')
)

for module, name in commands:
Expand Down
Loading

0 comments on commit 79e342d

Please sign in to comment.