windcoef | R Documentation |
windcoef
is used to apply a topographic shelter coefficient to wind data.
windcoef(dsm, direction, hgt = 1, reso = 1)
dsm |
SpatRaster object, two-dimensional array or matrix of elevations (m) derived either from a digital terrain or digital surface model, and orientated as if derived using |
direction |
a single numeric value specifying the direction from which the wind is blowing (º). |
hgt |
a single numeric value specifying the height (m) at which wind speed is derived or measured. The wind speeds returned are also for this height, and account for the fact topography affords less shelter to wind at greater heights. |
reso |
a single numeric value specifying the the resolution (m) of |
If dsm is a SpatRaster object, then a SpatRaster object is returned.
If elevations are derived from a digital terrain model, then
the sheltering effects of vegetation are ignored. If derived from a
digital surface model, then the sheltering effects of vegetation are
accounted for. If res
is unspecified dtm
is assumed to have a resolution of one m.
a SpatRaster object, or two-dimensional array of shelter coefficients. E.g. a shelter coefficient of 0.5 indicates that wind speed at that location is 0.5 times that measured at an unobscured location.
The function windheight()
converts measured wind heights to a standard reference height.
library(terra)
dsm <- rast(dtm1m) + rast(veg_hgt)
wc <- windcoef(dsm, 0)
plot(mask(wc, rast(dtm1m)), main ="Northerly wind shelter coefficient")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.