Welcome to iconarray’s documentation!#
The iconarray python package contains various modules to facilitate working with ICON data with xarray or other xarray based tools (such as psyplot - a plotting package). iconarray was developed together with icon-vis.
API reference#
This page provides an auto-generated summary of iconarray’s API.
Core functions#
| functionality to crop both ICON grids and datasets on any grid location. | |
| 
 | Cut the domain of an ICON grid and data to a region specified by a lat/lon retangle. | 
| Functionality to locate ICON grid indices associated to lat/lon grid coordinates via hashing the indices in a Cartesian grid. | |
| 
 | Creates a field in a Cartesian lat/lon grid whose elements contain the ICON grid indices of the element whose lat/lon coordinates are contained within the cartesian element. | 
| The utilities.py module contains various functions useful for analysing or plotting (ICON) data using xarray. | |
| 
 | Find the indices of the n closest cells in a grid, relative to a given latitude/longitude point. | 
| Print a table with variables in dataset. | |
| The functions in interpolate.py are used to facilitate the interpolation of ICON vector data to a regular grid, or a coarser ICON grid, for the purpose of vectorplots, e.g., wind plots. | |
| 
 | REMAP ICON data to regular grid using Fieldextra. | 
| 
 | Remap ICON data to another ICON grid using Fieldextra. | 
Backend functions#
| The grid module contains functions relating to the grid information for ICON data, such as merging ICON data with the grid data to provide one merged dataset. | |
| 
 | Combine grid information. | 
| 
 | Get name of dimension in ICON data xarray dataset which identifies the cell dimension. | 
| 
 | Get name of dimension in ICON data xarray dataset which identifies the edge dimension. | 
| Get name of time coordinate in xarray dataset which has attribute standard_name = 'time' and datatype of datetime. | |
| 
 | Add clon, clat, clon_bnds, and clat_bnds coordinates from the grid file to the dataset. | 
| 
 | Add elon, elat, elon_bnds, and elat_bnds and other edge related coordinates from the grid file to the dataset. | 
| 
 | Open either NETCDF or GRIB file. | 
Plotting functions#
| Formatoption that adds internal land borders on mapplot, mapvector, and mapcombined plots created by psyplot. | |
| Formatoption that adds lakes to mapplot, mapvector, and mapcombined plots created by psyplot. | |
| Formatoption that adds rivers to mapplot, mapvector, and mapcombined plots created by psyplot. | |
| This module config.py contains the public function read_config which parses configuration file for plotting scripts in icon-vis. | 
Utility functions#
| This script/module contains the function get_example_data which downloads example ICON data from FTP server (NETCDF, GRIB and Grid files). | |
| Download example ICON data from FTP server (NETCDF, GRIB and Grid files) to current directory. |