BGCModel#
- class roms_tools.BGCModel#
Abstract description of a ROMS biogeochemical model.
Subclasses describe a particular BGC model (e.g. MARBL) by declaring which tracers it writes to ROMS (
tracer_vars()), which additional input variables it can interpret (known_vars()), and how to complete a partially-specified tracer set (process_bgc_fields()).Two things are enforced at definition/instantiation time rather than at the first call:
process_bgc_fields()is abstract (BGCModel()itself raisesTypeError), and every concrete subclass must declare a non-empty_TRACER_VARS(checked in__init_subclass__) – an empty tracer set would make the model silently derive and fill nothing. Intermediate subclasses that leaveprocess_bgc_fields()abstract are exempt from the tracer check.Methods
Return every variable the model understands.
BGCModel.process_bgc_fields(forcings)Complete the BGC tracer set across one or more forcing objects.
Return the set of tracer variables written to ROMS output.
Per-variable metadata (grid location, vector flags, validation) for all
known_vars().BGCModel.warn_missing(present)Warn if any expected output tracers are still absent.
Attributes
BGCModel.name