interp-methods: Convert a single scalar or node based quantity to element...

Description Arguments Value

Description

The length of x determines how it will be treated. If x has length 1, it is returned as a single color. If the length of x is the number of nodes in the grid, its value for each element is calculated as the average of the value at the adjoining nodes. If the length of x is the number of elements in the grid, it is returned as is. Any other values throw an error.

Arguments

grid

An fvcom.grid instance.

x

A vector of length 1 or length get.nnodes(grid)

Value

A vector of length get.nelems(grid)


ocean documentation built on Jan. 15, 2017, 4:16 p.m.

Related to interp-methods in ocean...