isofit.surface.surface_glint_model

Classes

GlintModelSurface

A model of the surface based on a collection of multivariate

Module Contents

class GlintModelSurface(full_config: Config)[source]

Bases: isofit.surface.surface_multicomp.MultiComponentSurface

A model of the surface based on a collection of multivariate Gaussians, extended with two surface glint terms (sun + sky glint).

glint_ind[source]
sky_glint_ind[source]
sun_glint_ind[source]
n_state[source]
idx_surface[source]
analytical_iv_idx[source]
sun_glint_sigma[source]
sky_glint_sigma[source]
xa(x_surface, geom)[source]

Mean of prior distribution, calculated at state x.

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 and one or more emissive parameters, fit a state vector.

calc_rfl(x_surface, geom)[source]

Direct and diffuse Reflectance (includes sun and sky glint).

Inputs: x_surface : np.ndarray

Surface portion of the statevector element

geomGeometry

Isofit geometry object

Outputs: rho_dir_dir : np.ndarray

Reflectance quantity for downward direct photon paths

rho_dif_dirnp.ndarray

Reflectance quantity for downward diffuse photon paths

Note

Here, we treat direct and diffuse photon path reflectance differently. The sun and sky glint magnitudes are statevector elements that interact with the two reflectance quantities independently.

drfl_dsurface(x_surface, geom)[source]

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

drdn_dglint(L_tot, L_down_dir, s_alb, rho_dif_dir)[source]

Derivative of radiance with respect to the direct and diffuse glint terms

drdn_dsurface(rho_dif_dir, drfl_dsurface, dLs_dsurface, s_alb, t_total_up, L_tot, L_down_dir)[source]

Derivative of radiance with respect to full surface vector

analytical_model(background, L_down_dir, L_down_dif, L_tot, geom, L_dir_dir=None, L_dir_dif=None, L_dif_dir=None, L_dif_dif=None)[source]

Linearization of the glint terms to use in AOE inner loop. Function will fetch the linearization of the rho terms and add the matrix components for the direct glint term. Currently we set the diffuse glint scaling term to constant value, which makes the AOE inner loop inversion possible.

summarize(x_surface, geom)[source]

Summary of state vector.

static fresnel_rf(vza)[source]

Calculates reflectance factor of sky radiance based on the Fresnel equation for unpolarized light as a function of view zenith angle (vza).