114 nasa fire
Visualizing NASA Fire Perimeter Data
This notebook demonstrates how to access and visualize NASA fire perimeter data using leafmap. The data comes from the Fire Event Data Suite (FEDs) algorithm, which processes VIIRS sensor data from Suomi NPP and NOAA-20 satellites to track active fires and fire perimeters.
The data is accessed via the OpenVEDA OGC API Features endpoint.
Uncomment the following line to install leafmap if needed.
1 | |
1 | |
List Available Fire Collections¶
First, let's see what fire data collections are available:
1 2 | |
The main fire collections are:
| Collection | Description |
|---|---|
snapshot_perimeter_nrt |
20-day recent fire perimeters from VIIRS |
lf_perimeter_nrt |
Current year large fires (>5 km²) |
lf_perimeter_archive |
2018-2021 Western US archived large fires |
lf_fireline_nrt |
Active fire lines for large fires |
lf_newfirepix_nrt |
New fire pixels detected |
Note: The NRT (Near Real-Time) collections contain rolling data from the past 20 days. For historical analysis, use the archive collection.
Retrieve Fire Data by Bounding Box¶
Let's retrieve recent fire data for California:
1 2 3 4 5 6 7 | |
Visualize Fire Perimeters on a Map¶
Let's display the fire perimeters on an interactive map:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
Using the add_fire_data Method¶
The add_fire_data method provides a convenient way to fetch and display fire data directly on the map:
1 2 3 4 5 6 7 8 | |
Retrieve Fire Data by Place Name¶
You can also retrieve fire data by place name using geocoding:
1 2 3 4 | |
1 2 3 4 5 6 7 8 | |
Filter by Fire Properties¶
You can filter fires based on their properties such as fire area, duration, and mean Fire Radiative Power (FRP):
1 2 3 4 5 6 7 8 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
Large Fires from the Current Year¶
The lf_perimeter_nrt collection contains large fires (>5 km²) from the current year:
1 2 3 4 5 6 7 8 9 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
Color-Coded Fire Perimeters¶
Use the add_fire_perimeters method to display fires with color scaling based on fire area or other properties:
1 2 3 4 5 6 7 8 9 10 | |
Archived Fire Data (2018-2021)¶
Access historical fire data from 2018-2021 Western US. This collection allows filtering by date range:
1 2 3 4 5 6 7 8 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
Fire Attributes¶
The fire data includes several useful attributes:
| Attribute | Description |
|---|---|
fireid |
Unique fire identifier |
farea |
Fire area in km² |
fperim |
Fire perimeter in km |
meanfrp |
Mean Fire Radiative Power |
duration |
Fire duration in days |
t |
Timestamp of the observation |
n_pixels |
Number of VIIRS pixels |
isactive |
Whether the fire is currently active |
1 2 3 4 5 6 7 8 9 | |
Export Fire Data¶
You can export the fire data to various formats for further analysis:
1 2 3 4 5 6 7 8 | |
Summary¶
This notebook demonstrated how to:
- List available NASA fire data collections
- Retrieve fire perimeter data by bounding box or place name
- Filter fires by fire properties (area, duration, etc.)
- Visualize fire perimeters with custom styling
- Create color-coded maps based on fire attributes
- Access archived fire data (2018-2021)
- Export data for further analysis
Note: The NRT collections (snapshot_perimeter_nrt, lf_perimeter_nrt) contain rolling 20-day data. For historical analysis, use lf_perimeter_archive which covers 2018-2021.
For more information about the FEDs algorithm and data, visit: - NASA FIRMS - OpenVEDA