tensorcomponent#

ens_calculator.tensorcomponent(source_parts: List[ENS_PART] | List[int] | List[str], tensor: ENS_VAR | str | int, row1_3: int = 1, col1_3: int = 1, output_varname: str | None = None) ENS_VAR#

Computes a scalar variable defined as the specified component of a tensor

Args:
source_parts:

Any part(s) or a part number.

tensor:

A tensor variable.

row1_3:

A the row(ie. 1-3) of the tensor to extract.

col1_3:

A the column(ie. 1-3) of the tensor to extract.

output_varname:

The name of the newly created variable

Returns:

New ENS_VAR instance or None

Note:

See TensorComponent() for function details.