pattern2grid | R Documentation |
Transform a climate4R pattern into a climate4R grid.
pattern2grid(
pattern,
index.code,
members = 1,
season = 1,
coords = NULL,
dates = NULL
)
pattern |
A climate4R pattern, obtained from |
index.code |
Circulation index to be extracted. Only ONE circulation index can be extracted at a time. See |
members |
In a model ensemble, position of the desired member. Default: 1 (no member dimension). |
season |
Season to be extracted. Default: 1. |
coords |
List of xyCoords, as in C4R grids. |
dates |
List of (start and end) dates, as in C4R grids. |
A typical C4R grid.
## Not run:
require(climate4R.indices)
data(NCEP_hgt500_2001_2010)
cpc <- indicesCPC(grid=NCEP_hgt500_2001_2010, index.code = c("NAO", "EA","PNA"), season=1)
cpc2plot <- pattern2grid(cpc, index.code="NAO", coords =NCEP_hgt500_2001_2010$xyCoords,
dates=NCEP_hgt500_2001_2010$Dates)
spatialPlot(cpc2plot, backdrop.theme="coastline")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.