iconarray.backend.grid.add_edge_data#

iconarray.backend.grid.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.

These elon, elat, elon_bnds, and elat_bnds coordinates are required when plotting edge variables. The following coordinates are also added which assist the plotting of edge vector variables: - zonal_normal_primal_edge: zonal component of the normal vector at the triangle edge midpoints - meridional_normal_primal_edge: meridional component of the normal vector at the triangle edge midpoints - edge_system_orientation - normal_edge - zn: normalized zonal_normal_primal_edge - mn: normalized meridional_normal_primal_edge

Parameters:
  • ds (xarray.Dataset) – xarray.Dataset of ICON data.

  • grid (xarray.Dataset) – xarray.Dataset of grid data.

Returns:

merged_ds (xarray.Dataset)

See also

iconarray.backend