Skip to content

Conversation

@codersmiti
Copy link
Contributor

This PR introduces a test suite for the i.albedo GRASS GIS module, focusing on various scenarios such as sensor-specific albedo calculations, output range validation, aggressive mode processing, and linear reflectance scaling.

Key updates in this PR include:

Functionality:

  • Verify albedo calculations for MODIS, Landsat, NOAA, and ASTER sensors using precomputed reference statistics.
  • Ensure that computed albedo values are remaining within the 0 to 1 range.

Linearity Test and Landsat Aggressive Mode:

  • Validate that aggressive mode processing reduces the dynamic range of output values compared to standard mode.
  • Confirm that albedo calculations scale linearly with input reflectance values.

Test Case Additions:

  • Sensor Tests: Validate albedo calculations for MODIS, Landsat, NOAA, and ASTER sensors against reference statistics.
  • Aggressive Mode Comparison: Compare standard and aggressive processing modes to verify dynamic range reduction and mean shift.
  • Output Range Validation: Ensure all albedo outputs are within the valid 0-1 range.
  • Linearity Test: Confirm that doubling input reflectance values results in doubled albedo outputs.

@github-actions github-actions bot added Python Related code is in Python module imagery tests Related to Test Suite labels Mar 16, 2025
@codersmiti codersmiti changed the title i.albedo : add test file i.albedo: Add test file Mar 16, 2025
@petrasovaa petrasovaa merged commit 638e237 into OSGeo:main Apr 2, 2025
28 checks passed
@github-actions github-actions bot added this to the 8.5.0 milestone Apr 2, 2025
Kiraschild pushed a commit to Kiraschild/grass that referenced this pull request Apr 4, 2025
@codersmiti codersmiti deleted the i_albedo_tests branch April 24, 2025 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

imagery module Python Related code is in Python tests Related to Test Suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants