Documents · API reference
Objects
Reference objects used by the public grammar. Signatures and methods below come from Python docstrings. Not every object is a raster cube.
Pipe
Wraps a value and records the written operation sequence.
Bases: Generic[T]
Lightweight wrapper enabling | composition for cube operations.
Grammar contract
Pipe infrastructure. Pipe itself is not a verb but carries values
through verb stages and supports direct calls to verbs or plain callables.
It is both direct-call (Pipe(value)) and pipe-ready via the |
operator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
T
|
Object to wrap, typically an :class: |
required |
Returns:
| Type | Description |
|---|---|
Pipe
|
A pipe-ready wrapper exposing |
Notes
Pipe preserves streaming objects such as
:class:~cubedynamics.streaming.VirtualCube and does not trigger
computation. Viewer attachments are stored on the wrapped value when verbs
mark themselves as pass-through, allowing notebook HTML reprs to show
inline.
See Also
cubedynamics.piping.Verb, cubedynamics.piping.pipe
semantic_state
property
Semantic description of the current value; no data are computed.
semantic_trace
property
Immutable record of stages executed through this pipe.
unwrap()
Return the wrapped value, ending the pipe chain.
explain()
Explain the analysis in plain language without changing it.
suggest()
Suggest a short list of compatible, currently implemented verbs.
validate()
Run metadata-only semantic and ordering checks.
VirtualCube
Defers source reads and materialization. See streaming for source and tile contracts.
Representation of a lazily tiled cube.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dims
|
tuple of str
|
Expected dimension order of the cube, e.g., |
required |
coords_metadata
|
dict
|
Lightweight metadata used to reconstruct coordinates when needed; individual tiles supply authoritative coordinate values. |
required |
loader
|
callable
|
Function that returns a concrete |
required |
loader_kwargs
|
dict
|
Base keyword arguments forwarded to |
required |
time_tiler
|
callable
|
Functions that accept |
required |
spatial_tiler
|
callable
|
Functions that accept |
required |
Notes
- A
VirtualCubekeeps all data lazy untilmaterializeis called. iter_tilescombines time and spatial tilers deterministically so callers can stream through subsets without holding the whole cube.- Returned tiles should be compatible for
xarray.combine_by_coords.
materialize()
Materialize the virtual cube as a single :class:xarray.DataArray.
State and event results
State constructors return xarray Datasets with state, magnitude and threshold variables. detect_events turns them into an event result with a dataset and catalog. See the state/event analysis.
Fire geometry
FireEventDaily and FireHull are the canonical event/geometry model. TimeHull is a compatibility name. A VaseDefinition describes a time-varying polygon volume; it is not itself a provider dataset.
Collection of vase sections with interpolation rules.
The sections describe how a 2-D polygon cross-section should evolve through
time, creating a 3-D "vase volume" once lofted across the cube. interp
controls whether polygons are snapped to the nearest timestamp or
interpolated vertex-by-vertex (when shapes share the same vertex layout).
sorted_sections()
Return a new VaseDefinition with sections sorted by time.
See also
Fire architecture · Semantic grammar · Source revision objects · Public API stability