U.S. wildfires have been in the news this summer, as they are every summer, so I set out to create an automatically updating wildfire map.
Uploading and editing data with Mapbox tools
InciWeb is an interagency government website that publishes real-time information about wildfires. It hosts an RSS feed that is updated multiple times a day with reports from agencies managing active fires.
I wrote a script that grabs the latest RSS data from InciWeb and creates a GeoJSON point for each item. The point ties a wildfire’s geographic coordinates to a list of snippets from recent reports about the fire (provided by incident-specific RSS feeds).
I was also intrigued by the perimeter shapes that I saw on InciWeb detail pages. I found this data on a REST API provided by the Geospatial Multi-Agency Coordination. Supplementing the points I derived from InciWeb’s feed with fire perimeters from GeoMAC made for a more compelling and informative visualization.
Once the data was retrieved, transformed to GeoJSON, and cross-referenced, I used the Mapbox Datasets API to upload it all into a collection of datasets.
Throughout the process of writing and testing my scripts, I used the new Mapbox Studio dataset editor to review and edit updates. The ability to see and search my uploaded data in a map-based editor proved vital while I checked that my code was working as intended.
When I was confident that the scripts were functioning correctly, I scheduled them to run regularly via AWS Lambda.
Adding style and interactions to showcase the data
Click a dot to view the latest news about the fire and get a closer look at its area.
For fires larger than 10,000 acres, use the timeline to see how the fires’ areas have changed over time.
As with any feed-based dataset, this one will become more detailed and useful as time goes by and the information accumulates.
Heading 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Heading 2
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Heading 3
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Heading 4
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Heading 5
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Heading 6
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque euismod maximus porta. Pellentesque vitae augue elit. Nam semper eros leo, nec hendrerit nunc aliquet quis. Morbi ac sapien tortor. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Curabitur porta imperdiet lorem, ut aliquet orci pellentesque quis. Donec magna augue, molestie aliquam enim eu, auctor feugiat metus."