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


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.24.0.tar.gz (6.4 MB view details)

Uploaded Source

Built Distributions

pyresample-1.24.0-cp310-cp310-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.10 Windows x86-64

pyresample-1.24.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pyresample-1.24.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (3.9 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

pyresample-1.24.0-cp310-cp310-macosx_10_15_universal2.whl (2.6 MB view details)

Uploaded CPython 3.10 macOS 10.15+ universal2 (ARM64, x86-64)

pyresample-1.24.0-cp39-cp39-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.9 Windows x86-64

pyresample-1.24.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyresample-1.24.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (4.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

pyresample-1.24.0-cp39-cp39-macosx_10_15_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.9 macOS 10.15+ x86-64

pyresample-1.24.0-cp38-cp38-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.8 Windows x86-64

pyresample-1.24.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyresample-1.24.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (4.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

pyresample-1.24.0-cp38-cp38-macosx_10_15_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.8 macOS 10.15+ x86-64

pyresample-1.24.0-cp37-cp37m-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.7m Windows x86-64

pyresample-1.24.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

pyresample-1.24.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (3.8 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

pyresample-1.24.0-cp37-cp37m-macosx_10_15_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.7m macOS 10.15+ x86-64

File details

Details for the file pyresample-1.24.0.tar.gz.

File metadata

  • Download URL: pyresample-1.24.0.tar.gz
  • Upload date:
  • Size: 6.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for pyresample-1.24.0.tar.gz
Algorithm Hash digest
SHA256 503ef98e494f3dc28e2d09d5e6a954f92a9fff403357e3c57171fa137fe47fd5
MD5 11835ee7d93c9fef3d9cc21dba8e83ce
BLAKE2b-256 a66ce153852d0f7029be6906d94a0016a55581a709a7642cac0fc9f28e25f2d5

See more details on using hashes here.

File details

Details for the file pyresample-1.24.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pyresample-1.24.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ae20b7c733a318698c7be81392e43baa4107c2115bf3ca7bec9152669ad7b20f
MD5 6b989dea2c832e69395a832a7c78028e
BLAKE2b-256 517e29f7150cf9e6a150e7c6213dd9726da382e3e8f78f6bab18713552224415

See more details on using hashes here.

File details

Details for the file pyresample-1.24.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyresample-1.24.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b18c1a8b4f92aa91ec7071b1d6e9af65a92dc61c1631246090b2a3fefba63fda
MD5 f837020096f7c42b4d063f5d7f1c2bbd
BLAKE2b-256 b4a32abac725bb1d8b7f730959afb9db5ce66162f90d8cb92ec8a747ac9efad8

See more details on using hashes here.

File details

Details for the file pyresample-1.24.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pyresample-1.24.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 7411b752ca1815791de8f0a2bab70b4106be0668a32cf3cf37135e7979270c72
MD5 df50bc06e336487031988e836bd6c86f
BLAKE2b-256 176f0fb55bd11bbb91734a71cc2751a48c4bcd2d4e22762fe65361957b907c80

See more details on using hashes here.

File details

Details for the file pyresample-1.24.0-cp310-cp310-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for pyresample-1.24.0-cp310-cp310-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 f2b2942ab0db854730964df9c65904769ee70f0e5f2b29601aeec7b5c4e3ed20
MD5 938a4beae64f04fe3ffa11a10fd7fffc
BLAKE2b-256 dfded90c558060523110fa13f266ec268dfe445cab76dce024444e7a986f7626

See more details on using hashes here.

File details

Details for the file pyresample-1.24.0-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for pyresample-1.24.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a4872c6d863075b2e1fdf87e68b1f2b994395a74943c79c51c078a141f00562c
MD5 ef6551c833a91bb7b2346f4b4b2be1e7
BLAKE2b-256 fa3975eb9218528d138a3e45fc07a84a0231b3d231d2a3204d44d060fb1f0d0c

See more details on using hashes here.

File details

Details for the file pyresample-1.24.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyresample-1.24.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 824aae6a53637f975a1c6900e34cec7377f0405d2cf9b6f0eeb28b87ecd05bac
MD5 4154442775e23a77635a1f06e7379e34
BLAKE2b-256 6e40514c8c745756a126e6739cd8e590d4d1464087299baf6f38f88d631be8ec

See more details on using hashes here.

File details

Details for the file pyresample-1.24.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pyresample-1.24.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 6cf17f81c823288b8a61e4828446bb544f04214fca21b1d8fb592f1da7c29304
MD5 25d65b3e9d1e0d7a3fa0c6771d643a3d
BLAKE2b-256 5406ccfacc0d2845d25e400652939836b6e77b862207c91b1a5948bc79d06357

See more details on using hashes here.

File details

Details for the file pyresample-1.24.0-cp39-cp39-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for pyresample-1.24.0-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 abc17eb28e3a8fe630c0e33f168cc98325cad83639111341fd9259b636e1e374
MD5 b7ab8ddb18319512f40c18a6d3357825
BLAKE2b-256 dd7005209269be06a6246b4561f0a02473f5773cc9a29ce02d67c6a2ec38e68a

See more details on using hashes here.

File details

Details for the file pyresample-1.24.0-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for pyresample-1.24.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 996b898e2ed9b1a7b5e3a5a031bfbfcf42648f74fd46a415921463ac391c1528
MD5 6b7919b8d42ecac57e97b81a84e36c54
BLAKE2b-256 793f2366eaf887df79a2e0af4427f3200b753c45aef257767b492081894ef9e0

See more details on using hashes here.

File details

Details for the file pyresample-1.24.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyresample-1.24.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dd4c3635a8ad75556f0726dfa7415f1b8a24f9daeef82931a4412c1baedf587a
MD5 0efe6930530756037ee7e5680362890d
BLAKE2b-256 f6700a2128e2f4dcb1c257f3231d64b1fa23b362663eb3ce35dbddd21fd090f5

See more details on using hashes here.

File details

Details for the file pyresample-1.24.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pyresample-1.24.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 57b40e96b78ceeac3c534c3e6ba31ae0356eac68473da4d44cb5391a32194096
MD5 d7771d15180bad14b445ad3c6570cadf
BLAKE2b-256 3bb8af2d1270cd0aad8377bb78b266f084a5fc23dfe567f98e973dda5547b639

See more details on using hashes here.

File details

Details for the file pyresample-1.24.0-cp38-cp38-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for pyresample-1.24.0-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 51bf4794a31d700f4765901d76bbe8fa47141342a0bf6a55dd172b224100e9b0
MD5 ac09e5754d3ea0d594a94fabf5ff5220
BLAKE2b-256 64e9c87f579c5d386f148fe26076f3567f7927975ba04e1ecd342241c2c6512d

See more details on using hashes here.

File details

Details for the file pyresample-1.24.0-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for pyresample-1.24.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 534d0b941a9ffd4c7135fe22f404e4e66f33e9237897f006b645385fd082bca6
MD5 d2db062cc3fc9c5389b4bebe0cddcf87
BLAKE2b-256 6c8524c688aef1292cea53b67246b2df28577d95163760b2bb698609be199bf3

See more details on using hashes here.

File details

Details for the file pyresample-1.24.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyresample-1.24.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6b0189174ee90eed51d7ed51ba8f76ba31be9e3c492d53f22e6505d4e7790026
MD5 06ce20ceb7d09cc0a8b35f9989037e6e
BLAKE2b-256 3c8ff700d89b029a3c226dc0402627ab68eba87b77a6dc192a9dad748473c830

See more details on using hashes here.

File details

Details for the file pyresample-1.24.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pyresample-1.24.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 3691d31559f1bc8d97c2f515fde35fe570dffd432cb96dc570d974b79e3b2dd4
MD5 c3a60b77cc59d62495621b35d90e889e
BLAKE2b-256 d9a9de0069840f7af2575f4b90e4066a44d644b4c9ab7b7fb2e012bfb161063a

See more details on using hashes here.

File details

Details for the file pyresample-1.24.0-cp37-cp37m-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for pyresample-1.24.0-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 aeae7f1dce506fbcefecf74693515448298cf0fc08a9d1b61e4643e2e52806d5
MD5 ff4b9653ebd4f138795896396f0fb3ec
BLAKE2b-256 7b176ce417d4a33f0608885a8da67c6ab293af6ea81f83ee4306d49ba5ae545f

See more details on using hashes here.

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