101 nasa opera
Searching and Visualizing NASA OPERA Data Products Interactively
Started in April 2021, the Observational Products for End-Users from Remote Sensing Analysis (OPERA) project at the Jet Propulsion Laboratory collects data from satellite radar and optical instruments to generate six product suites:
- a near-global Surface Water Extent product suite
- a near-global Surface Disturbance product suite
- a near-global Radiometric Terrain Corrected product
- a North America Coregistered Single Look complex product suite
- a North America Displacement product suite
- a North America Vertical Land Motion product suite
This notebook demonstrates how to search and visualize NASA OPERA data products interactively using the leafmap
Python package.
# %pip install -U "leafmap[raster]" earthaccess
import leafmap
To download and access the data, you will need to create an Earthdata login. You can register for an account at urs.earthdata.nasa.gov.
leafmap.nasa_data_login()
m = leafmap.Map(center=[36.1711, -114.6581], zoom=10, height="700px")
m.add_basemap("Satellite")
m.add("NASA_OPERA")
m
Pan and zoom to your area of interest. Select a dataset from the Short Name dropdown list. Click the "Search" button to load the available datasets for the region. The footprints of the datasets will be displayed on the map. Click on a footprint to display the metadata of the dataset.
The footprints of the datasets can be accessed as a GeoPandas GeoDataFrame:
m._NASA_DATA_GDF.head()
There are two options to visualize OPERA product granule(s):
Option 1: Select a dataset from the Dataset dropdown menu, and select a corresponding layer from the Layer dropdown menu. Choose a colormap (if colormap is blank, the default OPERA colormap from the metadata will be used). Click on the "Display (Single)" button to display the selected granule layer on the map.
Option 2: Select a layer from the Layer dropdown menu. Choose a colormap (if colormap is blank, the default OPERA colormap from the metadata will be used). Click on the "Display (Mosaic)" button to display a mosaic of the granules shown on the map (Currently only supported for geotiff products; RTC/DSWx/DIST).
The OPERA Dynamic Surface Water Extent from Sentinel-1 (DSWx-S1) water classification (WTR) layer over Lake Mead in southern Nevada, USA:
The OPERA Surface Disturbance from Harmonized Landsat and Sentinel-2 (DIST-HLS) vegetation disturbance status (VEG-DIST-STATUS) layer over a wildfire-impacted region of northern Quebec, Canada:
The selected layer added to the map can be accessed as a xarray Dataset:
m._NASA_DATA_DS
To save the displayed layer as a GeoTIFF file:
m._NASA_DATA_DS.rio.to_raster("DSWx.tif")
To download all the available datasets for the region:
leafmap.nasa_data_download(
m._NASA_DATA_RESULTS[:1], out_dir="data", keywords=["_WTR.tif"]
)