uxarray.UxDataArray.topological_mean

uxarray.UxDataArray.topological_mean#

UxDataArray.topological_mean(destination, **kwargs)#

Performs a topological mean aggregation.

Parameters:

destination (str,) –

Destination grid dimension for aggregation.

Node-Centered Variable: - destination='edge': Aggregation is applied on the nodes that saddle each edge, with the result stored on each edge - destination='face': Aggregation is applied on the nodes that surround each face, with the result stored on each face.

Edge-Centered Variable: - destination='node': Aggregation is applied on the edges that intersect each node, with the result stored on each node. - Destination='face': Aggregation is applied on the edges that surround each face, with the result stored on each face.

Face-Centered Variable: - destination='node': Aggregation is applied on the faces that saddle each node, with the result stored on each node. - Destination='edge': Aggregation is applied on the faces that saddle each edge, with the result stored on each edge.

Returns:

reduced – New UxDataArray with mean applied to its data.

Return type:

UxDataArray