pyart.correct.unwrap_masked#

pyart.correct.unwrap_masked(lon, centered=False, copy=True)[source]#

Unwrap a sequence of longitudes, headings or phases in degrees.

Only valid (unmasked) values are unwrapped, so gaps in the data do not affect the result. Jumps larger than 180 degrees between consecutive valid values are treated as wraps of 360 degrees.

Parameters:
  • lon (array) – Longitudes, headings or phases in degrees. If masked, the output will also be masked.

  • centered (bool, optional) – Center the unwrapping as close to zero as possible.

  • copy (bool, optional.) – True to return a copy, False will avoid a copy when possible.

Returns:

unwrap (array) – Array of unwrapped values, in degrees.