pixelate | R Documentation |
This function down-scales ocean data by quadrants of user defined size (in degrees) according to a given function.
pixelate(X, extent = 0.25, FUN = mean)
X |
a satin object as returned by |
extent |
size in degrees of the squared quadrant for the new spatial scale. |
FUN |
function to be applied for obtaining the quadrants' values, defaults to |
The main interest of this function is to obtain smooth isolines for ocean data (e.g. isotherms). In order to use this function with Copernicus data returned from read.cmems
, the appropriate indexing should be done.
An object of class "satin"
. See satin-class
for details.
Héctor Villalobos
isolines
# load and plot sample SST data data(dsst) plot(dsst) # change spatial resolution to 0.5 degrees sst0.5 <- pixelate(dsst, extent = 0.5) plot(sst0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.