Skip to content

Compute Per-Pixel Median Composite #5

Description

@RobinGummels

Description:
Implement Step 5: Compute the median value per pixel and per band across all available Sentinel-2 scenes within the month to reduce measurement noise and cloud contamination.

Tasks:

  • Stack all reprojected scenes along time dimension
  • Compute median using xarray.DataArray.median(dim='time')
  • Handle potential NaN values (clouds, no-data)
  • Apply median computation to both B03 and B11 bands
  • Verify output is a single composite image per band
  • Implement cloud masking if available from SCL (Scene Classification Layer)

Acceptance Criteria:

  • One median composite image per band (B03, B11)
  • Cloud-contaminated pixels are properly handled
  • Output has same spatial extent as candidate cell
  • Visual inspection confirms cloud reduction

Activity

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions