Open-source methods for spatiotemporal research

CubeDynamics

Source-qualified nouns → semantic verbs → inspectable answers. Make environmental analysis readable without hiding source identity, authored order, or evidence.

Preparing 0.1.0rc1 · not yet published. Installation status and release instructions.

Observed PRISM temperature cube Interactive viewer loads after the page is ready.

Interactive raster cubeObserved PRISM daily maximum temperature

Drag the cube to rotate it. Scroll over the viewer to zoom.

Rerunnable is not the same as inspectable.

A script can run twice and still hide the scientific question it asked. Thresholding before a mean and averaging before a threshold use the same operations, but they produce different scientific objects.

CubeDynamics treats a pipeline as an executable scientific statement. The expression stays short; semantic state and an ordered trace preserve what changed; source records and bounded QA expose the evidence beneath the abstraction.

Numerical work remains with xarray, Dask, and established geospatial libraries. The grammar does not choose a scientifically appropriate source or certify a decision. Read the scientific framing →

One question, one short pipe

from cubedynamics import data, pipe, verbs as v

cube = data.temperature(
    source="prism", statistic="maximum",
    bbox=[-105.55, 39.85, -105.05, 40.15],
    start="2024-01-01", end="2024-01-30",
)
answer = (pipe(cube) | v.mean(dim="time", keep_dim=False)).unwrap()

Observed daily maximum temperature → mean over the requested dates. Authored order is preserved, not rearranged. Live access requires a network; Learn uses a frozen real-data extract.

Keep the statement short. Keep the evidence close.

  1. 01
    Statement

    A source-qualified noun enters a pipe. Configured verbs and their parameters say what happens, in the order the researcher authored.

  2. 02
    State and trace

    The current object—observation, condition, event, relationship, or summary—and every completed stage remain available for inspection.

  3. 03
    Source and evidence

    Native variables, units, queries, revisions, provenance, fixtures, and bounded QA stay reachable. A common noun never implies that its sources are interchangeable.

Where would you like to go?