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.0.tar.gz (346.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.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for xarray_leaflet-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0cc0d158b86634ce47f292546c467dbcd522f116193a5b369ea068de7426f558
MD5 54d7f25e9911340978e107f8e49a21e3
BLAKE2b-256 5686d46f6ac219427645961cd66233cfb30896248700abc2f449e2d58cc8d641

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xarray_leaflet-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a7daae17e0fc7a995d9feb2a911bd00260c3717326a9873b38ceedd1a7848546
MD5 a73d1939835b65dd2af8a41cb9912483
BLAKE2b-256 f4ba4e6019e28a1ea28f25356d622e88fba7e2a22490c849bb933783fcee2021

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