tams.contours

Contents

tams.contours#

tams.contours(x, value, *, unstructured=None, **kwargs)#

Find contour definitions for data x at value value.

Parameters
  • x (xarray.DataArray) – Data to be contoured. Currently needs to have 'lat' and 'lon' coordinates. The array should be 2-D if structured, 1-D if unstructured.

  • value (float) – Find contours where x has this value.

  • unstructured (bool | None) – Whether the grid of x is unstructured (e.g. MPAS native output). Default: assume unstructured if x is 1-D.

Returns

List of 2-D arrays describing contours. The arrays are shape (n, 2); each row is a coordinate pair.

Return type

list[numpy.ndarray]