RGB Plot of Satellite Imagery#
An RGB (Red, Green, Blue) plot displaying satellite imagery. The example loads the dataset using rioxarray and sets geo=True
(GeoViews must be installed) to correctly position the image on the earth.
import hvplot.xarray # noqa
ds = hvplot.sampledata.landsat_rgb("rioxarray")
ds.hvplot.rgb(
x="x",
y="y",
geo=True,
tiles=True,
padding=1,
title="RGB Satellite Imagery (Bokeh)",
)
import hvplot.xarray # noqa
hvplot.extension("matplotlib")
ds = hvplot.sampledata.landsat_rgb("rioxarray")
ds.hvplot.rgb(
x="x",
y="y",
geo=True,
features=["coastline"],
title="RGB Satellite Imagery (Matplotlib)",
)
See also
This web page was generated from a Jupyter notebook and not all
interactivity will work on this website.