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.

Data engineering

GeoStack · lens 5 of 5 · 1 December 2026

Abstract

The geoscience software and data engineering view: the pipeline geotoolz solves, in ten steps from search to publish. It is xarray’s split, apply and combine, with the steps a geospatial pipeline needs before it (search, catalog, save, stream) and after it (write, commit, publish). The other lenses stand on it: every box marked D hands its data work to one of these steps. Under the steps sit the carriers, which every lens holds.

describemathax
fitinferax, pyrox
physicsGeoNumerics
dataGeoStack (geotoolz)
assembleGeoModels
orchestratepipekit
dashed, numbered: off the shelf the lens expects, or no library yet
Dhanded to the data-engineering lens
Phas a probabilistic-numerics counterpart
I · Find
Search1STAC, CMR, earthaccess, Earth Enginegeocatalog.sources
Catalog2index once, query fast; matchupsgeocatalog: build, query, matchup
Save3stage what you needgeocatalog.staging · geocloud
II · Process
Stream4a field to cut: readers, COG range readsgeopatcher.fields · geoproductsgeocloud.cog
Split5geometry × sampler × windowgeopatcher SpatialPatcher
Apply6an operator per patchgeoops · pipekit maps
Combine7window-weighted mergegeopatcher OverlapAdd, Mean
III · Deliver
Write8CRS, transform, fill keptgeocloud write_cog · geoops WriteCOG
Commit9a version, all at onceIcechunk · proposed
Publish10a record others can findproduct catalog · proposed

One carrier, geoarray.GeoArray, flows through every step; pipekit composes them. From L3 on, the same steps run on xarray through xrtoolz and load_xarray.

Step#LibrariesState
I · FIND
Search1geocatalog.sources: STACSource, CMRSource, EarthAccessSource, GEESource; xrproducts for CMEMS, CDS, AEMETtoday
Catalog2geocatalog: build_raster_catalog, build_state_catalog, query by GeoSlice, GeoParquet; geocatalog.matchup; geocatalog.states for model statestoday
Save3geocatalog.staging stage; geocloud.files download, synctoday
II · PROCESS
Stream4geocatalog.patch field_for, geopatcher.fields CogField; geoproducts readers as geoarray.RasterSource; geocloud.cog CogSourcetoday
Split5geopatcher SpatialPatcher, TemporalPatcher: geometry × sampler × windowtoday
Apply6geoops operators per patch; geopatcher.run parallel_map, pipekit Map, ThreadMaptoday
Combine7geopatcher.spatial.aggregation OverlapAdd, Meantoday
III · DELIVER
Write8geocloud.cog write_cog, geoops WriteCOG; Zarr through geocloud.fs filesystemtoday
Commit9Icechunk: a version of many files, written in one transactionproposed
Publish10a product catalog others can search; the next search starts thereproposed

Where the other lenses hand off

LensStep thereSteps hereThrough
Scientific MLD Learningsplit, streamgeopatcher.integrations.train turns patches into training batches
Mathematical modellingD Measurementssearch, catalog, save, streamthe observing track starts here
Mathematical modellingD Regriddedapply, writegeoops reproject and resample
Mathematical modellingD Comparecataloggeocatalog.matchup pairs model and observation
Ocean surfaceD Productssearch, savexrproducts: the xarray lane
Application stack · levelsD Find, stagesearch, catalog, save
Application stack · levelsD Read, calibrate; one gridstreamgeoproducts.stack
Application stack · levelsD Gridapply
Application stack · levelsD Run at scale, storesplit, apply, combine, write, commit, publishthe whole process and deliver parts
SourcesD Find, readsearch, catalog, save, stream

Carriers: what flows between the steps

A carrier is an array plus the names that stop it being misread. The stack has three of its own and meets xarray’s at its edges; each answers one question about where a value is, and refuses the others. All three stack carriers keep one contract: hold the array (don’t subclass it), keep the array as the traced leaf, add no arithmetic operators, and do element-wise maths through combine, which checks the one rule (same dims, same grid, same stagger). A carrier refuses a mismatch and never repairs one; regridding and staggering are explicit, named conversions. The data levels split the carriers too: the raster carriers hold L0 to L2, xarray holds L3 to L5.

Plain arrayshape onlynumpy · jax
+ dim names, labels
DimArraywhich axis is whichpipekit-array
+ transform, CRS+ stagger
GeoArraywhere on Earth+ GeoSwath, GeoPointsgeotoolz-array
CFieldwhere in the cellT, U, V, Xgridax
GeoArray ↔ A-grid CField: the one geo–grid bridgeall pytrees, with states and the DA vector: inside jit, grad and vmapjit boundary · to_xarray ↓ · from_xarray ↑
xr.DataArray, Dataset, DataTreewhich value at which coordinate; lazy, on diskxarray · xrtoolz

Colours follow the shelves: DimArray in pipekit, the geo carriers in GeoStack, CField in GeoNumerics, xarray outside the stack. After the carrier arrays page and the carrier trees page.

CarrierAnswersLibraryHeld in
Plain arrayshape onlyNumPy, JAXevery kernel, once it unwraps
DimArraywhich axis is whichpipekit-arrayscientific ML and inverse problems: ensembles, innovation statistics, anything off the grid
GeoArray, GeoSwath, GeoPointswhere on Earth each pixel isgeotoolz-array (geoarray)data engineering steps 4 to 8; remote sensing and sources; the observing track
CFieldwhere in the cell each value sitsgridaxdiscretisation chapters 8, 10 to 13 and 23; the modelling track; sesmax states
pytreewhat the solver seesEquinox modulesmodel states, the DA control vector, parameters: everything grad reaches
xr.DataArray, Dataset, DataTreewhich value at which coordinate, lazily and on diskxarray, xrtoolzL3 to L5 products, ocean products, files in and out; never inside jit

Conversions

ConversionDoesIn
to_xarray, from_xarraya carrier to and from a DataArray (grids, swaths) or Dataset (points)geoarray.interop.xarray
to_dataset, from_dataset, to_datatree, from_datatreecarriers on one grid as one Dataset; several grids as one DataTreegeoarray.interop.xarray
from_georeader, to_georeadergeoreader’s GeoTensor in and out, zero-copy; a GeoTensor is refused everywhere elsegeoarray.interop.georeader
GeoArray ↔ A-grid CFieldthe one bridge between where on Earth and where in the cellgeoarray, gridax
load_xarray, load_rastercatalog rows to an xr.Dataset or a mosaicked GeoArraygeocatalog.load