Commit 47b642f4 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Added a note.

Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <>
parent b4632618
......@@ -439,6 +439,8 @@ class KMeansRSImage(object):
# get DataFrame with columns [cluster_label, B1, B2, B3, ...]
# NOTE: spectra with nodata values are already excluded here in the self.spectra getter
# which uses self.goodSpecMask (excludes spectra with nodata in ANY band)
df = DataFrame(self.spectra, columns=['B%s' % band for band in range(1, + 1)], )
df.insert(0, 'cluster_label', self.clusters.labels_)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment