polaris.ocean.vertical.elevation.range_bound_label

polaris.ocean.vertical.elevation.range_bound_label(elevation)[source]

Get the label one end of an elevation range is identified by

Which end it is follows from the bound itself, since a bound that resolves per column is an infinity with the sign of the end it is.

Parameters:

elevation (float) – The elevation of the bound in m, positive up, np.inf for the sea surface or -np.inf for the seafloor

Returns:

label (str) – The label, e.g. 'top', 'bottom' or '-700m'