Learn R Programming

satin (version 1.1.0)

pixelate: 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)

Value

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

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.

Author

Héctor Villalobos

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.

See Also

isolines

Examples

Run this code
# 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)

Run the code above in your browser using DataLab