MSC AniMet is a simple tool enabling users to interact with MSC Open Data weather data and create custom weather animations for any area in the world. The resulting animations can be downloaded and shared with a permalink.
MSC AniMet can be used to showcase a diversity of weather events such as storms, heat waves, hurricane trajectories, air quality events, extreme wind gusts, and much more.
In its current incarnation, MSC AniMet provides access to GeoMet-Weather layers.
A publically available version can be found at https://eccc-msc.github.io/msc-animet/ and the associated documentation is available via the Meteorological Service of Canada open data documentation.
- Node.js
Dependencies are listed in package.json. Dependencies
are automatically installed during MSC AniMet
installation.
# clone codebase and install
git clone https://github.com/ECCC-MSC/msc-animet.git
cd msc-animet
npm i
npm run serve
Server will be located at http://localhost:8080
npm run build
Bugs, enhancements and issues may be posted on GitHub, but most are managed internally.
A static list of layer names and titles is generated for ease of translation and reference without needing to make a large request for the global WMS GetCapabilities document on application load. A Python script is used to update the /src/locales/{lang}/layers.json
and the /src/assets/trees/tree_{lang}.js
. To update the layer name files, do the following (instructions for Linux):
# Set directory name of your Python virtual environment
PYTHON_VENV=generate-tree-venv
# Create Python virtual environment
python3 -m venv --system-site-packages $PYTHON_VENV
# Activate virtual env
. $PYTHON_VENV/bin/activate
# Install deps
pip install owslib
# Update layers_en|fr.json
cd ./scripts
python3 generate_trees_layers_list.py