Normalized Burn Ratio (NBR & $\Delta NBR$) mathematical engine (nbr-calculator.ts) #70

Closed
opened 2026-10-14 22:28:42 +00:00 by yuris · 0 comments
Owner

What to build

Implement post-fire burn severity calculation using Normalized Burn Ratio (NBR = rac{NIR - SWIR}{NIR + SWIR}) and \Delta NBR = NBR_{pre} - NBR_{post} in src/lib/gis/nbr-calculator.ts.

Technical specifications

  1. Target files:
    • src/lib/gis/nbr-calculator.ts: Mathematical calculation functions.
    • src/lib/gis/__tests__/nbr-calculator.test.ts: Unit test suite with USGS benchmark values.
  2. Classification levels:
    • High Severity: \Delta NBR > 0.66.
    • Moderate Severity: 0.27 < \Delta NBR \leq 0.66.
    • Low Severity: \Delta NBR \leq 0.27.

Acceptance criteria

  • Formulas output exact float values matching USGS standards.
  • Unit tests pass with zero NaN / divide-by-zero errors.

Authoritative Specifications & Reference Documentation

### What to build Implement post-fire burn severity calculation using Normalized Burn Ratio ($NBR = rac{NIR - SWIR}{NIR + SWIR}$) and $\Delta NBR = NBR_{pre} - NBR_{post}$ in `src/lib/gis/nbr-calculator.ts`. ### Technical specifications 1. **Target files**: - `src/lib/gis/nbr-calculator.ts`: Mathematical calculation functions. - `src/lib/gis/__tests__/nbr-calculator.test.ts`: Unit test suite with USGS benchmark values. 2. **Classification levels**: - High Severity: $\Delta NBR > 0.66$. - Moderate Severity: $0.27 < \Delta NBR \leq 0.66$. - Low Severity: $\Delta NBR \leq 0.27$. ### Acceptance criteria - [ ] Formulas output exact float values matching USGS standards. - [ ] Unit tests pass with zero NaN / divide-by-zero errors. --- ### Authoritative Specifications & Reference Documentation - **Titik Gambut Architecture & Subsystem Contract**: [`docs/ARCHITECTURE.md`](https://git.nokopia.com/yuris/titik-gambut-next/src/branch/main/docs/ARCHITECTURE.md) - **Copernicus Sentinel-2 STAC API**: [Earth Search STAC API](https://earth-search.aws.element84.com/v1) — AWS Element84 Sentinel-2 L2A STAC catalog. - **Normalized Burn Ratio (NBR) Standard**: [USGS Landsat NBR](https://www.usgs.gov/landsat-missions/normalized-burn-ratio) — Formula: $(B8 - B12) / (B8 + B12)$. - **European Forest Fire Information System (EFFIS)**: [EFFIS Burn Severity Classification](https://effis.jrc.ec.europa.eu/) — Delta-NBR fire damage scoring.
yuris changed title from Issue 57: [Backend] Normalized Burn Ratio (NBR & $\Delta NBR$) mathematical engine (nbr-calculator.ts) to [Backend] Normalized Burn Ratio (NBR & $\Delta NBR$) mathematical engine (nbr-calculator.ts) 2026-10-14 22:31:24 +00:00
yuris changed title from [Backend] Normalized Burn Ratio (NBR & $\Delta NBR$) mathematical engine (nbr-calculator.ts) to Normalized Burn Ratio (NBR & $\Delta NBR$) mathematical engine (nbr-calculator.ts) 2026-10-14 22:38:30 +00:00
yuris closed this issue 2026-10-15 05:06:08 +00:00
Sign in to join this conversation.
No labels
backend
frontend
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
yuris/titik-gambut-next#70
No description provided.