Behaviour
It converts the measure array value type from input to output type. Possible conversions are:
With conversion from real to complex numbers, it adds imaginary parts as 0 while, in case of complex numbers -> real numbers, it returns an error.
Parameters
Return type
Binary-array.
Examples
Cast an array of measures from oph_double to oph_complex_int.
oph_cast('OPH_DOUBLE','OPH_COMPLEX_INT',measure)
Operation type
Simple.
Argument name | Type | Mandatory | Values | Default | Min/Max-value | Min/Max-times |
---|---|---|---|---|---|---|
input measure type | “oph_type” | “yes” | “‘oph_double’|’oph_float’|’oph_int’|’oph_byte’|’oph_short’|’oph_long’|’oph_ complex_double’|’oph_complex_float’|’oph_complex_int’|’oph_complex_long’” | “1” / “1” | ||
output measure type | “oph_type” | “yes” | “‘oph_double’|’oph_float’|’oph_int’|’oph_byte’|’oph_short’|’oph_long’|’oph_ complex_double’|’oph_complex_float’|’oph_complex_int’|’oph_complex_long’” | “1” / “1” | ||
measure | “binary-array” | “yes” | “1” / “1” | |||
missingvalue | “double” | “no” | “NAN” | “0” / “1” | ||
output_missingvalue | “double” | “no” | “NAN” | “0” / “1” |