Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Return the vector of the arc trigonometric function of the input vector at each element. Result is in radians. Missing values are retained, unaltered by the calculation.


Anchor
bitmap
bitmap

Excerpt
vector bitmap (vector,number)

Returns a copy of the input vector (first argument) with zero or more of its values replaced with missing value indicators. The second argument is a number - any value equal to that number in the input vector is replaced with the missing value indicator. See also nobitmap.


Anchor
cos
cos

Excerpt
vector cos( vector )

Returns the vector of the cosine of the input vector at each element. Input values must be in radians. Missing values are retained, unaltered by the calculation.


Anchor
count
count

Excerpt
number count( vector )

Returns the number of elements in a vector.


Anchor
div
div

Excerpt
vector div( vector,vector )

Returns a vector with as many elements as the input vectors; the elements of the output vector are the integer part of the division of the first vector by the second vector. A missing value in either input vector will result in a missing value in the corresponding place in the output vector.


Anchor
dtype
dtype

Excerpt

vector dtype( vector )

Returns a string describing the data type of the elements of the given vector, either 'float32' or 'float64'.


Anchor
exp
exp

Excerpt
vector exp( vector )

Returns the vector of the exponential of the input vector at each element. Missing values are retained, unaltered by the calculation.


Anchor
filter
filter

Excerpt
vector filter( vector,vector )

...

v1 = filter(v, v>273.15) # returns only the values above 273.15
v2 = filter(v, v <> vector_missing_value) # returns only the non-missing values


Anchor
find
find

Excerpt

number or vector find( vector,number )
number or vector find( vector,number,string )

...

Searches the given vector for a number and returns the index of the first occurrence of it. If an optional third argument is given as the string 'all', then a vector of the indexes of all occurrences of the number is returned. In both cases, if the number is not contained in the vector, nil is returned.


Anchor
int
int

Excerpt
vector int( vector )

Returns the vector of the integer part of the input vector at each element. Missing values are retained, unaltered by the calculation.


Anchor
log
log

Excerpt
vector log( vector )

Returns the vector of the natural log of the input vector at each element. Missing values are retained, unaltered by the calculation.


Anchor
log10
log10

Excerpt
vector log10( vector )

Returns the vector of the log base 10 of the input vector at each element. Missing values are retained, unaltered by the calculation.


Anchor
max
max

Anchor
min
min

Excerpt

vector max( vector,vector )

vector min( vector,vector )

...

Returns the vector of the maximum (minimum) of the number and the vector value at each element. Missing values in the input vector are transferred to the output vector.


Anchor
maxvalue
maxvalue

Anchor
minvalue
minvalue

Excerpt

number maxvalue( vector )

number minvalue( vector )

Returns the vector (minimum) value of all the values of the vector. Only non-missing values are considered in the calculation. If there are no valid values, the function returns the missing value indicator.


Anchor
mean
mean

Excerpt
number mean( vector )

Returns the mean of all non-missing values in the input vector. If there are no valid input values, then nil is returned.


Anchor
merge
merge

Excerpt
vector merge( vector,vector,... )

Merge several vectors. The same as the operator &. The output is a vector with as many elements as the total number of elements in all merged vectors. Merging with the value nil does nothing, and is used to initialise when building a vector from nothing.


Anchor
mod
mod

Excerpt
vector mod( vector,vector )

Returns a vector where the elements are the remainder of the division of the first vector by the second vector. A missing value in either input vector will result in a missing value in the corresponding place in the output vector. Note that only the integer parts of the inputs are considered in the calculation, meaning that a second parameter of 0.5 would cause a division by zero.


Anchor
neg
neg

Excerpt
vector neg( vector )

Returns the vector of the negative of the input vector at each element. The same as (-vector). Missing values are retained, unaltered by the calculation.


Anchor
nobitmap
nobitmap

Excerpt
vector nobitmap ( vector,number )

Returns a copy of the input vector (first argument) with all of its missing values replaced with the number specified by the second argument. See also bitmap.


Anchor
percentile
percentile

Excerpt

vector or list percentile( list,vector )
vector or list percentile( list,list )
vector or list percentile( list,number )

From a given list of V vectors, each with the same number, N, of elements, and a set of P percentiles, computes a new list of P vectors, each containing N elements - one percentile for each of the N elements across all V input vectors. The set of percentiles is supplied as the second argument and can be a vector, a list or a single number. If it is a single number then the result will be a single vector rather than a list of vectors; however, supplying a vector or list with just one percentile will result in a list of one vector result. The function complements the Percentile module, which acts directly on GRIB fields.

...