isofit.surface.surface_multicomp

class MultiComponentSurface(full_config)[source]

Bases: Surface

A model of the surface based on a collection of multivariate Gaussians, with one or more equiprobable components and full covariance matrices.

To evaluate the probability of a new spectrum, we calculate the Mahalanobis distance to each component cluster, and use that as our Multivariate Gaussian surface model.

component(x, geom)[source]

We pick a surface model component using the Mahalanobis distance.

This always uses the Lambertian (non-specular) version of the surface reflectance. If the forward model initialize via heuristic (i.e. algebraic inversion), the component is only calculated once based on that first solution. That state is preserved in the geometry object.

xa(x_surface, geom)[source]

Mean of prior distribution, calculated at state x. We find the covariance in a normalized space (normalizing by z) and then un- normalize the result for the calling function. This always uses the Lambertian (non-specular) version of the surface reflectance.

Sa(x_surface, geom)[source]

Covariance of prior distribution, calculated at state x. We find the covariance in a normalized space (normalizing by z) and then un- normalize the result for the calling function.

fit_params(rfl_meas, geom, *args)[source]

Given a reflectance estimate, fit a state vector.

calc_rfl(x_surface, geom)[source]

Non-Lambertian reflectance.

calc_lamb(x_surface, geom)[source]

Lambertian reflectance.

drfl_dsurface(x_surface, geom)[source]

Partial derivative of reflectance with respect to state vector, calculated at x_surface.

dlamb_dsurface(x_surface, geom)[source]

Partial derivative of Lambertian reflectance with respect to state vector, calculated at x_surface.

calc_Ls(x_surface, geom)[source]

Emission of surface, as a radiance.

dLs_dsurface(x_surface, geom)[source]

Partial derivative of surface emission with respect to state vector, calculated at x_surface.

summarize(x_surface, geom)[source]

Summary of state vector.