xoa.core.geo.cell_half_extents#
- xoa.core.geo.cell_half_extents(lon, lat, elon, elat)[source]#
Half extents in longitude and latitude of the cells of a 2D grid
The extent of a cell is that of the envelope of its corners, that are given by the edges as returned by
xoa.core.grid.edges(). It is twice the distance from the center to the envelope, which is large for rotated cells.- Parameters:
lon (array_like(ny, nx)) – Cell centers
lat (array_like(ny, nx)) – Cell centers
elon (array_like(ny+1, nx+1)) – Cell edges, with longitudes made continuous across the dateline
elat (array_like(ny+1, nx+1)) – Cell edges, with longitudes made continuous across the dateline
- Returns:
array_like(ny, nx) – Half extent in longitude
array_like(ny, nx) – Half extent in latitude