Image and vector transformations#

There are several useful utility functions in cartopy to help transform and reshape data when going from one projection to another.

Image transformations#

img_transform.mesh_projection(projection, nx, ny)

Return sample points in the given projection which span the entire projection range evenly.

img_transform.regrid(array, source_x_coords, ...)

Regrid the data array from the source projection to the target projection.

img_transform.warp_array(array, target_proj)

Regrid the data array from the source projection to the target projection.

img_transform.warp_img(fname, target_proj[, ...])

Regrid the image file from the source projection to the target projection.

Vector transformations#

vector_transform.vector_scalar_to_grid(...)

Transform and interpolate a vector field to a regular grid in the target projection.

Longitude wrapping#

util.add_cyclic_point(data[, coord, axis])

Add a cyclic point to an array and optionally a corresponding coordinate.

LinearRing/LineString projection#

trace.project_linear(geometry, src_crs, ...)

Project a geometry from one projection to another.

trace.Interpolator

trace.CartesianInterpolator

trace.SphericalInterpolator

trace.LineAccumulator()