Awesome icon_uxarray created by jcanton
Project description
icon_uxarray
Awesome icon_uxarray created by jcanton
Install it from PyPI
pip install icon-uxarray
Usage
Convert an icon grid to be UGRID-compatible
from icon_uxarray import icon_grid_2_ugrid
ugrid_fname = icon_grid_2_ugrid(iconGrid_fname='some_icon_grid.nc')
then use it for plotting
import uxarray as ux
import holoviews as hv
import panel as pn
# open dataset
uxds = ux.open_dataset(grid_fname, data_fname)
# static plot
hvplot = uxds['temp'].isel(time=0).isel(height=0).plot()
server = pn.panel(hvplot).show()
# interactive plot
def sliders_plot(itime, iheight):
return uxds['temp'].isel(time=itime).isel(height=iheight).plot()
torus = hv.DynamicMap(sliders_plot, kdims=['time', 'height'])
hvplot = torus.redim.range(time=(0, len(uxds2.time)), height=(0, len(uxds2.height)))
server = pn.panel(hvplot).show()
Development
Read the CONTRIBUTING.md file.
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
icon_uxarray-0.1.7.tar.gz
(40.3 kB
view details)
Built Distribution
File details
Details for the file icon_uxarray-0.1.7.tar.gz
.
File metadata
- Download URL: icon_uxarray-0.1.7.tar.gz
- Upload date:
- Size: 40.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6618448c14ac34da3ce77545bbdea007cfd52e27cf7f86bf5bd82b9c4f7b95f7 |
|
MD5 | b35379a9c5c1267dd75c839268e231a4 |
|
BLAKE2b-256 | 65eefded8b857499690d41eed7da5db370dc06f7929e360a542f83592645bd6f |
File details
Details for the file icon_uxarray-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: icon_uxarray-0.1.7-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 287e9e541e35896194dbee97183a1f0c3282294955859e7986e392783f9fac92 |
|
MD5 | d35e7881e66387397206dfb74c3e1020 |
|
BLAKE2b-256 | dfe85a783dc81fa356b0e5805618f19e32fa58684be95326afb654b68c1eb963 |