polaris.ocean.surface_pressure.surface_pressure_from_config

polaris.ocean.surface_pressure.surface_pressure_from_config(config: PolarisConfigParser, n_cells: int) DataArray[source]

Construct a spatially uniform surface pressure field from the vertical_grid:surface_pressure config option.

Omega requires a surface pressure in its initial state, whereas MPAS-Ocean does not. Tasks that prescribe their own (spatially varying) surface pressure should do so directly rather than calling this function.

Parameters:
Returns:

surface_pressure (xarray.DataArray) – A uniform surface pressure field with dimension nCells