wrf_raster | R Documentation |
Return a Raster
wrf_raster(
file = file.choose(),
name = NA,
latlon = F,
level = 1,
as_polygons = FALSE,
map,
verbose = FALSE,
...
)
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 |
... |
extra arguments passed to ncdf4::ncvar_get |
{
wrf <- paste(system.file("extdata", package = "eixport"),
"/wrfinput_d02", sep="")
r <- wrf_raster(file=wrf, name='XLAT')
library(raster)
plot(r, axes = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.