Repository navigation
i.albedo: add Sentinel-2 broadband albedo support - #7935
Merged
Merged
Conversation
Adds a -s flag computing broadband shortwave albedo from Sentinel-2 surface reflectance (B2, B3, B4, B8, B11, B12), using the narrow-to-broadband conversion coefficients of Bonafoni & Sekertekin (2020), IEEE Geosci. Remote Sens. Lett. 17(9):1618-1622, doi:10.1109/LGRS.2020.2967085. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
echoix
approved these changes
Sep 23, 2026
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
-sflag toi.albedoto compute broadband shortwave albedo from Sentinel-2 surface reflectance bands (B2, B3, B4, B8, B11, B12), alongside the existing MODIS/AVHRR/Landsat/ASTER modes.bb_alb_sentinel2()inbb_alb_sentinel2.c, following the existing per-sensor function pattern (bb_alb_landsat.c,bb_alb_landsat8.c, etc.).i.albedo.md) updated: description, NOTES on expected band order/scaling, a worked EXAMPLE, and a REFERENCES entry for the new coefficient source.Test plan
make MODULE_TOPDIR=$HOME/dev/grassfromimagery/i.albedo/.i.albedo -son synthetic single-value Sentinel-2 band rasters (B2=0.05, B3=0.08, B4=0.06, B8=0.35, B11=0.20, B12=0.10) and confirmed the output (0.177031) matches the hand-computed weighted sum exactly.i.albedo's other sensor modes either; happy to add one if maintainers want it as part of this PR.Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com