mkrast: Make raster from field

Description Usage Arguments Examples

View source: R/mkrast.R

Description

Make raster from field

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
mkrast(
  field,
  lonmin = -180,
  lonmax = 180,
  latmin = -90,
  latmax = 90,
  dellon = 1,
  dellat = 1,
  crsstring = "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0",
  lons = NA,
  lats = NA
)

Arguments

field

A matrix or array of the field to be converted into a raster object

lonmin

A float specifying min longitude

lonmax

A float specifying max longitude

latmin

A float specifying min latitude

latmax

A float specifying max latitude

dellon

A float specifying the delta longitude

dellat

A float specifying the delta latitude

crsstring

A string specifying the projection to be used

lons

A vector of longitudes

lats

A vector of latitudes

Examples

1
PVr <- mkrast(PV,lons=lons,lats=lats)

romatt/metplot documentation built on Dec. 22, 2021, 5:17 p.m.