Description Usage Arguments Value Examples
View source: R/extract.raster.cortad.R
This function crops a multi-layer raster object specified by a variable name and an extent object and then calculates values using a formula.
1 | extract.raster.cortad(nc, var, ext, fxn)
|
nc |
a character vector of the destination of CoRTAD's .nc file |
var |
a character vector of the variable (e.g. 'WeeklySST') |
ext |
a vector of four numbers representing the extent (i.e. xmin, xmax, ymin, ymax) |
fxn |
a function (e.g. 'mean', 'min', 'max', 'sd') |
a Raster object
1 2 3 4 | rs <- extract.raster.cortad(nc = "cortadv6_WeeklySST.nc",
var = "WeeklySST",
ext = c(47 , 57, 22.9, 30.9),
fxn = mean)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.