sambuca.error

class sambuca.error.ErrorTerms(alpha, alpha_f, f, lsq)

namedtuple containing the error terms.

alpha

float – TODO

alpha_f

float – TODO

f

float – TODO

lsq

float – TODO

Sambuca Error Functions.

Used when assessing model closure during parameter estimation.

sambuca.error.error_all(observed_rrs, modelled_rrs, nedr=None)[source]

Calculates all common error terms.

Parameters:
  • observed_rrs (array-like) – The observed reflectance(remotely-sensed).
  • modelled_rrs (array-like) – The modelled reflectance(remotely-sensed).
  • nedr (array-like) – Noise equivalent difference in reflectance.
Returns:

The error terms.

Return type:

ErrorTerms

sambuca.error.distance_alpha(observed_rrs, modelled_rrs, nedr=None)[source]

Calculates TODO

Parameters:
  • observed_rrs – The observed reflectance(remotely-sensed).
  • modelled_rrs – The modelled reflectance(remotely-sensed).
  • noise – Optional spectral noise values.

Returns: TODO

sambuca.error.distance_f(observed_rrs, modelled_rrs, nedr=None)[source]

Calculates TODO

Parameters:
  • observed_rrs – The observed reflectance(remotely-sensed).
  • modelled_rrs – The modelled reflectance(remotely-sensed).
  • noise – Optional spectral noise values.

Returns: TODO

sambuca.error.distance_alpha_f(observed_rrs, modelled_rrs, nedr=None)[source]

Calculates TODO

Parameters:
  • observed_rrs – The observed reflectance(remotely-sensed).
  • modelled_rrs – The modelled reflectance(remotely-sensed).
  • noise – Optional spectral noise values.

Returns: TODO

sambuca.error.distance_lsq(observed_rrs, modelled_rrs, nedr=None)[source]

Calculates TODO

Parameters:
  • observed_rrs – The observed reflectance(remotely-sensed).
  • modelled_rrs – The modelled reflectance(remotely-sensed).
  • noise – Optional spectral noise values.

Returns: TODO