Repository navigation
Description
Before you start
- I searched the existing issues and the roadmap and did not find a duplicate request.
What problem does this solve?
RustGIS reads data cubes from two kinds of sources:
- STAC collections of cloud-optimised GeoTIFFs: on the time slider with
stac.addCube([Feature]: A STAC data cube on the time slider (Brazil Data Cube as a test case) #559), and in Trend Analysis with Analysis: trend over a STAC collection's band, read in place in pieces (#579) #678; - Zarr variables: on the time slider ([Feature]: A Zarr variable that follows the time slider #554), as a pixel series ([Feature]: A Zarr variable's time series at a clicked point, as a chart #555), as summaries ([Feature]: Summarise a Zarr variable over time into a raster (mean, minimum, maximum, sum…) #556), and as trends (Analysis: trend over a data cube, Sen's slope and the modified Mann-Kendall test, cell by cell (#579) #604).
Finding a cube to open is still up to the user:
- The STAC Search dialog offers five APIs by name: Earth Search, Planetary Computer, Planet Open Data, Portolan and Vantor. The Brazil Data Cube, used as [Feature]: A STAC data cube on the time slider (Brazil Data Cube as a test case) #559's example, isn't among them, nor are Digital Earth Africa or Digital Earth Australia. Their addresses have to be known and typed.
- The API alone isn't enough. A cube needs the right collection and asset, such as
mod13q1-6.1andNDVIat the BDC, orsentinel-2-l2aandnirat Earth Search. It often needs a sensiblerangefor display and acellSizetoo. Finding these means reading each provider's catalog. - Zarr stores have no list at all. ERA5 on Google Cloud, CMIP6 on Pangeo, or the ESA Earth System Data Cube are long addresses that come from blog posts and notebooks.
- Some sources can't be used anyway. Planetary Computer's files sit behind signed addresses, which
stac.addCuberefuses, and the user only learns that after searching.
So the question "what data cubes are there for my area and theme, and how do I open one" has no answer inside RustGIS.
Proposed solution
A catalog of data cubes: a curated list in which each entry is a cube ready to open, and a window to browse it.
1. The entries (one JSON file):
{
"id": "bdc-mod13q1-ndvi",
"name": "MODIS NDVI, 16-day composites (MOD13Q1 v6.1)",
"provider": "Brazil Data Cube (INPE)",
"theme": ["vegetation"],
"bbox": [-100, -60, -21.3, 20],
"start": "2000-02-18", "end": null,
"step": "16 days",
"format": "stac",
"url": "https://data.inpe.br/bdc/stac/v1/",
"collection": "mod13q1-6.1",
"asset": "NDVI",
"range": [0, 0.9],
"cellSize": 232,
"license": "public domain (NASA LP DAAC)",
"about": "https://data.inpe.br/bdc/"
}A Zarr entry has "format": "zarr" with url and variable in place of collection and asset. Themes form a short fixed list:
- vegetation;
- land cover;
- water;
- climate;
- ocean;
- atmosphere;
- elevation.
2. The commands:
-
cube.catalog {"theme"?, "bbox"? | "view", "query"?}lists the entries matching a theme, an area (an entry is kept when itsbboxoverlaps) and words in the name or provider. -
cube.open {"id", "bbox"? | "view", "start"?, "end"?}adds an entry to the map with the existing commands:stac.addCubefor STAC entries, with the entry's collection, asset and range;layer.addZarrfor Zarr entries, following the slider.
Trend Analysis takes an entry by
"cube": idtoo, fillingurl,collection,assetandcellSizefrom it.
3. The window: Home › Add › Web Data › Data Cubes.
- It shows a list filtered by theme, by "over the map view", and by a search box.
- Each entry shows the provider, period, step, resolution and license.
- Each entry has two buttons: Add to Time Slider and Trend Analysis…. The second opens the Workflows section with the cube selected.
4. Where the list comes from:
- The list is a file in
opengeos/rustgis-assets, served atassets.rustgis.appas the app's other assets are. A cube is added, or an address fixed, without a new release. - A copy is built into the app as the fallback when offline, or when the file can't be read.
- The file is checked as other downloaded files are: size cap, schema, http(s) addresses only.
First entries, all public and readable today:
-
Brazil Data Cube:
- MOD13Q1 NDVI and EVI;
- the Sentinel-2 16-day cube
S2-16D-2; - the Landsat 16-day cube;
- CBERS-4/4A WFI.
-
Earth Search:
- Sentinel-2 L2A (bands and NDVI);
- Copernicus DEM.
Landsat Collection 2 is left out: its files are in a requester-pays bucket.
-
Digital Earth Africa and Digital Earth Australia:
- their annual and seasonal geomedians;
- water observations.
-
ARCO-ERA5 on Google Cloud (Zarr):
- 2 m temperature;
- precipitation;
- soil moisture.
Behaviour:
- Only sources RustGIS can read: no signed addresses (Planetary Computer) and no logins (Copernicus Data Space, NASA Earthdata, which has its own window) in this first version. A source of that kind can be listed as "needs sign-in, not yet", or left out.
- Area and period are the user's: opening an entry asks for them, with the map view and the entry's last year as defaults, since a cube is never read whole.
- Docs: a section in
web-data.md, with the entry format so others can propose cubes. - Tests:
- the built-in list parses, and every entry has the fields its format needs;
cube.catalogfilters by theme, area and words;cube.openmakes the same calls as typing the entry's values intostac.addCubeorlayer.addZarr, against local test servers as [Feature]: A STAC data cube on the time slider (Brazil Data Cube as a test case) #559's tests do;- a malformed or oversized remote list falls back to the built-in one.
Choices in this proposal
- Ready-to-open entries, not a list of APIs. An entry names the collection and band, the part that takes reading docs to find. The STAC Search dialog stays for anything not in the list.
- The file hosted with the app's assets, with a built-in copy. Cubes change faster than releases, and the copy keeps it working offline.
- Only cubes RustGIS reads today. Signed and logged-in sources come in when RustGIS can read them, so the list never offers something that fails.
- A fixed, short theme list. It's enough to filter by, and easy to translate.
- No new readers. The catalog only opens cubes through the commands that exist, so it adds no network or format code.
Estimated scope
Medium. I'd do it in two PRs:
- The entry format, the built-in list,
cube.catalogandcube.open, with tests. - The window and the hosted file in
rustgis-assets.
Alternatives considered
- Adding providers to the STAC Search dialog's API list: a small change, and worth doing on its own (the Brazil Data Cube first), but the user still has to find the collection and band.
- Saved data sources (
sources.save): they keep an address, which works per user today, but not a collection, band, theme or area, and they aren't shared. - A STAC index such as STAC Index (stacindex.org): it lists catalogs, not ready-to-open cubes, and it has no Zarr stores.
Related
#559 (STAC data cubes on the time slider), #554/#555/#556 (Zarr on the time slider, series and summaries), #579/#604/#678 (Trend Analysis, and from a STAC collection), #682 (publication layout, from the same teaching example).
Activity
Data cubes: review fixes for the catalog (opengeos#683)
Web data: a catalog of data cubes, opened in one step (#683, part 1) (#…
Data Cubes: say a Zarr cube is read whole; no hosted-list fetch in te…
Web data: a Data Cubes pane, and the catalog of data cubes kept up to…
elpidioassinaturas commentedon Oct 28, 2026
Both parts of this issue are now in
main, so I'm closing it. What landed:cube.cataloglists the cubes by theme, area and words.cube.openadds a cube to the time slider, throughstac.addCubeorlayer.addZarr, over the map's area and the entry's last full year by default.cube.trendandcube.reducetake a cube by"cube": id.assets.rustgis.app/data/data-cubes.json, checked as the built-in one is, and falls back to the built-in list.The built-in list has 13 cubes:
sentinel-2-l2a, whose band values don't carry the offset its metadata declares #1054), and the Copernicus DEM.Differences from the proposal:
One step is left outside this repository. The hosted file doesn't exist yet: the address answers 404, so the app uses the built-in list without showing an error. opengeos/rustgis-assets#11 adds
data/data-cubes.json, a copy of the built-in list, so the list can be updated between releases once it lands.Add the data cube catalog, data/data-cubes.json (#11)