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 | mesher used | resolution | hole in the north pole | bathy gradient | other | model application |
---|---|---|---|---|---|---|
v0.0 |
oceanmesh | 50km | ❌ | yes | - | 2D |
v0.1 |
oceanmesh | 20km | ❌ | yes | - | 2D |
v0.2 |
oceanmesh | 20km | ❌ | yes | max depth at -20m | 2D |
v0.3 |
oceanmesh | 30km | yes | ❌ | - | waves |
v0.4 |
oceanmesh | 20km | yes | yes | - | 3D |
v1.2 |
oceanmesh | 6km | ❌ | yes | - | 2D |
v1.3 |
oceanmesh | 6km | yes | ❌ | - | waves |
v1.4 |
oceanmesh | 6km | yes | yes | - | 3D |
v1.5 |
JIGSAW | 6km | yes | yes | - | 2D |
v2.2 |
oceanmesh | 3km | ❌ | yes | - | 2D |
v2.3 |
JIGSAW | 3km | ❌ | yes | - | 2D |
v3.0 |
JIGSAW | 2km | ❌ | yes | - | 2D |
v3.1 |
JIGSAW | 1km | ❌ | 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