Filter data prior to continuum removal:

  • values are expected to be real reflectance values between 0 and 10000

  • negative values may occur, so a +100 value is applied to avoid negative

  • possibly remaining negative values are set to 0

  • constant spectra are eliminated

filter_prior_cr(mat_init, spectral_bands)

Arguments

mat_init

initial data matrix, n rows = n samples, p cols = p bands

spectral_bands

numeric. central wavelength for the spectral bands

Value

list. updated mat_init