Skip to main content

An xarray extension for map plotting

Project description

Binder Build Status

xarray-leaflet: an xarray extension for tiled map plotting

xarray and Leaflet share this ability to work with fragments of data, xarray through Dask's chunks, and Leaflet through map tiles. In the end this is really the same concept, so it was a natural thing to make them work together.

Fortunately xarray is written in Python, and we happen to have a great Python binding for Leaflet, ipyleaflet.

xarray-leaflet uses ipyleaflet as a plotting backend for data arrays. It generates map tiles on the fly, possibly using Dask's lazy evaluation system and Zarr's chunked data storage, and serves them through the Jupyter server, allowing for big data visualization.

See the example notebooks:

How does it compare to other visualization libraries?

xarray-leaflet doesn't try to reinvent the wheel. It stands on the shoulders of giants: xarray, Jupyter widgets, Leaflet. By combining this software stack, it opens up new possibilities while being a relatively small library.

Installation

Using conda:

conda install -c conda-forge xarray_leaflet

Using pip:

pip install xarray_leaflet

Using xarray-leaflet with Voila

To work with xarray-leaflet, Voila has to be launched with the following command:

jupyter server --ServerApp.open_browser=True --ServerApp.default_url="voila/render/path_to_notebook.ipynb"

Project details


Download files

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

Source Distribution

xarray_leaflet-0.2.1.tar.gz (352.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xarray_leaflet-0.2.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file xarray_leaflet-0.2.1.tar.gz.

File metadata

  • Download URL: xarray_leaflet-0.2.1.tar.gz
  • Upload date:
  • Size: 352.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for xarray_leaflet-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3a2338a78ee68ee6b051e5d568fd7ac262b809897bccc35e7aeb6eab8e156d48
MD5 878b50315c9f22a6196e7da7b3ba64cf
BLAKE2b-256 f8806cea0ea940984116831936fdc1b4562e39d0e23c9e65fcd9e0bf79b739b5

See more details on using hashes here.

File details

Details for the file xarray_leaflet-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for xarray_leaflet-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 462ff20cc5bd07b661d2c4d046397333d5c8ff87d0a82ef0cdc3a8a1fc4b53b8
MD5 0803a090f6a7166366db738f3fba67db
BLAKE2b-256 29f6f13dd956fb7d7e6c4b1a937fd8dc69bd9af331a62775a2cfa5d1b1142d98

See more details on using hashes here.

Supported by

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