Skip to main content

Awesome icon_uxarray created by jcanton

Project description

icon_uxarray

codecov CI

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.3.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

icon_uxarray-0.1.3-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file icon_uxarray-0.1.3.tar.gz.

File metadata

  • Download URL: icon_uxarray-0.1.3.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

Hashes for icon_uxarray-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2d1b9effc475148b4a2926dbc5a6e9e0808006ecc615f8255c19cb5357f97b65
MD5 474c489132b0a676ed59ea4c48e1059e
BLAKE2b-256 db0d49872b92b95a8ac1a56f3fdcaadc2595612c838d41c2cc933e9ca8f8f913

See more details on using hashes here.

File details

Details for the file icon_uxarray-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for icon_uxarray-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dac14ae619a227e638522f7ed85d6570b0d6d51e2f3bf7cda4138febfa7b97cf
MD5 224c7c5d6620aced59a655b65c6c8087
BLAKE2b-256 94843713405d34bc656c9cef735fd63ba8be66f3de4df9ca3f7655ed9b596124

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page