polaris.tasks.ocean.realistic_global.dynamic_adjustment.checks.check_salinity_max
- polaris.tasks.ocean.realistic_global.dynamic_adjustment.checks.check_salinity_max(value: float | None, when: float | None, salinity_max: float, stage_name: str, logger: Any) None[source]
Raise if the stage’s maximum salinity exceeds the threshold.
The companion to
check_temperature_max(), and for the same reason: a runaway shows up in the tracer extremes before it shows up anywhere else. Salinity earns its own check rather than riding on temperature because the two fail independently – the WOA23 source data carries a warm artifact off Sumatra and a salty one in the Red Sea, in different places.See
check_temperature_max()for the arguments.