In the preprocess folder there are Python Jupyter notebooks to make:
- A grid file;
- Forcing file for boundary conditions, rivers, etc.;
- Atmospheric forcing files (todo).
Python:
- Install conda https://conda-forge.org/download/.
- Create a conda environment
conda create --name oslofjord python=3.12 - Activate the envoronment
conda activate oslofjord - Navigate to the oslofjord directory
- Install the dependencies
pip install -e . - Xesmf is required, see https://xesmf.readthedocs.io/en/stable/installation.html;
install with
conda install -c conda-forge xesmf.
Julia:
- Install julia https://julialang.org/downloads/.
- Run Julia REPL from the directory with
Project.tomland activate the FjordsSim environmentjulia --project. - Enter the Pkg REPL by pressing
]from Julia REPL. - Type
instantiateto 'resolve' aManifest.tomlfrom aProject.tomlto install and precompile dependency packages.
- Download the initial grid (OF160_grid_v2.nc) and atmospheric forcing files.
- Use scripts in the preprocess folder to download and prepare the bathymetry and forcing files.
- Run simulation
julia --project simulation.jl