Skip to content
harithnabilfPublic

About

BARA - Burning Activity Record Almanac: one harmonized MODIS + VIIRS fire-hotspot calendar for ASEAN (NASA Space Apps 2026)

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BARA - Burning Activity Record Almanac

One consistent fire-hotspot record for the ASEAN region, from November 2000 to today, harmonized across NASA's MODIS and VIIRS sensors and shown as a burning activity calendar. Bara is Malay for ember.

The problem

MODIS (1 km pixels, on Terra and Aqua since 2000) and VIIRS (375 m pixels, on Suomi NPP since 2012) watch the same fires but count them differently. VIIRS sees small and cool fires that MODIS misses. Across ASEAN, VIIRS reports about 4.9 hotspots for every MODIS hotspot. If the two records are placed end to end, burning seems to jump in 2012. That step is the instrument, not the land.

The handover is happening now. Suomi NPP stopped delivering FIRMS data in November 2026, and Terra and Aqua MODIS are due to stop in 2027. A fire manager who asks "is this month normal?" needs a record that does not change meaning when the sensor changes.

What BARA does

  1. Harmonizes every day since November 2000 into one unit, the VIIRS-equivalent hotspot.
  2. Shows the result as a calendar of years by months for any area: a country, a state or province, a drawn rectangle, polygon or circle, or a point with a radius.
  3. Compares the latest month, and the current month to date, with the same period in every earlier year, and labels it below normal, near normal, above normal or extreme.
  4. Explains itself: the evidence section shows how well the harmonized record reproduces years it never saw.
  5. Exports CSV (monthly table, grid-cell records, daily series), a PNG of the calendar, and a link that reopens the exact view.

How the harmonization works

Reference unit: VIIRS on Suomi NPP. For each day the harmonizer uses the best sensor set that delivered data.

Sensor set available Harmonized value Typical period
Suomi NPP VIIRS its own count 20 Jan 2012 to 2 Nov 2026
NOAA-20 VIIRS only 1.002 x NOAA-20 count Suomi NPP outages, and after it retired
Terra + Aqua MODIS local factor x (Terra + Aqua) Jul 2002 to Jan 2012
Terra MODIS only local factor x Terra Nov 2000 to Jul 2002
Aqua MODIS only local factor x Aqua Terra outages

The local factor is learned for every 0.1 degree cell from 2012 to 2021, the years when both sensors flew: the sum of VIIRS detections divided by the sum of MODIS detections. Cells with little data are shrunk towards their 0.5 degree block, then their 2.5 degree block, then the regional ratio (empirical-Bayes pooling, prior strength 30 MODIS detections). The factor is not one number: it ranges from 3.2 to 9.1 across cells (10th to 90th percentile), because small farm burns are missed by MODIS far more often than large forest or peat fires.

Filters applied to both sensors: presumed vegetation fires only (FIRMS type 0), MODIS confidence 30 or more, VIIRS confidence nominal or high. Near-real-time rows have no type flag, so they are screened with a mask of static hot sources built from the archive's own type 1, 2 and 3 detections.

Validation

Two tests, both on the Terra + Aqua configuration. "Error" is the summed absolute monthly miss divided by the VIIRS total.

Leave-one-year-out, 2012-2021. Each year is hidden, factors are learned from the other nine, MODIS is converted and compared with what VIIRS saw.

Model Regional bias Error, whole region Error, 2.5 degree areas Error, 0.5 degree areas
Raw MODIS count -79.7% 79.7% 79.8% 80.0%
One regional factor 0.0% 9.4% 24.6% 37.7%
Local factor (used) -0.2% 7.6% 15.7% 28.1%
Local factor + background term -0.1% 11.3% 18.5% 28.0%

The model with a background term for cell-months where MODIS saw nothing was tested and dropped because it was not better.

Forward test, 2022-2025. Factors frozen on 2012-2021 are applied to four years they never saw: regional bias -1.6%, regional error 6.3%, correlation 0.998; for 2.5 degree areas, error 16.0% and correlation 0.991.

Other checks:

  • Terra-only era (2000-2002): 10.2% regional error. It is less certain, and the app shows a wider range for it.
  • NOAA-20 against Suomi NPP: ratio 1.002 over 3,079 shared days.
  • The regional VIIRS-to-MODIS ratio stayed between 4.8 and 5.3 from 2013 to 2025.

Values before 2012 carry a typical range in the app, taken from the spread of held-out results.

Data

All fire data come from NASA FIRMS (Fire Information for Resource Management System):

  • MODIS Collection 6.1 active fires, Terra and Aqua, standard and near-real-time
  • VIIRS 375 m active fires, Suomi NPP and NOAA-20, standard and near-real-time
  • 30.0 million vegetation-fire detections in the 11 ASEAN countries, 1 November 2000 to 14 November 2026

Other resources: NASA Blue Marble base image from NASA GIBS; country and province boundaries from Natural Earth (public domain); Leaflet and Leaflet.draw for the map; Polars, NumPy and Shapely in the pipeline.

Rebuild it yourself

The heavy downloads run on GitHub Actions, one runner per product-year.

  1. Fork the repo. Add a free FIRMS key as the repository secret FIRMS_MAP_KEY (get one at https://firms.modaps.eosdis.nasa.gov/api/map_key/).
  2. Run the workflow Data 1 - fetch NASA FIRMS archive (country archive, 2000-2025, no key needed) and Data 2 - fetch 2026 from the NASA FIRMS API.
  3. Download the artifacts of both runs into one folder, then:
pip install polars shapely numpy requests
python pipeline/merge_counts.py <artifacts_dir> work
BARA_LAST_DAY=2026-11-14 python pipeline/harmonize.py work docs/data

harmonize.py prints the validation tables and writes everything the app needs into docs/data. The site is static: serve docs/ with any web server.

Repository layout

Path Contents
pipeline/fetch_archive.py, pipeline/fetch_api.py download FIRMS data and reduce it to daily grid counts
pipeline/merge_counts.py merge chunks, screen near-real-time rows
pipeline/harmonize.py local factors, validation, harmonized record, exports
pipeline/geo/ country polygons used to clip API data
docs/ the web app (HTML, CSS, one JavaScript module, data files)
docs/demo/ demo slides (HTML source and PDF)
.github/workflows/ the two data workflows

Limits

  • Hotspots are satellite detections of heat. They are not confirmed fires and not burned area.
  • Cloud and thick smoke hide fires from every sensor.
  • Values before 2012 are estimates. Small areas and single months are less certain than regions and seasons.
  • Coverage is the 11 ASEAN countries. The pipeline itself is not region-specific.

AI use

The code, text, charts and slides of this project were generated with an AI assistant (Claude), directed by the team. Every source file carries a note to that effect. No NASA branding is used, and NASA does not endorse this project.

License

The source code and documentation are released under the MIT License (see LICENSE). NASA FIRMS data, the NASA Blue Marble image, Natural Earth boundaries, Leaflet and Leaflet.draw keep their own terms, listed in LICENSE.

About

BARA - Burning Activity Record Almanac: one harmonized MODIS + VIIRS fire-hotspot calendar for ASEAN (NASA Space Apps 2026)

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages