getBbox: Get a standard bounding box to impose spatial constraints

Description Usage Arguments Value Examples

View source: R/getBbox.R

Description

Standard is a rectangle based on coordinates of outer hydros +- the buffer in meters

Usage

1
getBbox(hydros, buffer = 100, eps = 0.001, pen = 1e+06)

Arguments

hydros

Dataframe from simHydros() or Dataframe with columns hx and hy containing positions of the receivers. Translate the coordinates to get the grid centre close to (0;0).

buffer

Number of meters the spatial domain extends beyound the outer hydros.

eps

Specifies how well-defined the borders are (eps=1E-2 is very sharp, eps=100 is very soft).

pen

Specifies the penalty multiplier.

Value

Vector of lenght 6: c(x_min, x_max, y_min, y_max, eps, pen). Limits are given in UTM coordinates.

Examples

1
2
3
4
hydros <- ssu1$hydros
colnames(hydros) <- c('serial','hx','hy','hz','sync_tag','idx')
bbox <- getBbox(hydros)
plotBbox(hydros, bbox)

yaps documentation built on April 14, 2021, 1:06 a.m.