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_pressureconfig 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:
config (polaris.config.PolarisConfigParser) – Configuration options, including
vertical_grid:surface_pressuren_cells (int) – The number of cells in the mesh
- Returns:
surface_pressure (xarray.DataArray) – A uniform surface pressure field with dimension
nCells