Skip to main content

Geospatial image resampling in Python

Project description

Build Status Coverage Status DOI

Pyresample

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.

Documentation

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

Citation

Hoese, D., Raspaud, M., Lahtinen, P., Roberts, W., Lavergne, et al. (2020). pytroll/pyresample: Version 1.16.0. Zenodo. https://doi.org/10.5281/zenodo.3372769

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyresample, version 1.19.0
Filename, size File type Python version Upload date Hashes
Filename, size pyresample-1.19.0-cp35-cp35m-manylinux1_i686.whl (3.3 MB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size pyresample-1.19.0-cp35-cp35m-manylinux1_x86_64.whl (3.4 MB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size pyresample-1.19.0-cp36-cp36m-macosx_10_14_x86_64.whl (2.2 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size pyresample-1.19.0-cp36-cp36m-manylinux1_i686.whl (3.3 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size pyresample-1.19.0-cp36-cp36m-manylinux1_x86_64.whl (3.4 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size pyresample-1.19.0-cp37-cp37m-macosx_10_14_x86_64.whl (2.2 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pyresample-1.19.0-cp37-cp37m-manylinux1_i686.whl (3.3 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pyresample-1.19.0-cp37-cp37m-manylinux1_x86_64.whl (3.4 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pyresample-1.19.0-cp37-cp37m-win_amd64.whl (2.2 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pyresample-1.19.0-cp38-cp38-macosx_10_14_x86_64.whl (2.2 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size pyresample-1.19.0-cp38-cp38-manylinux1_i686.whl (3.4 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size pyresample-1.19.0-cp38-cp38-manylinux1_x86_64.whl (3.5 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size pyresample-1.19.0-cp38-cp38-win_amd64.whl (2.2 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size pyresample-1.19.0-cp39-cp39-macosx_10_14_x86_64.whl (2.2 MB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size pyresample-1.19.0-cp39-cp39-manylinux1_i686.whl (3.3 MB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size pyresample-1.19.0-cp39-cp39-manylinux1_x86_64.whl (3.4 MB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size pyresample-1.19.0-cp39-cp39-win_amd64.whl (2.2 MB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size pyresample-1.19.0.tar.gz (6.2 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page