onstove.Biomass.transportation_time#

Biomass.transportation_time(friction_path: str, forest_path: str, model: onstove.OnStove)[source]#

This method calculates the travel time needed to gather biomass.

The travel time is calculated as the time needed (in hours) to reach the closest forest cover point from each population point. It uses a forest cover layer, a friction layer and population density layer. The function does not return anything but saves the travel time in the travel_time attribute of the Biomass technology class.

Parameters:
friction_path: str

Path to the friction raster file describing the time needed (in minutes) to travel one meter within each cell.

forest_path: str

Path to the forest cover raster file.

model: OnStove model

Instance of the OnStove model containing the main data of the study case. See onstove.OnStove.