DEM Visualization Module
- class riverrem.RasterViz.RasterViz(dem, out_dir='./', out_ext='.tif', make_png=False, make_kmz=False, docker_run=False, shell=False, cache_dir='./.cache', *args, **kwargs)
Handler to produce DEM derivatives/visualizations.
- Parameters
dem (str) – path to input DEM, either in GeoTIFF (.tif), ASCII (.asc), or IMG (.img) format.
out_dir (str) – output file directory. Defaults to current working directory.
out_ext (str, '.tif' or '.img') – extension for output georaster files.
make_png (bool) – output a png image of visualizations (EPSG:3857) in addition to a raster in source projection. If this option is used, a thumbnail version of the png will also be produced.
make_kmz (bool) – output a kmz file (e.g. Google Earth) of visualizations in addition to a raster in source projection.
docker_run (bool) – only if shell=True as well, calls gdal utilities from shell with docker container. Must have the osgeo/gdal docker container configured locally to use this option.
shell (bool) – call gdal utilities from a shell instead of using the Python bindings. May run faster for large files but can be more difficult to configure GDAL environment outside conda.
cache_dir (str) – cache directory