semantique.ArrayProxy#
- class semantique.ArrayProxy(obj)[source]#
Proxy object of an array.
This proxy object serves as a placeholder for a multi-dimensional array. All array specific actions (i.e. verbs) can be called as methods of this object. However, the proxy object iself does not contain any data, and the actions are not applied. Instead, a textual recipe is constructed which will be executed only at the stage of query processing.
- Parameters:
obj (
dict
) – Textual reference that can be solved by the query processor. Normally not constructed by hand, but obtained by calling one of the dedicated reference functions or by applying verbs to existingArrayProxy
orCollectionProxy
instances.
Methods
__init__
(obj)apply_custom
(verb, **kwargs)Apply a user-defined verb to the array.
assign
(y[, at])Assign new values to the pixels in an array.
assign_space
([component])Assign spatial coordinates as values to the pixels in an array.
assign_time
([component])Assign temporal coordinates as values to the pixels in an array.
delineate
([dimension])Delineate spatio-temporal objects in a binary array.
evaluate
(operator[, y])Evaluate an expression for each pixel in an array.
extract
(dimension[, component])Extract coordinate labels of a dimension as a new array.
fill
(dimension, method, **kwargs)Fill nodata values in array by interpolating valid data values.
filter
(filterer, **kwargs)Filter the values in an array.
filter_space
(*filterer, **kwargs)Filter an array along the spatial dimension.
filter_time
(*filterer, **kwargs)Filter an array along the temporal dimension.
groupby
(grouper, **kwargs)Group the values in an array.
groupby_space
([component])Group an array along the spatial dimension.
groupby_time
([component])Group an array along the temporal dimension.
name
(value, **kwargs)Give a name to an array.
reduce
(reducer[, dimension])Reduce the dimensionality of an array.
shift
(dimension, steps, **kwargs)Shift the values in an array along a dimension.
smooth
(reducer, dimension, size, **kwargs)Smooth the values in an array through a moving window.
trim
([dimension])Trim the dimensions of an array.