polaris.tasks.ocean.horiz_press_grad.column.get_array_from_mid_grad
- polaris.tasks.ocean.horiz_press_grad.column.get_array_from_mid_grad(config: PolarisConfigParser, name: str, x: ndarray) ndarray[source]
Get an array at a given set of horizontal points based on values defined at the midpoint (x=0) and their constant gradient with respect to x.
- Parameters:
config (PolarisConfigParser) – The configuration parser containing the options “{name}_mid” and “{name}_grad” in the “horiz_press_grad” section.
x (np.ndarray) – The x-coordinates at which to evaluate the array
name (str) – The base name of the configuration options
- Returns:
array (np.ndarray) – The array evaluated at the given x-coordinates