Learn R Programming

RSurvey (version 0.5.0)

srvy.process: Process Data

Description

This function processes the imported data, data.raw, by reducing its spatial and temporal range, applying offsets, adjusting for depth readings, correcting for erroneous measurements, and interpolating values.

Usage

srvy.process(const.3d = FALSE)

Arguments

const.3d
logical; if TRUE an interpoled surface is constructed

Value

  • Returns the data.pts data frame and data.grd list, see srvy.dat.

Details

The spatial range for point data is reduced using: min.x, max.x, min.y, and max.y the minimum x, maximum x, minimum y, and maximum y spatial range values, respectively; min.t and max.t the minimum and maximum temporal range values, respectively; and polyRange, a polygon that defines the maximum spatial extent for the (x,y) data (see srvy.dat). State variable and temporal offsets are applied using off.z and off.t, respectively. Note that off.t is specified in seconds (see srvy.dat). If depth is TRUE the state variable is designated as the depth below water surface and z values will be subtracted from the user specified water surface elevation, wtr.elev; depth values will then be plotted as elevations (see srvy.dat). Erroneous state variable measurements are identified by calculating the change in z over the change in time for sequential data records. Those gradients exceeding a user defined tolerance, grad.tol, are identified as erroneous measurements and excluded from the data-set. The process is then repeated until all gradients are less than the user specified tolerance. An exception to the tolerance constraint is made for sequential records whose time difference is greater than a specified time gap, time.gap (see srvy.dat). If const.3d is TRUE an interpolated grid of z values in constructed using a Multilevel B-spline approximation. The spatial extent of the interpolated surface is constrained using polyLimit, a polygon that sets spatial limits for grid data; where z values cooresponding to grid nodes located outside this polygon are set to NA (see srvy.dat).

See Also

mba.surf

Examples

Run this code
data(project)
srvy.process(const.3d = TRUE)

Run the code above in your browser using DataLab