ecubevis-1.0.2
توضیحات
Earth CUBE VISualization with Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | ecubevis-1.0.2 |
| نام | ecubevis |
| نسخه کتابخانه | 1.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Carlos Alberto Gomez Gonzalez |
| ایمیل نویسنده | carlos.gomez@bsc.es |
| آدرس صفحه اصلی | https://github.com/carlgogo/ecubevis |
| آدرس اینترنتی | https://pypi.org/project/ecubevis/ |
| مجوز | Apache v2.0 |
[](https://pepy.tech/project/ecubevis)
[](https://colab.research.google.com/github/carlgogo/ecubevis/blob/master/ecubevis.ipynb)
# 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:
```python
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-memory ``numpy.ndarray`` object with 2, 3, 4 or 5 dimensions (ndarrays do not carry metadata so the dimensions are given with the ``dimensions`` argument). The function can take a tuple of 2D ndarrays, even with different grid/image size.
* ``ecv.plot_dataset()``: For plotting an in-memory ``xr.Dataset`` or ``xr.DataArray`` objects 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: <img src="./screenshots/ecubevis_1.png" width="300"> | mosaics of in-memory 3D and 4D ``xr.Dataset`` or ``xr.DataArray`` objects: <img src="./screenshots/ecubevis_2.png" width="300"> |
| plots of in-memory 2D, 3D and 4D ``numpy.ndarray`` objects (composition thanks to ``holoviews``): <img src="./screenshots/ecubevis_3.png" width="300"> | plots of in-memory 2D, 3D and 4D ``numpy.ndarray`` objects: <img src="./screenshots/ecubevis_4.png" width="300"> |
| plots of in-memory ``xr.Dataset`` or ``xr.DataArray`` while sub-setting across dimensions: <img src="./screenshots/ecubevis_6.png" width="300"> | plots of a tuple of in-memory 2D ``numpy.ndarray`` objects: <img src="./screenshots/ecubevis_5.png" width="300"> |
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
| - | matplotlib |
| - | xarray |
| - | hvplot |
| - | holoviews |
| - | pyproj |
| - | cartopy |
| - | geoviews |
| - | bokeh |
| - | pyviz-comms |
| - | joblib |
| - | netcdf4 |
نحوه نصب
نصب پکیج whl ecubevis-1.0.2:
pip install ecubevis-1.0.2.whl
نصب پکیج tar.gz ecubevis-1.0.2:
pip install ecubevis-1.0.2.tar.gz