feat: satellite-standard output, STAC v1.1.0, previews, Pseudo-Huber smoothness#40
Merged
MarcYin merged 1 commit intofeat/refactorfrom Apr 3, 2026
Merged
Conversation
…d Pseudo-Huber smoothness
Output system:
- Satellite-standard L2A naming: S2A_L2A_YYYYMMDDTHHMMSS_T{tile}_{product}.tif
- Auto-generated STAC v1.1.0 Item with eo:bands, projection, view, processing extensions
- Preview PNGs: false-colour composite, AOT/TCWV colour maps, cloud mask overlay, scatter plots
- Reuse resample_mask_to_template from siac.geo.resample (eliminates 85 lines of duplication)
- Extract _write_bands helper in raster writer; partition STAC artifact iteration
Solver:
- Replace DCT-based smoothness with Pseudo-Huber penalty on finite differences
- Edge-preserving: quadratic for small gradients (noise), linear for large (hotspots)
- Add smoothness_delta config parameter threaded from schema through assembly
- apply_smoothness_filter now uses iterative Pseudo-Huber diffusion
- Cap multigrid grid levels at input dimensions; deduplicate collapsed levels
- Post-grid-search spatial smoothing with inflated uncertainty at invalid pixels
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
S2A_L2A_20240315T103045_T32UQD_BOA_B02.tif) with auto-generated STAC v1.1.0 Item (eo:bands, projection, view, processing extensions)preview/subdirectorysiac.geo.resample, extract_write_bandshelper, partition STAC artifact iterationTest plan
pixi run test-fast)pixi run lint)🤖 Generated with Claude Code