Skip to content

BottomRedoxModel/ocox-chem-sim

 
 

Repository files navigation

Oslofjord simulation with FjordSim

Data preparation

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).

Installation

Python:

  1. Install conda https://conda-forge.org/download/.
  2. Create a conda environment conda create --name oslofjord python=3.12
  3. Activate the envoronment conda activate oslofjord
  4. Navigate to the oslofjord directory
  5. Install the dependencies pip install -e .
  6. Xesmf is required, see https://xesmf.readthedocs.io/en/stable/installation.html; install with conda install -c conda-forge xesmf.

Julia:

  1. Install julia https://julialang.org/downloads/.
  2. Run Julia REPL from the directory with Project.toml and activate the FjordsSim environment julia --project.
  3. Enter the Pkg REPL by pressing ] from Julia REPL.
  4. Type instantiate to 'resolve' a Manifest.toml from a Project.toml to install and precompile dependency packages.

Usage

  1. Download the initial grid (OF160_grid_v2.nc) and atmospheric forcing files.
  2. Use scripts in the preprocess folder to download and prepare the bathymetry and forcing files.
  3. Run simulation julia --project simulation.jl

About

Oceananigans-OxyDep

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Julia 39.4%
  • Jupyter Notebook 33.0%
  • Python 27.6%