xoa.core.grid.compute_centered_resolution

xoa.core.grid.compute_centered_resolution#

xoa.core.grid.compute_centered_resolution(lon, lat, radius=6371000.0)[source]#

Compute the grid resolution at the grid points along x and y

It is the mean of the resolutions between the adjacent points, and the resolution of the only adjacent point on the edges. See compute_resolution() for the resolutions between adjacent points.

Parameters:
  • lon (array_like(ny, nx)) – Longitudes and latitudes in degrees

  • lat (array_like(ny, nx)) – Longitudes and latitudes in degrees

  • radius (float) – Radius of the sphere in meters, which defaults to the earth radius

Returns:

  • array(ny, nx) – Resolution in meters along x

  • array(ny, nx) – Resolution in meters along y