pixelate {satin}R Documentation

Spatial re-scaling of ocean data

Description

This function down-scales ocean data by quadrants of user defined size (in degrees) according to a given function.

Usage

pixelate(X, extent = 0.25, FUN = mean)

Arguments

X

a satin object as returned by read.nasaoc, read.ghrsst, read.osunpp, or read.cmems.

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 mean.

Details

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.

Value

An object of class "satin". See satin-class for details.

Author(s)

Héctor Villalobos

See Also

isolines

Examples

# 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)

[Package satin version 1.1.0 Index]