revrt.costs.dry_costs_creator.compute_slope_multipliers#

compute_slope_multipliers(slope, chunks, config=None)[source]#

Create slope multiplier raster for a region

Unspecified slopes are left at 1.0

Parameters:
  • slope (array-like) – Slope raster clipped to a region - “Terrain slope in % of grade”

  • chunks (tuple) – Dask chunks to use when creating multipliers array. Should be of the same shape as slope.

  • config (dict | None) – Multipliers and slope cut offs for hilly and mountain terrain. The following keys are allowed:

    • ‘hill_mult’ : Multiplier for hilly terrain.

    • ‘mtn_slope’ : Multiplier for mountainous terrain.

    • ‘hill_slope’Slope at and above which a cell is

      classified as hilly.

    • ‘mtn_slope’Slope at and above which a cell is

      classified as mountainous.

    If None, uses default values. By default, None.

Returns:

array-like – Slope multiplier raster. Minimum value for any cell is 1.