This workshop was given as part of the EUMETNET project RODEO, in the context of Work Package 5 (Climate data). The workshop was given on 2024-06-13 and 2024-06-14 in Helsinki, Finland. See the slides of the workshop if you would like to follow along.
Clone this repository
git clone https://github.com/EURODEO/wp5-edr-workshop.git
cd wp5-edr-workshop
Go to branch step_0
if you would like to follow the workshop steps. The main
branch contains the full example.
git checkout step_0
It is recommended to use a Python virtual environment.
python3 -m venv venv/
You can install dependencies using pip3
or pip-sync
(from the pip-tools
package)
pip3 install -r requirements.txt
or
pip3 install pip-tools
pip-sync
Run the API in debug mode using
uvicorn main:app --reload
This automatically reloads the API if you make any changes to the source. It is also possible to start uvicorn directly using:
python3 main.py
In Pycharm or Visual Studio Code, add main.py
Python3 run configuration. This
will start uvicorn while still allowing to do step debugging inside the IDE.
A good place to visualize GeoSJON is here. For CoverageJSON you can use the Playground.
To update the dependencies you can change requirements.in
and run pip-compile
from the pip-tools
package.
pip3 install pip-tools
pip-compile --upgrade --no-emit-index-url