Learn R Programming

rWind (version 1.1.7)

wind2raster: Wind-data to raster file

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

wind2raster(x)

Arguments

x

an "rWind list" obtained by wind.fit

Value

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

Details

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

See Also

wind.dl

Examples

Run this code
# NOT RUN {
data(wind.data)

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

wind2raster(wind.data)
# }

Run the code above in your browser using DataLab