oph_get_subarray

Description

Behaviour

It extracts a subset of ‘count’ elements of an array starting from ‘start’.

Parameters

  • input measure type: Ophidia typing. Supported types are: ‘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: input measure.
  • start: start index, from 1 to array length.
  • count: number of elements to extract.

Return type

Binary-array.

Examples

Extract 20 measures starting at index 30.

oph_get_subarray('OPH_DOUBLE','OPH_DOUBLE',measure,30,20)

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 “binary-array” “yes”       “1” / “1”
start “long-long” “no”   “1”   “0” / “1”
count “long-long” “no”   “array length”   “0” / “1”