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.
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 | # | Libraries | State |
|---|---|---|---|
| I · FIND | |||
| Search | 1 | geocatalog.sources: STACSource, CMRSource, EarthAccessSource, GEESource; xrproducts for CMEMS, CDS, AEMET | today |
| Catalog | 2 | geocatalog: build_raster_catalog, build_state_catalog, query by GeoSlice, GeoParquet; geocatalog.matchup; geocatalog.states for model states | today |
| Save | 3 | geocatalog.staging stage; geocloud.files download, sync | today |
| II · PROCESS | |||
| Stream | 4 | geocatalog.patch field_for, geopatcher.fields CogField; geoproducts readers as geoarray.RasterSource; geocloud.cog CogSource | today |
| Split | 5 | geopatcher SpatialPatcher, TemporalPatcher: geometry × sampler × window | today |
| Apply | 6 | geoops operators per patch; geopatcher.run parallel_map, pipekit Map, ThreadMap | today |
| Combine | 7 | geopatcher.spatial.aggregation OverlapAdd, Mean | today |
| III · DELIVER | |||
| Write | 8 | geocloud.cog write_cog, geoops WriteCOG; Zarr through geocloud.fs filesystem | today |
| Commit | 9 | Icechunk: a version of many files, written in one transaction | proposed |
| Publish | 10 | a product catalog others can search; the next search starts there | proposed |
Where the other lenses hand off¶
| Lens | Step there | Steps here | Through |
|---|---|---|---|
| Scientific ML | D Learning | split, stream | geopatcher.integrations.train turns patches into training batches |
| Mathematical modelling | D Measurements | search, catalog, save, stream | the observing track starts here |
| Mathematical modelling | D Regridded | apply, write | geoops reproject and resample |
| Mathematical modelling | D Compare | catalog | geocatalog.matchup pairs model and observation |
| Ocean surface | D Products | search, save | xrproducts: the xarray lane |
| Application stack · levels | D Find, stage | search, catalog, save | |
| Application stack · levels | D Read, calibrate; one grid | stream | geoproducts.stack |
| Application stack · levels | D Grid | apply | |
| Application stack · levels | D Run at scale, store | split, apply, combine, write, commit, publish | the whole process and deliver parts |
| Sources | D Find, read | search, 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.
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.
| Carrier | Answers | Library | Held in |
|---|---|---|---|
| Plain array | shape only | NumPy, JAX | every kernel, once it unwraps |
| DimArray | which axis is which | pipekit-array | scientific ML and inverse problems: ensembles, innovation statistics, anything off the grid |
| GeoArray, GeoSwath, GeoPoints | where on Earth each pixel is | geotoolz-array (geoarray) | data engineering steps 4 to 8; remote sensing and sources; the observing track |
| CField | where in the cell each value sits | gridax | discretisation chapters 8, 10 to 13 and 23; the modelling track; sesmax states |
| pytree | what the solver sees | Equinox modules | model states, the DA control vector, parameters: everything grad reaches |
| xr.DataArray, Dataset, DataTree | which value at which coordinate, lazily and on disk | xarray, xrtoolz | L3 to L5 products, ocean products, files in and out; never inside jit |
Conversions¶
| Conversion | Does | In |
|---|---|---|
to_xarray, from_xarray | a carrier to and from a DataArray (grids, swaths) or Dataset (points) | geoarray.interop.xarray |
to_dataset, from_dataset, to_datatree, from_datatree | carriers on one grid as one Dataset; several grids as one DataTree | geoarray.interop.xarray |
from_georeader, to_georeader | georeader’s GeoTensor in and out, zero-copy; a GeoTensor is refused everywhere else | geoarray.interop.georeader |
| GeoArray ↔ A-grid CField | the one bridge between where on Earth and where in the cell | geoarray, gridax |
load_xarray, load_raster | catalog rows to an xr.Dataset or a mosaicked GeoArray | geocatalog.load |
Sources and status
Shelves as on the Layer Map (geostack PR #331). “Inherited” marks libraries the stack uses but does not contribute to. The steps are geotoolz’s search · catalog · save · stream · split · apply · combine · write · commit · publish.