landlab.grid.grid_funcs module#

Utility functions that operate on landlab grids.#

Resolve link values into x and y directions.

Takes a set of values defined on active links, and returns those values resolved into the x and y directions. Two link arrays are returned: x, then y.

Parameters
  • grid (ModelGrid) – A ModelGrid.

  • link_values (ndarray) – Values on links.

Returns

Values resolved into x-component and y-component.

Return type

tuple of ndarray