Synthetic bathymetry inversion¶

This website documents the code and Jupyter notebooks included as part of the manuscript: “Gravity Inversion for Sub-Ice Shelf Bathymetry: Strengths, Limitations, and Insights from Synthetic Modeling”. The site is build from the following GitHub repository: https://github.com/mdtanker/synthetic_bathymetry_inversion

While most of the code is from external packages, such as Invert4Geom for the inversion, there is some code supplied in src/, which can be viewed here.

All of the notebooks can be viewed at the left sidebar.

All the generated results are stored in the Zenodo archive.



Instructions to re-run the notebooks¶

Getting the code¶

You can download a copy of all the files for this project by cloning the GitHub repository:

git clone https://github.com/mdtanker/synthetic_bathymetry_inversion

Dependencies¶

These instructions assume you have Python (>=3.11) installed. If you don’t we recommend installing it with miniforge for a simple and minimal setup.

You can setup your environment in two ways: 1) with pixi, or 2) with conda (or mamba).

pixi¶

Install pixi with the instructions at https://pixi.sh/latest/installation/

Then install the environment defined in pyproject.toml with:

pixi install

conda or mamba¶

Install the required dependencies with either conda or mamba:

cd synthetic_bathymetry_inversion

mamba env create --file environment.yml --name synthetic_bathymetry_inversion

Activate the newly created environment:

mamba activate synthetic_bathymetry_inversion

Developer instructions¶

Export pixi environment to a conda environment.yml file:

pixi workspace export conda-environment environment.yml

Create the docs locally:

pixi run api
pixi run docs

Style-checks and formatting the code / notebooks

pixi run style