(api)=
This page provides a summary of xDEM’s API. For more details and examples, refer to the relevant chapters in the main part of the documentation.
.. currentmodule:: xdem
.. minigallery:: xdem.DEM
:add-heading:
A {class}`~xdem.DEM` inherits all raster methods and attributes from the {class}`~geoutils.Raster` object of GeoUtils.
Below, we only repeat some core attributes and methods of GeoUtils, see
[the Raster API in GeoUtils](https://geoutils.readthedocs.io/en/latest/api.html#raster) for the full list.
.. autosummary::
:toctree: gen_modules/
DEM
DEM.save
.. autosummary::
:toctree: gen_modules/
DEM.info
DEM.plot
.. autosummary::
:toctree: gen_modules/
DEM.from_array
(api-dem-attrs)=
.. autosummary::
:toctree: gen_modules/
DEM.data
DEM.crs
DEM.transform
DEM.nodata
DEM.area_or_point
.. autosummary::
:toctree: gen_modules/
DEM.vcrs
See the full list in the Raster API of GeoUtils.
.. autosummary::
:toctree: gen_modules/
DEM.res
DEM.bounds
DEM.width
DEM.height
DEM.shape
.. autosummary::
:toctree: gen_modules/
DEM.set_nodata
DEM.set_area_or_point
DEM.info
DEM.reproject
DEM.crop
.. autosummary::
:toctree: gen_modules/
DEM.set_vcrs
DEM.to_vcrs
See the full list of vector methods in [GeoUtils' documentation](https://geoutils.readthedocs.io/en/latest/api.html#vector).
.. autosummary::
:toctree: gen_modules/
DEM.polygonize
DEM.proximity
DEM.to_pointcloud
DEM.interp_points
.. autosummary::
:toctree: gen_modules/
DEM.slope
DEM.aspect
DEM.hillshade
DEM.curvature
DEM.profile_curvature
DEM.planform_curvature
DEM.maximum_curvature
DEM.topographic_position_index
DEM.terrain_ruggedness_index
DEM.roughness
DEM.rugosity
DEM.fractal_roughness
Or to get multiple related terrain attributes at once (for performance):
.. autosummary::
:toctree: gen_modules/
DEM.get_terrain_attribute
To build and pass your coregistration pipeline to {func}`~xdem.DEM.coregister_3d`, see the API of {ref}`api-geo-handle`.
.. autosummary::
:toctree: gen_modules/
DEM.coregister_3d
.. autosummary::
:toctree: gen_modules/
DEM.estimate_uncertainty
(api-geo-handle)=
Overview of co-registration class structure:
.. inheritance-diagram:: xdem.coreg.base.Coreg xdem.coreg.affine xdem.coreg.biascorr
:top-classes: xdem.coreg.Coreg
.. autosummary::
:toctree: gen_modules/
coreg.Coreg
coreg.CoregPipeline
coreg.blockwise.BlockwiseCoreg
.. autosummary::
:toctree: gen_modules/
coreg.Coreg.fit_and_apply
coreg.Coreg.fit
coreg.Coreg.apply
.. autosummary::
:toctree: gen_modules/
coreg.Coreg.info
coreg.Coreg.meta
.. autosummary::
:toctree: gen_modules/
coreg.workflows.dem_coregistration
.. autosummary::
:toctree: gen_modules/
coreg.AffineCoreg
.. autosummary::
:toctree: gen_modules/
coreg.VerticalShift
coreg.NuthKaab
coreg.DhMinimize
coreg.ICP
.. autosummary::
:toctree: gen_modules/
coreg.AffineCoreg.from_matrix
coreg.AffineCoreg.to_matrix
coreg.AffineCoreg.from_translations
coreg.AffineCoreg.to_translations
coreg.AffineCoreg.from_rotations
coreg.AffineCoreg.to_rotations
coreg.apply_matrix
coreg.invert_matrix
.. autosummary::
:toctree: gen_modules/
coreg.BiasCorr
.. autosummary::
:toctree: gen_modules/
coreg.Deramp
coreg.DirectionalBias
coreg.TerrainBias
Several uncertainty functionalities of xDEM are being implemented directly in SciKit-GStat for spatial statistics
(e.g., fitting a sum of variogram models, pairwise subsampling for grid data). This will allow to simplify several
function inputs and outputs, by relying on a single {func}`~skgstat.Variogram` object.
This will trigger API changes in future package versions.
.. autosummary::
:toctree: gen_modules/
spatialstats.infer_heteroscedasticity_from_stable
spatialstats.infer_spatial_correlation_from_stable
spatialstats.spatial_error_propagation
.. autosummary::
:toctree: gen_modules/
spatialstats.nd_binning
spatialstats.interp_nd_binning
spatialstats.two_step_standardization
.. autosummary::
:toctree: gen_modules/
spatialstats.sample_empirical_variogram
spatialstats.fit_sum_model_variogram
spatialstats.correlation_from_variogram
.. autosummary::
:toctree: gen_modules/
spatialstats.number_effective_samples
.. autosummary::
:toctree: gen_modules/
spatialstats.patches_method
.. autosummary::
:toctree: gen_modules/
spatialstats.plot_variogram
spatialstats.plot_1d_binning
spatialstats.plot_2d_binning
.. autosummary::
:toctree: gen_modules/
spatialstats.nmad
The {class}`xdem.dDEM` and {class}`xdem.DEMCollection` classes will be removed or re-factored in the near future.
.. autosummary::
:toctree: gen_modules/
dDEM
.. autosummary::
:toctree: gen_modules/
DEMCollection