Skip to content

Add merge_cubes openEO Process #152

@emmanuelmathot

Description

@emmanuelmathot

Objective

Implement the merge_cubes process in openEO by TiTiler for multi-sensor data fusion.

Specification

Implementation References

  1. Raster Stack Data Model: https://sentinel-hub.github.io/titiler-openeo/raster-stack/

    • Understanding how multi-cube merging works in TiTiler-openEO
  2. Existing Implementation: aggregate_spatial in titiler/openeo/processes/implementations/spatial.py:L199

    • Follow similar patterns for parameter validation and callback handling

Implementation Steps

  1. Copy specification

    • Download merge_cubes.json from openeo-processes repo
    • Place in data folder following existing process organization
  2. Implement process

    • Merge two data cubes with optional overlap resolver
    • Handle dimension alignment (spatial, temporal, bands)
    • Support overlap resolver callback for conflicting values
    • Handle different spatial/temporal resolutions appropriately
  3. Register process

    • Add to process registry following existing patterns
  4. Testing

    • Unit tests for cubes with/without overlap
    • Test with different overlap resolvers
    • Test multi-sensor scenarios (Sentinel-1 + Sentinel-2)
    • Test temporal and spatial misalignment cases

Acceptance Criteria

  • JSON spec copied to data folder
  • Process implements specification correctly
  • Handles dimension alignment per spec
  • Overlap resolver works correctly
  • Includes tests
  • Multi-sensor fusion example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions