In [ ]:
Copied!
# %pip install "hypercoast[extra]"
# %pip install "hypercoast[extra]"
In [ ]:
Copied!
import hypercoast
import hypercoast
Register and access EnMap hyperspectral data from their portal https://www.enmap.org/data_access/
We primarily need 2 files for our usage: ENMAP01-____L2A-DT0000000001_XXXX-SPECTRAL_IMAGE_COG.TIF
and ENMAP01-____L2A-DT0000000001_XXXX-METADATA.XML
. Download and place them in the same folder.
In [ ]:
Copied!
filepath = "/path/to/NMAP01-____L2A-DT0000000001_XXXX-SPECTRAL_IMAGE_COG.TIF"
filepath = "/path/to/NMAP01-____L2A-DT0000000001_XXXX-SPECTRAL_IMAGE_COG.TIF"
Read the EnMap data as an xarray.Dataset
object.
In [ ]:
Copied!
ds = hypercoast.read_enmap(filepath)
ds
ds = hypercoast.read_enmap(filepath)
ds
Create an interactive map.
In [ ]:
Copied!
m = hypercoast.Map()
m.add_enmap(ds, vmin=0, vmax=0.2)
m.add("spectral")
m
m = hypercoast.Map()
m.add_enmap(ds, vmin=0, vmax=0.2)
m.add("spectral")
m
Add the EnMap data to the map.