Skip to main content

Crate hydro_analysis

Crate hydro_analysis 

Source
Expand description

§Hydro-analysis

hydro-analysis provides functions for Hydrology DEM manipulation. There are a couple generic functions for reading/writing raster files of any common primative type (which surprizingly I couldn’t find anywhere else, unless you use GDAL which I am trying to avoid). Also there are a couple functions based on whitebox. Whitebox is a command line tool, this provides functionality via functions so can be called from your code.

Enums§

RasterError

Functions§

array_to_rasterfile
Writes a 2D array of values to a GeoTIFF raster with geo metadata.
breach_depressions
Breach depressions least cost. Implements
d8_clipped
Updates a D8 flow direction using a mask that indicates onland and ocean and return changed flattened indices.
d8_pointer
Calculates the D8 flow direction from a digital elevation model (DEM).
fill_depressions
Fills depressions (sinks) in a digital elevation model (DEM).
rasterfile_to_array
Reads a single-band grayscale GeoTIFF raster file returning ndarry2 and metadata