wind2raster: Wind-data to raster file

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/wind_functions2.R

Description

wind2raster crates a raster stack (gridded) with 2 layers: wind speed and wind direction for an object of rWind. Latitude and longitude values are used to locate raster file and to create raster using rasterFromXYZ function from raster package. If the input file is a list of wind data created by wind.dl, a list of raster stacks will be returned

Usage

1

Arguments

x

an "rWind list" obtained by wind.fit

Details

WGS84 datum (non-projected) CRS is selected by default to build the raster file.

Value

A raster stack or a list of raster stacks representing wind direction and speed.

Author(s)

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

See Also

wind.dl

Examples

1
2
3
4
5
6
data(wind.data)

# Create raster stack from the downloaded data with wind directon and speed
# layers

wind2raster(wind.data)

rWind documentation built on Oct. 19, 2021, 5:06 p.m.