Decor.pField: Decorrelation of field

Description Usage Arguments Details Value Author(s) See Also

View source: R/math-functions.R

Description

Calculate the decorrelation length of a "pField" data set for given target locations.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
Decor.pField(
  field,
  lat1,
  lon1,
  lat2,
  lon2,
  return.scatter = FALSE,
  verbose = FALSE,
  print.progress = NULL,
  ...
)

Arguments

field

a "pField" object.

lat1

numeric vector of length 1 with the latitude of the target location for which the decorrelation length is to be calculated. Omit to analyse the entire field.

lon1

numeric vector of length 1 with the longitude of the target location for which the decorrelation length is to be calculated. Omit to analyse the entire field.

lat2

optional numeric vector of length 1 with a second latitude to define a coordinate region for which decorrelation lengths are to be correlated. OBS! Method to select a region from the "pField" object is not yet implemented!

lon2

Same as lat2 for a second longitude value.

return.scatter

logical; if TRUE, a data frame with distance- correlation pairs is returned for each target location additionally to the decorrelation length. Defaults to FALSE.

verbose

logical; if TRUE, informative messages are printed on the target location selection and the decorrelation length estimation. Defaults to FALSE.

print.progress

numeric value to specify an index interval at which messages on the computation progress are printed (useful for large analysed fields). Ignored for NULL (the default).

...

further arguments passed on to the correlation function cor.pTs.

Details

The decorrelation length estimation is based on fitting an exponential of the form exp(-x/tau), where x is distance and tau the fit parameter, i.e. the decorrelation length, to the distance-correlation relationship as obtained from correlating the time series at the target location with the time series from all other grid points of the input "pField". The fit is performed using the built-in R function nlm.

Value

Decorrelation lengths are returned in units of km. The return structure depends on the supplied input:

Author(s)

Thomas Münch

See Also

cor.pTs


EarthSystemDiagnostics/pfields documentation built on Jan. 10, 2022, 10:37 p.m.