build.section: Build Section

View source: R/section.building.R

build.sectionR Documentation

Build Section

Usage

build.section(
  x,
  y,
  z,
  lat = NULL,
  lon = NULL,
  gridder = NULL,
  grid = NULL,
  weight = NULL,
  xlim = NULL,
  ylim = NULL,
  x.factor = NULL,
  y.factor = NULL,
  x.scale = NULL,
  y.scale = NULL,
  uncertainty = 1,
  p = 2,
  neighborhood = 10,
  field.names = NULL,
  nx = 50,
  ny = 50,
  proj = NULL,
  verbose = T
)

Arguments

x

dimensions (e.g. lat, lon, depth, section distance, time, etc)

y

dimensions (e.g. lat, lon, depth, section distance, time, etc)

z

signal to be gridded (e.g. T, S, ...)

gridder

A function to perform gridding, options gridIDW (default: inverse distance), gridNN (nearest neighbor), gridNNI (natural neighbor) or gridKrige (Krigging)

xlim

Limits of the gridding. These are the bounds of the new x-y grid. Default: NULL will set it based on the data + 10

\item

ylimLimits of the gridding. These are the bounds of the new x-y grid. Default: NULL will set it based on the data + 10

\item

x.factorThe relative scale difference between x and y, used to calculate distances. Take into account actual scale AND the relevent scaling of the system (vertical distance tends to be more important than horizontal distance).

\item

y.factorThe relative scale difference between x and y, used to calculate distances. Take into account actual scale AND the relevent scaling of the system (vertical distance tends to be more important than horizontal distance).

\item

x.scaleThe step size in the new x-y grid. By default the scale is set to generate a grid that is 50x50.

\item

y.scaleThe step size in the new x-y grid. By default the scale is set to generate a grid that is 50x50.

\item

uncertainty= 0: Scaling applied to the distance from the cener of a grid cell to a vertex, used to add a base-line distance to all measurements. 0 = no minimum, 1 = minimum = to half a grid cell.

\item

nxThe number of splits to make in the x direction (defaults to 50). Used only if x.scale is not set.

\item

nyThe number of splits to make in the y direction (defaults to 50). Used only if y.scale is not set.

\item

projA gdal projection string such as from make.proj() function. Used to redistribute grid over non-euclidean surfaces like maps.

\item

field.nameSets the name of the new interpolated field. By default the name is 'z1' Build Section Thomas Bryce Kelly Gridding


tbrycekelly/TheSource documentation built on Nov. 7, 2023, 12:48 a.m.