selectors

Selector(*args, **kwargs)

Selector class

Selector.components(self)

List of selector components, each an instance of SelectorComponent.

Selector.refine(self, *args, **kwargs)

Add components to this selector using the same syntax as the constructor.

Selector.clone(self)

Makes a copy of this Selector.

Selector.select(self, variable, *args, **kwargs)

Extract the selection from a variable.

SelectorComponent()

Base class representing selection for a given set of axes.

SelectorComponent.specify(self, slab, axes, …)

Refine the specification suitable for slab.subRegion Set confined_by to yourself for each axis you confine.

SelectorComponent.specifyGrid(self, var, …)

Refine the specification suitable for grid.intersect().

SelectorComponent.post(self, fetched, slab, …)

Post-process fetched if desired, return new value.

axisComponent(id, spec)

A SelectorComponent that confines exactly one axis or coordinate dimension (e.g.

axisComponent.specify(self, slab, axes, …)

Do specification for axis self.id; skip if axis not present.

coordinateComponent(id, spec)

A SelectorComponent that confines exactly one coordinate dimension (e.g., latitude)

coordinateComponent.specifyGrid(self, var, …)

Determine if this component confines the grid, and if so set the specs and return 1

requiredComponent(ids)

Checks to see that a specific id axis must be present.

requiredComponent.specify(self, slab, axes, …)

Doesn’t confine but checks for existance

indexComponent(id[, start, stop, stride])

An axisComponent that confines exactly one axis by specifying indices.

indexedComponent(index, value)

A SelectorComponent that confines exactly one axis whose index is given.

indexedComponent.specify(self, slab, axes, …)

Do the specification for axis whose index is self.index.

positionalComponent(v)

A SelectorComponent that confines the next axis available.

positionalComponent.specify(self, slab, …)

Find the next unconfined axis and confine it.