Landsat Spectral Clustering¶
The image loaded here is a cropped portion of a LANDSAT image of Walker Lake.
In addition to
dask-ml, we'll use
rasterio to read the data and
matplotlib to plot the figures.
I'm just working on my laptop, so we could use either the threaded or distributed scheduler, but here I'll use the distributed scheduler for the diagnostics.
import rasterio import numpy as np import xarray as xr import holoviews as hv from holoviews import opts from holoviews.operation.datashader import regrid import cartopy.crs as ccrs import dask.array as da from dask_ml.cluster import SpectralClustering from dask.distributed import Client hv.extension('bokeh')