Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

xrtoolz Design Doc

A composable operator library for geoprocessing Earth System Data Cubes.

Structure

geo_toolz/
├── README.md              # This file
├── vision.md              # Motivation, user stories, design principles, identity
├── architecture.md        # Three-layer stack, Operator model, Graph API, inference, dependencies
├── validation.md          # Validation philosophy: scale, data, physical, process, phenomena
├── boundaries.md          # Ownership, ecosystem, scope, testing strategy, roadmap
├── api/
│   ├── README.md          # Submodule inventory, notation, import conventions
│   ├── primitives.md      # Layer 0 — pure functions by submodule
│   ├── components.md      # Layer 1 — Operator classes by submodule
│   ├── models.md          # Layer 2 — Graph API, ModelOp, inference
│   └── validation.md      # Validation API map by scientific question
├── examples/
│   ├── README.md          # Index and reading order
│   ├── primitives.md      # Layer 0 — pure function pipelines, pipe syntax
│   ├── components.md      # Layer 1 — Sequential, operator composition, Hydra
│   ├── models.md          # Layer 2 — Graph API, inference, model comparison
│   ├── integration.md     # Layer 3 — sklearn, xrpatcher, xarray_sklearn, ekalmX
│   ├── validation.md      # Field, spectral, lead-time, structural, process examples
│   ├── lagrangian.md      # Particle and drifter-style transport diagnostics
│   ├── budgets.md         # Heat/salt/volume/energy budget residual examples
│   └── phenomena.md       # Event/object detection and verification examples
├── decisions.md           # Design decisions D1–D10 (existing tradeoffs)
└── validation-decisions.md # Design decisions D11–D15 (validation framework)

Reading Order

  1. Vision — understand the why

  2. Architecture — understand the three-layer stack

  3. Validation Framework — understand the expanded validation philosophy

  4. Boundaries and Ecosystem — understand the scope

  5. API Overview — scan the surface

  6. Primitives — Layer 0 Pure Functions → components.md → models.md → validation.md — drill into detail

  7. Layer 0 — Primitive Examples → components.md → models.md → integration.md → validation.md — see it in action

  8. Design Decisions — D1–D10 architectural tradeoffs

  9. Validation Design Decisions — D11–D15 validation framework decisions