oph_operator_array

Description

Behaviour

It applies an operation between the value of measure array b and the value in the same position in measure array a.

Parameters

  • input measure type: Ophidia typing. Supported types are pairs of: ‘oph_double’; ‘oph_float’; ‘oph_long’; ‘oph_int’; ‘oph_short’; ‘oph_byte’.
  • output measure type: Ophidia typing. Supported types are: ‘oph_double’; ‘oph_float’; ‘oph_long’; ‘oph_int’; ‘oph_short’; ‘oph_byte’.
  • measure a: first input measure.
  • measure b: second input measure.
  • operation name: type of operation
    • ‘oph_max’: computes the maximum (as oph_max_array);
    • ‘oph_min’: computes the minimum (as oph_min_array);
    • ‘oph_sum’: computes the sum (as oph_sum_array);
    • ‘oph_sub’: computes the difference (as oph_sum_array);
    • ‘oph_mul’: computes the product (as oph_mul_array);
    • ‘oph_div’: computes the division (as oph_div_array);
    • ‘oph_abs’: computes the modulus (as oph_abs_array);
    • ‘oph_arg’: computes the phase (as oph_arg_array);
    • ‘oph_mask’: uses measure b as a mask for measure a (as oph_mask_array).
  • missingvalue : value to be considered as missing value; by default it is NAN (for “oph_double” and “oph_float”).

Return type

Binary-array.

Examples

Compute the maximum between the value of measure array b and the value in the same position in measure array a.

oph_operator_array('OPH_DOUBLE|OPH_DOUBLE','OPH_DOUBLE',measure_a,measure_b,'OPH_MAX')

Operation type

Simple.

Arguments

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”
operator name “oph_operator” “yes” “‘oph_max’|’oph_min’|’oph _sum’|’oph_sub’|’oph_mul’|’oph_div’|’oph_abs’|’oph _arg’|’oph_mask’”     “1” / “1”
missingvalue “double” “no” “NAN”     “0” / “1”