cartopy.img_transform.mesh_projection#
- cartopy.img_transform.mesh_projection(projection, nx, ny, x_extents=(None, None), y_extents=(None, None))[source]#
Return sample points in the given projection which span the entire projection range evenly.
The range of the x-direction and y-direction sample points will be within the bounds of the projection or specified extents.
- Parameters:
projection – A
Projection
instance.nx (int) – The number of sample points in the projection x-direction.
ny (int) – The number of sample points in the projection y-direction.
x_extents (optional) – The (lower, upper) x-direction extent of the projection. Defaults to the
x_limits
.y_extents (optional) – The (lower, upper) y-direction extent of the projection. Defaults to the
y_limits
.
- Returns:
A tuple of three items. – The x-direction sample points
numpy.ndarray
of shape (nx, ny), y-direction sample pointsnumpy.ndarray
of shape (nx, ny), and the extent of the projection range as(x-lower, x-upper, y-lower, y-upper)
.