The FEDS module provides access to NASA’s Fire Events Data Suite from the Wildfire Tracking Lab. FEDS provides satellite-derived fire event tracking with perimeters, active fire lines, and new fire pixels via a public OGC API.
usingWildfireData.FEDS# List all collectionsFEDS.collections()# Filter by categoryFEDS.collections(category=:snapshot)FEDS.collections(category=:large_fire)FEDS.collections(category=:archive)# Get collection infoFEDS.info(:snapshot_perimeters)
Downloading Data
Basic Download
# Download first 10 snapshot perimetersdata = FEDS.download(:snapshot_perimeters, limit=10)
Spatial Filtering (Bounding Box)
# Download large fire perimeters in Californiadata = FEDS.download(:lf_perimeters, bbox=(-125, 32, -114, 42))# Bounding box as string also worksdata = FEDS.download(:lf_perimeters, bbox="-125,32,-114,42")
Temporal Filtering
# Download archived perimeters for 2020data = FEDS.download(:archive_perimeters, datetime="2020-01-01T00:00:00Z/2020-12-31T23:59:59Z")
# Sort by fire area descendingdata = FEDS.download(:snapshot_perimeters, sortby="-farea", limit=10)# Paginationpage1 = FEDS.download(:snapshot_perimeters, limit=10)page2 = FEDS.download(:snapshot_perimeters, limit=10, offset=10)
Working with Results
The download function returns a GeoJSON.FeatureCollection:
data = FEDS.download(:snapshot_perimeters, limit=5)# Iterate over featuresfor feature in data geom = GeoJSON.geometry(feature)println("Geometry type: $(typeof(geom))")end
Saving and Loading Files
# Download and save to local filepath = FEDS.download_file(:snapshot_perimeters, limit=100)# Load previously downloaded filedata = FEDS.load_file(:snapshot_perimeters)# Custom filenamepath = FEDS.download_file(:lf_perimeters, filename="ca_fires.geojson", bbox=(-125, 32, -114, 42))