cmplxreal#

ens_calculator.cmplxreal(source_parts: List[ENS_PART] | List[int] | List[str] | ENS_PART | int | str, scalar_or_vector: ENS_VAR | str | int, output_varname: str | None = None) ENS_VAR#

Computes a scalar or vector variable defined as the real portion of a complex scalar/vector

Args:
source_parts:

Any part(s) or a part number.

scalar_or_vector:

A complex scalar or vector variable.

output_varname:

The name of the newly created variable

Returns:

New ENS_VAR instance or None

Note:

See CmplxReal() for function details.