Creates a wind_field, the wind across a grid at a single moment, from a two-layer raster
or file, or from one time step of a wind_series. To summarize a whole series as a single
field, use mean() or net_flow().
Arguments
- x
A
SpatRasterwith two layers holding the u and v wind components, the path to a raster file with those two layers, or awind_series. Data must be on a longitude/latitude grid, with components in m/s, oriented to true east and north.- step
For a
wind_serieswith more than one time step, the time step to use, as an integer index (seewind_times()for the time of each step).
See also
mean() for the time-mean wind of a series.
Examples
series <- windscape_example("wind_series")
field <- wind_field(series, step = 1)
