Skip to content

Use a single table for available optical indexes - #403

Merged
dfguerrerom merged 4 commits into
masterfrom
optical-index-availability
Aug 21, 2026
Merged

Use a single table for available optical indexes#403
dfguerrerom merged 4 commits into
masterfrom
optical-index-availability

Conversation

@dfguerrerom

@dfguerrerom dfguerrerom commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Centralizes optical-index availability so Retrieve, map visualizations, classification derived bands, and the PYEo index gate use the same required-band rules. This exposes NBI, BUI, and KNDVI where supported, hides EBBI when thermal data is unavailable, and keeps Change Alerts monitoring and calibration visualization options working after availability filtering.

Verify these UI cases:

Sources Expected indexes
Sentinel-2 only NBI, BUI, and KNDVI appear; EBBI does not
Landsat only NBI, EBBI, BUI, and KNDVI appear
Landsat + Sentinel-2 NBI, BUI, and KNDVI appear; EBBI does not

Check each source configuration in Optical Mosaic Retrieve and map visualization, Classification Input imagery > Derived bands > Indexes, and PYEo Alerts > Options > Index. Also confirm Change Alerts monitoring and calibration mosaics open their visualization list without crashing.

Validated with the full GUI test suite (974 tests), the targeted PYEo parameter test, changed-file ESLint, and a production build.

Two parts of the user interface kept a separate copy of the bands that each
index needs. The copies were different, so SEPAL did not offer some indexes
that it can calculate. The code gave no error message.
@dfguerrerom
dfguerrerom marked this pull request as ready for review August 17, 2026 10:45
@dfguerrerom
dfguerrerom merged commit a2d82bf into master Aug 21, 2026
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