xoa.core.grid.unwrap_grid_longitudes

xoa.core.grid.unwrap_grid_longitudes#

xoa.core.grid.unwrap_grid_longitudes(lon)[source]#

Make the longitudes of a 2D grid continuous across the dateline

The first point is kept, and each other one is shifted by a multiple of 360° to be next to its neighbour along the lines, or along the first column. The result may be out of [-180, 180].

Parameters:

lon (array_like) – 2D longitudes

Returns:

numpy.ndarray