Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Bathymetry

Bathymetry (Topo) sits between the horizontal grid and the vertical grid: it needs a Grid to attach to (see Grids), and its max_depth typically feeds the vertical grid (also in Grids).

CrocoDash re-exports Topo unmodified from mom6_forge , the full API and editing mechanics live in the mom6_forge documentation, particularly the bathymetry notebooks (3_custom_bathy, 4_ingest_landmask, 5_modify_existing, 6_coarsen_existing, 10_cressman_interpolation) and the Topo Editor widget walkthrough (6_demo_editors, Section 2).

This notebook covers:

  • Section 1: remap an existing dataset (e.g. GEBCO) onto your grid

  • Section 2: interactive editing with TopoEditor

  • Section 3: load a pre-existing topo file, or build a flat/synthetic one

📖 CrocoDash grids docs · 📖 mom6_forge docs

Section 1: Remap an Existing Bathymetry Dataset

This needs a Grid to attach the bathymetry to. See Grids for how to build one. Here we build a small throwaway grid so this notebook runs on its own.

Section 2: Interactive Editing (TopoEditor)

TopoEditor is an ipywidgets-based bathymetry editor with undo/redo, version-controlled edits (a per-domain TopoLibrary/ directory records every change as a git-style operation), and live plotting, useful for fixing isolated basins, carving channels, or smoothing coastlines before case creation.

Section 3: Pre-Generated or Flat Bathymetry

Two more ways to get a Topo without remapping a dataset:

  • Section 3.1: load a topo file that already matches your grid.

  • Section 3.2: a constant-depth ocean, useful for idealized/test cases.

Section 3.1: Load a Pre-Generated Topo File

Use this when you already have a topography file that matches your grid, e.g. from a previous run or a shared community grid like NWA12.

Section 3.2: Flat Bathymetry

For idealized or test domains, skip remapping entirely and set a constant depth with topo.set_flat(depth), used throughout this gallery’s synthetic-domain examples (e.g. Interior OBC Segments).

Next steps

Once you have a Grid, Topo, and VGrid (see Grids), pass them to Case. See Case Setup.