mapField {clim.pact}R Documentation

MapField

Description

Draws maps of fields in a field object, eg read using retrieve.nc.

Usage

mapField(x,l=NULL,greenwich=TRUE,plot=TRUE,
                     what="ano",method="nice",val.rng=NULL,
                     col="black",col.coast="grey",lwd=2,lty=1,
                     add=FALSE,las = 1,levels=NULL,xlim=NULL,ylim=NULL,newFig=TRUE)

Arguments

x A field object.
l The field to map. Default: the last field in the record.
what What to draw: "ano"-> anomalies, "cli"-> climatological values, "abs" -> absolute values.
method "nice" -> filled.contour, otherwise use image.
val.rng Valid range: interval used for colour scale.
greenwich 'TRUE' centres on Greenwich meridian.
plot 'TRUE' produces graphic.
col Contour line colour for levels.
col.coast Contour line colour for coast lines.
lwd Line width.
lty Line type.
add Adds map to old figure.
las See par
levels See contour
xlim see plot
ylim see plot
newFig TRUE call newFig for new figure.

Author(s)

R.E. Benestad

Examples

library(clim.pact)
## Not run: 
skt<-retrieve.nc("skt.mon.mean.nc",
                 x.rng=c(-90,50),y.rng=c(0,75))
bitmap("ncep.skt.jpg",type="jpeg")
mapField(skt)
dev.off()
## End(Not run)

[Package clim.pact version 2.2-15 Index]