In [ ]:
Copied!
# %pip install "hypercoast[extra]"
# %pip install "hypercoast[extra]"
In [ ]:
Copied!
import hypercoast
import hypercoast
Download sample dataset from Access the AVIRIS-NG L2 Surface Reflectance product page via ORNL DAAC https://daac.ornl.gov/cgi-bin/dsviewer.pl?ds_id=1988
Download ang20210401t150456_rfl_v2z1.zip
and unzip it.
The dataset contains 2 files: ang20210401t150456_rfl_v2z1
and ang20210401t150456_rfl_v2z1.hdr
. We will use the ang20210401t150456_rfl_v2z1
file in this notebook.
In [ ]:
Copied!
filepath = "ang20210401t150456_rfl_v2z1"
filepath = "ang20210401t150456_rfl_v2z1"
Read the AVIRIS data as an xarray.Dataset
object.
In [ ]:
Copied!
ds = hypercoast.read_aviris(filepath)
ds
ds = hypercoast.read_aviris(filepath)
ds
Create an interactive map.
In [ ]:
Copied!
m = hypercoast.Map()
m
m = hypercoast.Map()
m
Add the AVIRIS data to the map.
In [ ]:
Copied!
m.add_aviris(ds, wavelengths=[1000, 700, 400], vmin=0, vmax=0.2)
m.add("spectral")
m.add_aviris(ds, wavelengths=[1000, 700, 400], vmin=0, vmax=0.2)
m.add("spectral")