clouddrift.sphere.recast_lon180#
- clouddrift.sphere.recast_lon180(lon: ndarray) ndarray [source]#
Recast (convert) longitude values to the range [-180, 180[. This is a convenience wrapper around
recast_lon()
withlon0 = -180
.Parameters#
- lonnp.ndarray
An N-d array of longitudes in degrees
Returns#
- np.ndarray
Converted longitudes in the range [-180, 180[
Examples#
>>> recast_lon180(200) -160
>>> recast_lon180(-200) 160
See Also#