C-Star

C-Star#

C-Star is an open-source system for building, running and sharing regional ocean simulations. It is developed by ocean and biogeochemical modelers and scientific software engineers at [C]Worthy to support Monitoring, Reporting and Verification (MRV) of ocean-based carbon dioxide removal. Today it runs UCLA-ROMS optionally coupled to the MARBL biogeochemistry model, on a laptop or on a supported HPC system, from the same description of the run.

How it works#

C-Star is organized around two ideas.

An application is something you can run: - the UCLA-ROMS model - Forge, the tool that builds a new UCLA-ROMS domain - any number of smaller data transformation steps or analysis packages

A blueprint is a YAML file holding every input an application needs to produce its result: which model code to build, which input files to use, which settings to apply. Given the same blueprint, an application produces the same result on any supported machine, which is what makes a C-Star simulation shareable and reproducible.

A simple ocean modeling project moves through three basic steps:

  1. Describe the domain. The Forge wizard, a form that runs in your browser or as a Jupyter notebook, walks you through choosing a model configuration, a region and grid, forcing datasets, and a run window. It writes a forge blueprint.

  2. Generate the inputs. Running that forge blueprint downloads the source datasets, builds the grid, initial conditions, boundary and surface forcing, and rivers and tides where requested, and writes the ROMS namelist. Its output is a UCLA-ROMS blueprint pointing at everything the model needs.

  3. Run the simulation. Running the UCLA-ROMS blueprint fetches and compiles the model code and executes the simulation. Output lands in the blueprint’s working directory.

The wizard can be run on any machine, even your laptop, and the Forge blueprint can then be moved to a different machine, like an HPC, where you want heavier computations to take place, or where collections of source data may be staged among your working group.

Running any blueprint independently can be done with the command cstar blueprint run <blueprint.yaml>, or, on a cluster, cstar blueprint submit <blueprint.yaml>, which sends it to the job scheduler. To run several simulations as one unit, a workplan lists the blueprints to run as steps, with dependencies between them. C-Star schedules the steps, submits them to the cluster’s job scheduler, and tracks their status, so a chain such as a spin-up followed by an experiment and its control can be launched and monitored with a single run ID. Steps can pass information to one another at run time: for example, a restart file from one simulation becoming the initial conditions of the next.

The same building blocks cover most regional modeling projects: an outer domain feeding boundary conditions to a nested inner domain, an ensemble that varies the forcing of one blueprint across steps, a post-processing or diagnostics application run on the output of an earlier step. A finished workplan is a file, so a colleague can reproduce the whole sequence or change one input and rerun it. Blueprints are versioned and hashed, and every run keeps its inputs, rendered configuration and logs alongside its output, so what produced a result can be checked afterwards.

Reusable pieces of a domain description live in a catalog: model configurations, domains, forcing selections and output settings, plus saved blueprints. C-Star ships a small bundled catalog to start from, and everything you save from the wizard goes into your own catalog layer.

Principles#

C-Star is built with these principles in mind:

  • Scientific integrity. The models are trusted, community-developed codes with decades of development behind them, and community involvement keeps the system tracking the best available science.

  • Transparency and accessibility. The code is open, so both academic and commercial users can inspect and trust what it does.

  • Reproducibility and auditability. Simulations that underpin carbon removal claims must be shareable and reproducible by others. Blueprints make a simulation a complete, reviewable document.

  • Ease of use. A consistent workflow that diverse users can apply the same way.

  • Standardization. A common framework gives a consistent level of quality across projects.