clouddrift.sphere.recast_lon360

Contents

clouddrift.sphere.recast_lon360#

clouddrift.sphere.recast_lon360(lon: ndarray) ndarray[source]#

Recast (convert) longitude values to the range [0, 360[. This is a convenience wrapper around recast_lon() with lon0 = 0.

Parameters#

lonnp.ndarray

An N-d array of longitudes in degrees

Returns#

np.ndarray

Converted longitudes in the range [0, 360[

Examples#

>>> recast_lon360(200)
200
>>> recast_lon360(-200)
160

See Also#

recast_lon(), recast_lon180()