Metadata-Version: 2.1
Name: icon_uxarray
Version: 0.1.6
Summary: Awesome icon_uxarray created by jcanton
Home-page: https://github.com/jcanton/icon_uxarray/
Author: jcanton
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: xarray
Requires-Dist: uxarray
Requires-Dist: scipy
Requires-Dist: numba
Requires-Dist: scikit-learn
Requires-Dist: holoviews
Requires-Dist: matplotlib
Requires-Dist: cartopy
Requires-Dist: dask
Requires-Dist: dask[dataframe]
Requires-Dist: datashader
Requires-Dist: netcdf4
Requires-Dist: h5netcdf
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: coverage; extra == "test"
Requires-Dist: flake8; extra == "test"
Requires-Dist: black; extra == "test"
Requires-Dist: isort; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Requires-Dist: mypy; extra == "test"
Requires-Dist: gitchangelog; extra == "test"
Requires-Dist: mkdocs; extra == "test"

# icon_uxarray

[![codecov](https://codecov.io/gh/jcanton/icon_uxarray/branch/main/graph/badge.svg?token=icon_uxarray_token_here)](https://codecov.io/gh/jcanton/icon_uxarray)
[![CI](https://github.com/jcanton/icon_uxarray/actions/workflows/main.yml/badge.svg)](https://github.com/jcanton/icon_uxarray/actions/workflows/main.yml)

Awesome icon_uxarray created by jcanton

## Install it from PyPI

```bash
pip install icon-uxarray
```

## Usage

Convert an icon grid to be UGRID-compatible

```py
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

```py
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](CONTRIBUTING.md) file.
