scaleSatin: Spatial re-scaling of satellite data

Description Usage Arguments Value Author(s) Examples

View source: R/scaleSatin.R

Description

This function down-scales satellite data by quadrants of user defined size (in degrees), calculating the value given by a function.

Usage

1
scaleSatin(satin.obj, extent = 1, FUN = mean, format = "wide")

Arguments

satin.obj

satin object as returned by read.oceancolor

extent

size in degrees of the squared quadrant for the summary

FUN

summary function, defaults to mean

format

Default is format = "wide", producing a satin object suitable for creating a map with plotSatin. When format = "long", a four column data frame with longitude, latitude, period and parameter values is produced.

Value

If format = "wide" (the default), a satin object as produced by read.oceancolor.

If format="long", a data frame with columns: longitude, latitude, period and parameter values.

Author(s)

Héctor Villalobos

Examples

1
2
3
4
5
data(dbsst)
sst0.5 <- scaleSatin(dbsst, extent = 0.5) 
plotSatin(sst0.5)

scaleSatin(dbsst, extent = 1, format = "long")

r-forge/satin documentation built on Feb. 18, 2022, 2:39 a.m.