museotoolbox.processing.RasterMath.reshape_ndim

RasterMath.reshape_ndim(x)[source]

Reshape array with at least one band.

Parameters

x (numpy.ndarray, shape [n_pixels, n_features] or shape [n_pixels]) –

Returns

x

Return type

numpy.ndarray, shape [n_pixels, n_features]