69 turkey earthquake
Visualizing Maxar Open Data for the 2023 Turkey-Syria Earthquake
The Maxar Open Data Program provides pre- and post-event high-resolution satellite imagery in support of emergency planning, risk assessment, monitoring of staging areas and emergency response, damage assessment, and recovery. Check out the links below for more information. - Maxar Open Data Program - Maxar Open Data on AWS - Maxar Open Data on STAC Index - Maxar Open Data on STAC Browser - Maxar Open Data in CSV, GeoJSON, and MosaicJSON formats
This notebook shows how to visualize and download the Maxar Open Data for the 2023 Turkey Earthquake using leafmap.
First, install libraries and import modules.
1 | |
1 2 | |
Retrieve all collections from the Maxar Open Data STAC catalog. Each collection represents a single event.
1 | |
The collection ID for the 2023 Turkey Earthquake is Kahramanmaras-turkey-earthquake-23. We can get the footprints (geojson, tsv) of the event from the Maxar Open Data GitHub repo:
1 2 3 | |
Let's find out how many images are available for the event:
1 2 3 | |
Visualize the footprints of the images on the map:
1 2 3 | |
The earthquake started on February 6, 2023. We can use the start_date and end_date parameters to filter the images by date. Set end_date to 2023-02-06 to get all images captured before the earthquake:
1 2 3 | |
Set the start_date to 2023-02-06 to get all images captured after the earthquake:
1 2 3 | |
Visualize the pre-event and post-event image footprints on the map. The red footprints represent the pre-event images and the blue footprints represent the post-event images:
1 2 3 4 5 | |
Use the draw tools to select a region of interest (ROI) and get the bounding box coordinates:
1 2 3 | |
Search the Maxar Open Data catalog for images within the ROI before the earthquake:
1 2 | |
Search the Maxar Open Data catalog for images within the ROI after the earthquake:
1 2 | |
Get the catalog id of the pre-event tile, which contain several images. Each of the image has a unique quadkey:
1 2 | |
Get the catalog id of the post-event tile, which contain several images. Each of the image has a unique quadkey:
1 2 | |
Get the MosaicJSON for the pre-event tile:
1 2 | |
Get the MosaicJSON for the post-event tile:
1 2 | |
Create a split map to compare the pre-event and post-event images. Note the the ipyleaflet split map has some bugs (source), so we will use the folium plotting backend instead.
1 | |
1 2 3 4 5 6 7 8 9 | |
Get download links for the pre-event and post-event images:
1 2 | |
Download the pre-event and post-event images:
1 | |
1 | |