xdem.coreg.BiasCorr1D#

class xdem.coreg.BiasCorr1D(fit_or_bin='fit', fit_func='norder_polynomial', fit_optimizer=<function curve_fit>, bin_sizes=10, bin_statistic=<function nanmedian>, bin_apply_method='linear')[source]#

Bias-correction along a single variable (e.g., angle, terrain attribute).

The correction can be done by fitting a function along the variable, or binning with that variable.

__init__(fit_or_bin='fit', fit_func='norder_polynomial', fit_optimizer=<function curve_fit>, bin_sizes=10, bin_statistic=<function nanmedian>, bin_apply_method='linear')[source]#

Instantiate a 1D bias correction.

Parameters

Methods

__init__([fit_or_bin, fit_func, ...])

Instantiate a 1D bias correction.

apply(dem[, bias_vars, transform, crs, resample])

Apply the estimated transform to a DEM.

apply_pts(coords)

Apply the estimated transform to a set of 3D points.

copy()

Return an identical copy of the class.

error(reference_dem, dem_to_be_aligned[, ...])

Calculate the error of a coregistration approach.

fit(reference_dem, dem_to_be_aligned[, ...])

Estimate the coregistration transform on the given DEMs.

fit_pts(reference_dem, dem_to_be_aligned[, ...])

Estimate the coregistration transform between a DEM and a reference point elevation data.

residuals(reference_dem, dem_to_be_aligned)

Calculate the residual offsets (the difference) between two DEMs after applying the transformation.