Concept: Build reproducible models in 3 steps:
mesh
: reproduce the meshingmodel
: reproduce the modelresults
: reproduce the results data extraction (2D and 1D Time Series)
Example: Using scripts/model_v2.2.py
, you can produce this 3km global mesh and model metocean data
Mesh version | resolution | hole in the north pole | bathy gradient | other | model application |
---|---|---|---|---|---|
v0.0 |
50km | ❌ | yes | - | 2D |
v0.1 |
20km | ❌ | yes | - | 2D |
v0.2 |
20km | ❌ | yes | max depth at -20m | 2D |
v0.3 |
20km | yes | ❌ | - | waves |
v0.4 |
20km | yes | yes | - | 3D |
v1.2 |
6km | ❌ | yes | - | 2D |
v1.3 |
6km | yes | ❌ | - | waves |
v1.4 |
6km | yes | yes | - | 3D |
v2.2 |
3km | ❌ | yes | - | 2D |
first build the binaries:
cd v0.0
mamba env create -n v0 -f binary-om-telemac-openmpi-p3.11.yml
then build the correct python libraries
python -mvenv .venv
source .venv/bin/activate
poetry install
then run the meshing script:
cd ..
python scripts/mesh_v0.0.py
By default, all 3 steps are activated, to deactivate meshing:
change:
if __name__ == "__main__":
main()
into:
if __name__ == "__main__":
main(mesh = False)
in scripts/mesh_v0.0.py