iconarray.backend.grid#

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.

Functions

add_cell_data(ds, grid)

Add clon, clat, clon_bnds, and clat_bnds coordinates from the grid file to the dataset.

add_edge_data(ds, grid)

Add elon, elat, elon_bnds, and elat_bnds and other edge related coordinates from the grid file to the dataset.

check_cell2cell(ds_grid)

Check consistency of the cell->cell connectivity.

check_cell2vertex(ds_grid)

Check consistency of the cell->vertex connectivity.

check_grid_information(file)

Check if grid information is available in file.

check_vertex2cell(ds_grid)

Check consistency of the vertex->cell connectivity.

combine_grid_information(file, grid_file)

Combine grid information.

filter_by_var(dataset, variable)

Filter dataset to single variable dataset.

get_cell_dim_name(ds, grid)

Get name of dimension in ICON data xarray dataset which identifies the cell dimension.

get_edge_dim_name(ds, grid)

Get name of dimension in ICON data xarray dataset which identifies the edge dimension.

get_time_coord_name(ds)

Get name of time coordinate in xarray dataset which has attribute standard_name = 'time' and datatype of datetime.

grid_consistency_check(ds_grid)

Perform consistency check of the grid.

open_dataset(file[, variable, decode_cf, ...])

Open either NETCDF or GRIB file.

show_GRIB_shortnames(file)

Show available shortNames of data within a GRIB file, which can be used to filter a dataset when opening a GRIB file.

Exceptions

WrongGridException(grid[, message])

Indicate wrong grid provided to be merged with ICON data.