Visualizing Maxar Open Data with Leafmap
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.
The Maxar Open Data STAC catalog URL is: https://maxar-opendata.s3.amazonaws.com/events/catalog.json
# !pip install -U leafmap geopandas
import pandas as pd
import geopandas as gpd
import leafmap.foliumap as leafmap
repo = "https://raw.githubusercontent.com/opengeos/maxar-open-data/master/"
datasets = pd.read_csv(f"{repo}datasets.csv")
datasets
dataset = "Kahramanmaras-turkey-earthquake-23"
df = pd.read_csv(f"{repo}datasets/{dataset}.tsv", sep="\t")
df.head()
geojson = f"{repo}datasets/{dataset}.geojson"
m = leafmap.Map()
m.add_geojson(geojson, layer_name=dataset)
gdf = gpd.read_file(geojson)
m.zoom_to_gdf(gdf)
m