Visualizing Multispectral Data with HyperCoast¶
In [ ]:
Copied!
# %pip install "hypercoast[extra]
# %pip install "hypercoast[extra]
In [ ]:
Copied!
import hypercoast
import hypercoast
In [ ]:
Copied!
url = "https://github.com/opengeos/datasets/releases/download/raster/cog.tif"
filepath = "data/cog.tif"
hypercoast.download_file(url, filepath, quiet=True)
url = "https://github.com/opengeos/datasets/releases/download/raster/cog.tif"
filepath = "data/cog.tif"
hypercoast.download_file(url, filepath, quiet=True)
In [ ]:
Copied!
m = hypercoast.Map()
filepath = "data/cog.tif" # replace it with your own raster data
m.add_dataset(
filepath, indexes=[4, 1, 2], vmin=0, vmax=2500, layer_name="Landsat", nodata=0
)
m.add("spectral")
m
m = hypercoast.Map()
filepath = "data/cog.tif" # replace it with your own raster data
m.add_dataset(
filepath, indexes=[4, 1, 2], vmin=0, vmax=2500, layer_name="Landsat", nodata=0
)
m.add("spectral")
m