polaris.tasks.ocean.horiz_press_grad.metrics.rms

polaris.tasks.ocean.horiz_press_grad.metrics.rms(values: ndarray) → float[source]

Compute the root mean square over finite values.

Parameters:

values (numpy.ndarray) – The values to reduce. Non-finite entries are ignored.

Returns:

float – The RMS of the finite entries.