Learn R Programming

eixport (version 0.4.0)

wrf_grid: Creates grid from wrf file

Description

Return a Spatial Feature multipolygon or matrix

Usage

wrf_grid(filewrf, type = "wrfinput", matrix = F, epsg = 4326,
  as_raster = F)

Arguments

filewrf

wrf file

type

Type of wrf file: "wrfinput" or "geo". When type is "geo", lat long comes from mass grid, XLONG_M and XLAT_M

matrix

if the output is matrix or polygon (sf)

epsg

epsg code number (see http://spatialreference.org/ref/epsg/)

as_raster

logical, to return a raster

Examples

Run this code
# NOT RUN {
{
# Do not run
wrf <- paste(system.file("extdata", package = "eixport"),
                         "/wrfinput_d02", sep="")
gwrf  <- wrf_grid(wrf)
plot(gwrf, axes = TRUE)
}
# }

Run the code above in your browser using DataLab