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.4.tar.gz
(39.7 kB
view details)
Built Distribution
File details
Details for the file icon_uxarray-0.1.4.tar.gz
.
File metadata
- Download URL: icon_uxarray-0.1.4.tar.gz
- Upload date:
- Size: 39.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fff29e06bc12385a781fc2733134c4ead250380c63e857406ff9fda50250a52 |
|
MD5 | e88488e723849d1566d27cbe6f5b762d |
|
BLAKE2b-256 | 22853e117ccb0d7cf1c1026a9300a9cdb00426270f3f76c81b47e041e1e70995 |
File details
Details for the file icon_uxarray-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: icon_uxarray-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.9 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 | 6e4d8d90d5493255d0962274b447a4ef58ab6112fe461440aa40fb0dac963219 |
|
MD5 | 5d8eeb7ec64f0912f3aaf5ad61892211 |
|
BLAKE2b-256 | 630106ea778e27e5013666f946d61d3ba2aafdeb1ce927a3a4050fb4a1853d58 |