Skip to content
Geospatial image resampling in Python
Python C++
Branch: master
Clone or download
djhoese Merge pull request #227 from djhoese/bugfix-ewa-nan-geo
Fix EWA resampling hanging when geolocation had a lot of NaNs
Latest commit ab6289c Dec 4, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Fix PR template May 8, 2018
docs Take away one doctest: Giving up, cant't get this doctest to work on … Nov 28, 2019
pyresample Handle NaNs in fornav in a more robust way Dec 4, 2019
.bumpversion.cfg Bump version: 1.10.1 → 1.10.2a0.dev0 Jul 3, 2018
.gitattributes Switch to versioneer Nov 25, 2018
.gitchangelog.rc Add bump and changelog config files Nov 15, 2016
.gitignore Add .gitignore with python and C patterns Apr 27, 2016
.pre-commit-config.yaml Add a pre-commit config Oct 22, 2019
.stickler.yml Allow line-length to be 120 May 8, 2018
.travis.yml Remove pyproj limitation in Travis Sep 5, 2019 Update changelog for v1.13.2 Oct 8, 2019
LICENSE.txt Switch to lgplv3, and bump up version number. Feb 3, 2015 Add README to the sdist manifest Mar 19, 2019
README [README] markdown + build status Dec 15, 2014 Add coverage status badge Nov 26, 2019 Switch to versioneer Nov 25, 2018
changelog_pre1.9.1.rst Rename old changelog to avoid confusion Mar 18, 2019
codecov.yml Don't check versioneer files for coverage Nov 29, 2018
readthedocs.yml Create special requirements.txt for docs May 6, 2016
setup.cfg Add versioneer files to ignored files for coverage Dec 6, 2018 Add Numpy version limitation for Python 2 Aug 4, 2019 Switch to versioneer Nov 25, 2018

Build Status Build status Coverage Status


Pyresample is a python package for resampling geospatial image data. It is the primary method for resampling in the Satpy library, but can also be used as a standalone library. Resampling or reprojection is the process of mapping input geolocated data points to a new target geographic projection and area.

Pyresample can operate on both fixed grids of data and geolocated swath data. To describe these data Pyresample uses various "geometry" objects including the AreaDefinition and SwathDefinition classes.

Pyresample offers multiple resampling algorithms including:

  • Nearest Neighbor
  • Elliptical Weighted Average (EWA)
  • Bilinear

For nearest neighbor and bilinear interpolation pyresample uses a kd-tree approach by using the fast KDTree implementation provided by the pykdtree library. Pyresample works with numpy arrays and numpy masked arrays. Interfaces to XArray objects (including dask array support) are provided in separate Resampler class interfaces and are in active development. Utility functions are available to easily plot data using Cartopy.

Pyresample is tested with Python 2.7 and 3.6, but should additionally work on Python 3.4+. Pyresample will drop Python 2.7 at the end of 2019.


See for more information on the PyTroll group and related packages.

You can’t perform that action at this time.