regionmask.core.utils._wrapAngle

regionmask.core.utils._wrapAngle(lon: float | Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], wrap_lon: None | bool | Literal[180, 360] = True, is_unstructured: bool = False) ndarray

wrap the angle to the other base

If lon is from -180 to 180 wraps them to 0..360 If lon is from 0 to 360 wraps them to -180..180