Skip to content

Remove validate-time landmask code - #34

Merged
mmacferrin merged 1 commit into
mainfrom
remove-validate-landmask
Jul 16, 2026
Merged

Remove validate-time landmask code#34
mmacferrin merged 1 commit into
mainfrom
remove-validate-landmask

Conversation

@mmacferrin

Copy link
Copy Markdown
Collaborator

Summary

  • globato now generates a landmask during ICESat-2 photon classification, making the coastline mask previously built during ivert validate (to filter out offshore misclassified photons) redundant.
  • Removes coastline_mask.py (moved to archive/src/), the filter_misclassified_photons() function, the mask-subdivision logic in subdivide_dem(), the filter_misclassified parameter threaded through validate_dem() / validate_dem_parallel() / _write_validation_outputs(), the --no_misclassification_filter CLI flag, and the now-unused coastline_mask_sources / icesat2_misclassification_error_threshold_m config keys.

Test plan

  • python -m py_compile src/ivert/validate_dem.py
  • ruff format / ruff check (via pre-commit)
  • Confirmed no remaining references to coastline_mask or filter_misclassified in src/
  • Run ivert validate on a sample DEM to confirm output is unaffected

…on-classification landmask

globato generates a landmask when classifying photons, so the coastline
mask built during "ivert validate" to filter offshore misclassifications
is no longer needed.
@mmacferrin

Copy link
Copy Markdown
Collaborator Author

Failed same Codacy checks, all other tests passed. Codacy being removed later. Will push changes now.

@mmacferrin
mmacferrin merged commit 82a24ae into main Jul 16, 2026
3 of 4 checks passed
@mmacferrin
mmacferrin deleted the remove-validate-landmask branch July 16, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant