Skip to content

Implement Iterative Algorithm Loop #9

Description

@RobinGummels

Description:
Implement Step 9: Create the main algorithm loop that repeats the STAC query, data loading, NDSI calculation, and neighbor expansion until no additional candidate cells are found.

Tasks:

  • Initialize queue with initial seed-containing candidates
  • Implement while loop: while candidates_to_process > 0
  • Process each candidate cell (Steps 3-8)
  • Track processed cells to avoid reprocessing
  • Add new candidates from neighbor expansion to queue
  • Implement convergence check (no new candidates)
  • Log progress (cells processed, candidates added)
  • Implement timeout/max iterations safety mechanism
  • Generate final classification map for all of Iceland

Acceptance Criteria:

  • Algorithm iterates until convergence (no new candidates)
  • All glacier-connected cells are identified
  • No cells are processed twice
  • Progress is logged at each iteration
  • Final output covers all ice/snow regions in Iceland
  • Performance metrics are collected (time, data volume)

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