revrt.routing.base.RoutingScenario#

class RoutingScenario(cost_fpath, cost_layers, friction_layers=None, tracked_layers=None, cost_multiplier_layer=None, cost_multiplier_scalar=1, ignore_invalid_costs=True)[source]#

Bases: object

Container for routing scenario configuration

Parameters:
  • cost_fpath (path-like) – Path to the cost layer Zarr store used for routing.

  • cost_layers (list) – List of dictionaries containing layer definitions contributing to the summed routing cost.

  • friction_layers (list, optional) – List of dictionaries defining layers that influence routing but are excluded from reports.

  • tracked_layers (dict, optional) – Layers to summarize along the path, mapped to aggregation names.

  • cost_multiplier_layer (str, optional) – Layer name providing spatial multipliers for total cost.

  • cost_multiplier_scalar (int or float, optional) – Scalar multiplier applied to the final cost surface.

  • ignore_invalid_costs (bool, optional) – Flag indicating whether non-positive costs block traversal.

Methods

Attributes

cost_function_json

JSON string describing configured cost layers

property cost_function_json[source]#

JSON string describing configured cost layers

Type:

str