selectors

Selector(*args, **kwargs)

Selector class

Selector.components()

List of selector components, each an instance of SelectorComponent.

Selector.refine(*args, **kwargs)

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

Selector.clone()

Makes a copy of this Selector.

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

Extract the selection from a variable.

SelectorComponent()

Base class representing selection for a given set of axes.

SelectorComponent.specify(slab, axes, …)

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

SelectorComponent.specifyGrid(var, grid, specs)

Refine the specification suitable for grid.intersect().

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

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(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(var, grid, specs)

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(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(slab, axes, …)

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

positionalComponent(v)

A SelectorComponent that confines the next axis available.

positionalComponent.specify(slab, axes, …)

Find the next unconfined axis and confine it.