wind2raster: Wind data to terra rasters

View source: R/wind_functions2.R

wind2rasterR Documentation

Wind data to terra rasters

Description

wind2raster() converts an rWind object to a two-layer terra::SpatRaster containing wind direction and speed. An rWind_series is converted to a list of SpatRaster objects, one per time step. All outputs use WGS 84 (EPSG:4326).

Usage

wind2raster(x)

Arguments

x

An object of class rWind or rWind_series.

Value

A terra::SpatRaster, or a list of them, with layers direction and speed.

Author(s)

Javier Fernández-López (jflopez.bio@gmail.com)

See Also

wind.dl

Examples


data(wind.data)

# Create a SpatRaster with wind direction and speed layers

wind2raster(wind.data)

rWind documentation built on Oct. 18, 2026, 5:08 p.m.