py_eddy_tracker.generic.wrap_longitude

py_eddy_tracker.generic.wrap_longitude(x, y, ref, cut=False)[source]

Will wrap contiguous longitude with reference as western boundary.

Parameters:
  • x (array) –

  • y (array) –

  • ref (float) – longitude of reference, all the new values will be between ref and ref + 360

  • cut (bool) – if True line will be cut at the bounds

Returns:

lon,lat

Return type:

(array,array)