Socket
Socket
Sign inDemoInstall

icon-uxarray

Package Overview
Dependencies
13
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    icon-uxarray

Awesome icon_uxarray created by jcanton


Maintainers
1

Readme

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(uxds.time)), height=(0, len(uxds.height)))
server = pn.panel(hvplot).show()

Development

Read the CONTRIBUTING.md file.

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc