semantique.CollectionProxy#
- class semantique.CollectionProxy(obj)[source]#
Proxy object of an array collection.
This proxy object serves as a placeholder for a collection of multiple multi-dimensional arrays. All collection 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
(name, **kwargs)Apply a user-defined verb to each array in a collection.
assign
(y[, at])Apply the assign verb to each array in a collection.
assign_space
([component])Apply the assign_space verb to each array in a collection.
assign_time
([component])Apply the assign_time verb to each array in a collection.
compose
(**kwargs)Create a categorical composition of multiple binary arrays.
concatenate
(dimension, **kwargs)Concatenate multiple arrays along a new or existing dimension.
delineate
([dimension])Apply the delineate verb to each array in a collection.
evaluate
(operator[, y])Apply the evaluate verb to each array in a collection.
extract
(dimension[, component])Apply the extract verb to each array in a collection.
fill
(method, dimension, **kwargs)Apply the fill verb to each array in a collection.
filter
(filterer, **kwargs)Apply the filter verb to each array in a collection.
filter_space
(*filterer, **kwargs)Apply the filter_space verb to each array in a collection.
filter_time
(*filterer, **kwargs)Apply the filter_time verb to each array in a collection.
merge
(reducer, **kwargs)Merge pixel values of multiple arrays into a single value per pixel.
reduce
(reducer[, dimension])Apply the reduce verb to each array in a collection.
shift
(dimension, steps, **kwargs)Apply the shift verb to each array in a collection.
smooth
(reducer, dimension, size, **kwargs)Apply the smooth verb to each array in a collection.
trim
([dimension])Apply the trim verb to each array in a collection.