Return a Spatial Feature multipolygon or matrix
wrf_grid(filewrf, type = "wrfinput", matrix = FALSE, as_raster = FALSE)
wrf file
Type of wrf file: "wrfinput" or "geo". When type is "geo", lat long comes from mass grid, XLONG_M and XLAT_M
if the output is matrix or polygon (sf)
logical, to return a raster
The default crs is 4326 (see http://spatialreference.org/ref/epsg/)
{
# Do not run
wrf <- paste(system.file("extdata", package = "eixport"),
"/wrfinput_d02", sep="")
gwrf <- wrf_grid(wrf)
plot(gwrf, axes = TRUE)
}
#> using grid info from: /media/sergio/ext4/models/eixport/inst/extdata/wrfinput_d02
#> Number of lat points 51
#> Number of lon points 63