Skip to content

i.albedo: add Sentinel-2 broadband albedo support - #7935

Merged
echoix merged 1 commit into
OSGeo:mainfrom
YannChemin:i.albedo-sentinel2-albedo
Sep 23, 2026
Merged

echoix merged 1 commit into
OSGeo:mainfrom
YannChemin:i.albedo-sentinel2-albedo

Conversation

@YannChemin

Copy link
Copy Markdown
Contributor

Summary

  • Adds a -s flag to i.albedo to compute broadband shortwave albedo from Sentinel-2 surface reflectance bands (B2, B3, B4, B8, B11, B12), alongside the existing MODIS/AVHRR/Landsat/ASTER modes.
  • Coefficients are the narrow-to-broadband conversion set of Bonafoni & Sekertekin (2020), IEEE Geoscience and Remote Sensing Letters 17(9):1618-1622, doi:10.1109/LGRS.2020.2967085 (coefficients sum to 1.0, consistent with the paper's linear-regression formulation).
  • New bb_alb_sentinel2() in bb_alb_sentinel2.c, following the existing per-sensor function pattern (bb_alb_landsat.c, bb_alb_landsat8.c, etc.).
  • Docs (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

  • Built cleanly with make MODULE_TOPDIR=$HOME/dev/grass from imagery/i.albedo/.
  • Ran i.albedo -s on 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.
  • No automated testsuite exists yet for 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

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>
@github-actions github-actions Bot added C Related code is in C module docs markdown Related to markdown, markdown files imagery labels Sep 22, 2026
@echoix
echoix merged commit 3ca4643 into OSGeo:main Sep 23, 2026
26 checks passed
@github-actions github-actions Bot added this to the 8.6.0 milestone Sep 23, 2026
@YannChemin
YannChemin deleted the i.albedo-sentinel2-albedo branch October 19, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C Related code is in C docs imagery markdown Related to markdown, markdown files module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants