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.2.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.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xarray_leaflet-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 20b30efa3b5b189e2ed3ca8e35ea90fc1bf3195c241127a62f5c0e566c8cb93c
MD5 545c538f15ec0c06da3dc29b9c9e7335
BLAKE2b-256 b32bdf85d75e4476d1825fbdcddb2f25cd83643e768c8330f83e08cf85357b2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xarray_leaflet-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4e8ea7b06d91daaa593cc00ac3edfff1c77c6d6c84fedc1271040152a583a125
MD5 959cfe9842c7fbcc15ed0fa1b91db8e9
BLAKE2b-256 964427cf14fbe6ace282052efdc3d9d98bcf4e1b8fdeac0df2db758ca3dc2fc2

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