least_cost_surface | R Documentation |
Calculate the accumulated wind cost-distance (e.g. travel times) or flow rate (the inverse of cost-distance) from one or more sites to every grid cell across the domain, using the least cost path algorithm. This function is a wrapper around accCost.
least_cost_surface(graph, sites, rate = FALSE)
graph |
A wind_graph. |
sites |
A two-column matrix of point coordinates. |
rate |
Whether to return values as "rates" instead of the default "cost distances". Rates are the inverse of cost distances, representing flow rather than travel time. |
A SpatRaster of wind connectivity values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.