cars.applications.dem_generation.dem_generation_tools
this module contains tools for the dem generation
Module Contents
Functions
|
Coregistrates the two DEMs given then saves the result. |
|
Add margin to a bounding box |
- cars.applications.dem_generation.dem_generation_tools.fit_initial_elevation_on_dem_median(dem_to_fit_path: str, dem_ref_path: str, dem_out_path: str)[source]
Coregistrates the two DEMs given then saves the result. The initial elevation will be cropped to reduce computation costs. Returns the transformation applied.
- Parameters
dem_to_fit_path (str) – Path to the dem to be fitted
dem_ref_path (str) – Path to the dem to fit onto
dem_out_path (str) – Path to save the resulting dem into
- Returns
coregistration transformation applied
- Return type
dict
- cars.applications.dem_generation.dem_generation_tools.add_margin(bbox, ratio=1)[source]
Add margin to a bounding box :param bbox: input bounding box :type bbox: rasterio.coords.BoundingBox :param ratio: factor of bbox size to add to each side of bbox :type ratio: float
- Returns
bounding box with margins
- Return type
rasterio.coords.BoundingBox