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.5.tar.gz
(39.8 kB
view hashes)
Built Distribution
Close
Hashes for icon_uxarray-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f1a59d82137fd44250e045f0daa70e2ad3a1f5f3c7166ea81b095cffec8be5e |
|
MD5 | aa7a0424a2fbfbe447fb2dcd6b6e81eb |
|
BLAKE2b-256 | bd5f8ee077cb6640ee3971c1774ec51ea7ba556f1637ffb1ec556f2d365ba665 |