Skip to content

[Feature]: A catalog of data cubes: find a cube by theme and place, and add it to the time slider or a trend in one step #683

Closed

Description

@elpidioassinaturas

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:

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.1 and NDVI at the BDC, or sentinel-2-l2a and nir at Earth Search. It often needs a sensible range for display and a cellSize too. 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.addCube refuses, 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 its bbox overlaps) 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.addCube for STAC entries, with the entry's collection, asset and range;
    • layer.addZarr for Zarr entries, following the slider.

    Trend Analysis takes an entry by "cube": id too, filling url, collection, asset and cellSize from 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 at assets.rustgis.app as 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:

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:

  1. The entry format, the built-in list, cube.catalog and cube.open, with tests.
  2. 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

  1. added
    enhancement
    on Oct 23, 2026
  2. elpidioassinaturas commented on Oct 28, 2026

    @elpidioassinaturas
    ContributorAuthor

    Both parts of this issue are now in main, so I'm closing it. What landed:

    • Web data: a catalog of data cubes, opened in one step (#683, part 1) #871 (part 1): the catalog and its commands.
      • cube.catalog lists the cubes by theme, area and words.
      • cube.open adds a cube to the time slider, through stac.addCube or layer.addZarr, over the map's area and the entry's last full year by default.
      • cube.trend and cube.reduce take a cube by "cube": id.
    • Web data: a Data Cubes pane, and the catalog of data cubes kept up to date with the app's assets (#683, part 2) #1060 (part 2): the window and the hosted list.
      • The Data Cubes pane (Home › Add › Web Data › Data Cubes) filters by theme, words and "where the map is". It shows each cube's provider, period, step, resolution, source and licence, and has Add to Time Slider and Trend Analysis….
      • Trend Analysis in Workflows can take a cube as its source.
      • The app reads a hosted list at 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:

    Differences from the proposal:

    • The DEA and DE Africa geomedians were left out of this first list.
    • Sentinel-2 comes as single bands, not as an NDVI cube.

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions