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.

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


Release history Release notifications | RSS feed

Download files

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

Source Distribution

pyresample-1.28.3.tar.gz (5.9 MB view hashes)

Uploaded Source

Built Distributions

pyresample-1.28.3-cp311-cp311-win_arm64.whl (2.3 MB view hashes)

Uploaded CPython 3.11 Windows ARM64

pyresample-1.28.3-cp311-cp311-win_amd64.whl (2.3 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

pyresample-1.28.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pyresample-1.28.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.4 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

pyresample-1.28.3-cp311-cp311-macosx_11_0_arm64.whl (2.3 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

pyresample-1.28.3-cp311-cp311-macosx_10_9_x86_64.whl (2.4 MB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

pyresample-1.28.3-cp310-cp310-win_arm64.whl (2.3 MB view hashes)

Uploaded CPython 3.10 Windows ARM64

pyresample-1.28.3-cp310-cp310-win_amd64.whl (2.3 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

pyresample-1.28.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pyresample-1.28.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

pyresample-1.28.3-cp310-cp310-macosx_11_0_arm64.whl (2.3 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

pyresample-1.28.3-cp310-cp310-macosx_10_9_x86_64.whl (2.4 MB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

pyresample-1.28.3-cp39-cp39-win_arm64.whl (2.3 MB view hashes)

Uploaded CPython 3.9 Windows ARM64

pyresample-1.28.3-cp39-cp39-win_amd64.whl (2.3 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

pyresample-1.28.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyresample-1.28.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

pyresample-1.28.3-cp39-cp39-macosx_11_0_arm64.whl (2.3 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

pyresample-1.28.3-cp39-cp39-macosx_10_9_x86_64.whl (2.4 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page