cartopy.img_transform.warp_img

cartopy.img_transform.warp_img(fname, target_proj, source_proj=None, target_res=(400, 200))[source]

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

Parameters
  • fname – Image filename to be loaded and warped.

  • target_proj – The target Projection instance for the image.

  • source_proj (optional) – The source Projection instance of the image. Defaults to a PlateCarree projection.

  • target_res (optional) – The (nx, ny) resolution of the target projection. Where nx defaults to 400 sample points, and ny defaults to 200 sample points.