wrf_raster {eixport} | R Documentation |
Creates raster from a variable from a wrf file
Description
Return a Raster
Usage
wrf_raster(
file = file.choose(),
name = NA,
latlon = F,
level = 1,
as_polygons = FALSE,
map,
verbose = FALSE
)
Arguments
file |
wrf file |
name |
variable name |
latlon |
project the output in "+proj=longlat +datum=WGS84 +no_defs" |
level |
only for 4d data, default is 1 (surface) |
as_polygons |
logical, true to return a poligon instead of a raster |
map |
(optional) file with lat-lon variables and grid information |
verbose |
display additional information |
Examples
{
wrf <- paste(system.file("extdata", package = "eixport"),
"/wrfinput_d02", sep="")
r <- wrf_raster(file=wrf, name='XLAT')
library(raster)
plot(r, axes = TRUE)
}
[Package eixport version 0.6.0 Index]