Earth CUBE VISualization with Python
Project description
Welcome to the repository of ecubevis
ecubevis: Earth CUBE VISualization with Python. Intended for the interactive exploration of n-dimensional (2D, 3D, 4D or 5D spatio-temporal) arrays on Jupyterlab. Supports both xarray.Dataset/DataArray (with metadata) or numpy.ndarray objects.
How to install
Install ecubevis from pypi:
pip install ecubevis
If installing cartopy with pip is not working, use conda:
conda install cartopy
If cartopy kills your Jupyter notebook kernel try this:
pip install shapely --upgrade --force-reinstall --no-binary shapely
How to use
Import the library:
import ecubevis as ecv
The main function in ecubevis is ecv.plot(). In interactive mode, the plot comes with sliders (thanks to hvplot/holoviews) allowing easy exploration of multi-dimensional data as 2D arrays across the time and additional dimensions. Under the hood, ecv.plot() calls one of the following functions depending on the data type:
-
ecv.plot_ndarray(): For plotting an in-memorynumpy.ndarrayobject with 2, 3, 4 or 5 dimensions (ndarrays do not carry metadata so the dimensions are given with thedimensionsargument). The function can take a tuple of 2D ndarrays, even with different grid/image size. -
ecv.plot_dataset(): For plotting an in-memoryxr.Datasetorxr.DataArrayobjects with 2, 3, or 4 dimensions. The dimensions expected are [lat, lon] for 2D arrays, [time, lat, lon] for 3D arrays or [time, level, lat, lon] for 4D arrays.
Examples
ecubevis will allow you to create:
| Interactive | Static |
|---|---|
plots of in-memory 2D, 3D and 4D xr.Dataset or xr.DataArray objects: |
mosaics of in-memory 3D and 4D xr.Dataset or xr.DataArray objects: |
plots of in-memory 2D, 3D and 4D numpy.ndarray objects (composition thanks to holoviews): |
plots of in-memory 2D, 3D and 4D numpy.ndarray objects: |
plots of in-memory xr.Dataset or xr.DataArray while sub-setting across dimensions: |
plots of a tuple of in-memory 2D numpy.ndarray objects: |
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ecubevis-1.0.2.tar.gz.
File metadata
- Download URL: ecubevis-1.0.2.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88770cea2c6d574bdbfece571fb66ff93e9f1cf558675ce956064a069e33034a
|
|
| MD5 |
e280487fecc7569eff0dfa278cf80c07
|
|
| BLAKE2b-256 |
b590091ae97a5eeb91c4981a0958e2d911a4a59d77032c1b31bed04f71c9b254
|
File details
Details for the file ecubevis-1.0.2-py3-none-any.whl.
File metadata
- Download URL: ecubevis-1.0.2-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5b0d536f06d20ed9f3a7dd553d6f9f8f344880d8c76af3adf8bdba4b592a5a3
|
|
| MD5 |
38a6e95934868615e3085ab06608ec1f
|
|
| BLAKE2b-256 |
0771428b8817161cfc1793934d22aa65d45568ba581c44516fddff889d1618e4
|