Learn R Programming

rWind (version 1.1.7)

wind2raster_int: Wind-data to raster file

Description

wind2raster_int crates a raster file (gridded) from a data.frame created by wind.fit function from "rWind" package. Latitude and longitude values are used to locate raster file and create raster resolution using rasterFromXYZ function from raster package. As raster files only can store one field of information, you should choose between direction (by default, type="dir") and speed (type="speed") to be represented by the new raster file.

Usage

wind2raster_int(x)

Arguments

x

an object of class rWind

Value

A raster file representing wind direction, wind speed or both of the study area.

Details

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

See Also

wind.dl, wind2raster