Behaviour
It masks measure a with the mask measure b. For each 1 in measure b, take the corresponding element in measure a. For each element of measure b not equal to 1, do not take the corresponding element in measure a. In this case, with oph_int or oph_long, the output element will be 0; with oph_float or oph_double, the output element will be a NaN.
Parameters
Return type
Binary-array.
Examples
Mask measure a with the mask in measure b.
oph_mask_array('OPH_DOUBLE|OPH_DOUBLE','OPH_DOUBLE',measure_a,measure_b)
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_long’|’oph_short’|’oph_byte’” | “1” / “1” | ||
output measure type | “oph_type” | “yes” | “‘oph_double’|’oph_float’ |’oph_int’|’oph_long’|’oph_short’|’oph_byte’” | “1” / “1” | ||
measure a | “binary-array” | “yes” | “1” / “1” | |||
measure b | “binary-array” | “yes” | “1” / “1” | |||
missingvalue | “double” | “no” | “NAN” | “0” / “1” |