Skip to main content

nasa-wildfires

Download wildfire hotspots detected by NASA satellites, from the Fire Information for Resource Management System (FIRMS), as GeoJSON or typed Python records.

A hotspot is a heat spot seen by a satellite. It is not a confirmed wildfire. Industrial flares, gas burning, fires lit on purpose and some false alarms show up too.

Install

uv add nasa-wildfires

Use it from the command line

nasawildfires modis > modis.json
nasawildfires viirs-noaa21 -r alaska -t 48h
nasawildfires hotspots --satellite viirs-noaa --region canada --time-range 7d

The commands are modis, viirs-suomi, viirs-noaa, viirs-noaa21 and hotspots. Regions are global, canada, alaska, usa-hawaii and nine more. Time ranges are 24h, 48h and 7d.

Use it from Python

import nasa_wildfires

data = nasa_wildfires.get_hotspots("viirs-noaa21", region="alaska")  # GeoJSON
records = nasa_wildfires.get_hotspot_records("modis", time_range="7d")  # typed records
print(records[0].acquired_at, records[0].frp)

get_modis, get_viirs_suomi and get_viirs_noaa still work. The Suomi-NPP satellite has been decommissioned, so get_viirs_suomi and the viirs-suomi command now return no hotspots. Use NOAA-20 or NOAA-21 instead.

Use your own request function

Some projects send every web request through their own helper, for shared retries, logging or proxy settings. Pass that helper as get and the package will use it instead of requests.get. It is called like get(url, timeout=seconds) and must return something with a status_code and the file's content as bytes. The timeout, the retries and the switching between NASA's two domains all still work, and failures still raise NASAError.

import requests

import nasa_wildfires
from nasa_wildfires import Reply


def my_get(url: str, *, timeout: float) -> Reply:
    print("Asking for", url)
    return requests.get(url, timeout=timeout, headers={"User-Agent": "my-project"})


data = nasa_wildfires.get_hotspots("modis", get=my_get)

The Fetcher and Reply types describe this, so a type checker can confirm your function fits. If your function raises one of the requests library's errors, such as a timeout, the package tries again just as it does for its own requests. Any other error is passed on to you.

Working on the code

This repository's full history is about 19 GB, because the scraped data files were saved to it for years. Copy only the latest version:

git clone --depth 1 https://github.com/datadesk/nasa-wildfires.git

The automated checks do the same, so the version number comes from a tag only on a tagged release.

Things to know

  • Detections are not confirmed wildfires. The documentation explains each column, including confidence and frp (fire radiative power, in megawatts).
  • Downloads retry. A request waits 60 seconds, then tries again on network errors and server errors, and raises nasa_wildfires.NASAError if it still fails.
  • The data comes from NASA. It is shared under NASA's full and open data policy and is provided "as is". The code is MIT.
  • Acknowledge NASA. NASA asks you to include its FIRMS acknowledgement when you share the data. The text is in the documentation.
  • AI helped write this package. AI tools assisted in writing its code, tests and documentation. A person directed and reviewed the work.

The documentation has the full field reference, the list of regions and the acknowledgement text.

Metadata

Release files for nasa-wildfires 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nasa-wildfires 2.1.0
File Size Uploaded Provenance Actions
nasa_wildfires-2.1.0.tar.gz 116.0 kB With provenance Details for nasa_wildfires-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nasa-wildfires 2.1.0
File Interpreter ABI Platform Actions
nasa_wildfires-2.1.0-py3-none-any.whl Python 3 none any Details for nasa_wildfires-2.1.0-py3-none-any.whl

Total release size: 131.2 kB

Release files / nasa_wildfires-2.1.0.tar.gz

Download URL nasa_wildfires-2.1.0.tar.gz
Size 116.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7712a6e6c68cba012bbf90a087b8772fed8c9bd64fb29446074c6f4c5c974acf
BLAKE2b-256 checksum
How to use checksums
ef552636bf973197c0933c6ca099e39cc82cebd8c12023d5c62d6cee80e0b658
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / nasa_wildfires-2.1.0-py3-none-any.whl

Download URL nasa_wildfires-2.1.0-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7c426c91d5c345d99f387fab052602f307d16ea753a2cf2112fa70f18f55487
BLAKE2b-256 checksum
How to use checksums
8e14e477b08ddecb3afe9837e64855df9e7883fcd7a9a2658e8c41e87c2745dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for nasa-wildfires 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nasa_wildfires-2.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page