R/glidingSoaring3D.R
sim.glidingSoaring.3d.Rd
Creates a conditional empirical random walk in gliding mode, between a start and end point. The walk is performed on a MODE layer and, if provided, additionally on a background and digital elevation layer. The gliding is simulated with sim.cond.3d and soaring with sim.uncond.3d, therefore soaring is not restricted towards the target and can happen completly free as long as there are good thermal conditions. It is important to extract for every mode in the MODE raster layer a corresponding densities object with get.densities.3d and pass them to the function.
sim.glidingSoaring.3d(
MODE,
dGliding,
dSoaring,
qGliding,
start = c(0, 0, 0),
end = start,
a0,
g0,
error = TRUE,
smoothTransition = TRUE,
glideRatio = 15,
DEM = NULL,
BG = NULL,
verbose = FALSE
)
raster layer containing the number/index of the mode, which should be used at each location
density object returned by the get.densities.3d function for gliding mode
density object returned by the get.densities.3d function for soaring mode
the Q probabilites for the steps in gliding mode (qProb.3d)
numeric vector of length 3 with the coordinates of the start point
numeric vector of length 3 with the coordinates of the end point
initial incoming heading in radian
initial incoming gradient/polar angle in radian
logical: add random noise to the turn angle, lift angle and step length to account for errors measurements?
logical: should the transitions between soaring and the following gliding sections be smoothed? Recommended to avoid dead ends
ratio between vertical and horizontal movement, by default set to 15 meters forward movement per meter vertical movement
raster layer containing a digital elevation model, covering the area between start and end point
a background raster layer that can be used to inform the choice of steps
logical: print current mode used?
A 'soaring-gliding' trajectory in the form of data.frame
The MODE raster layer must be in the following structure: Gliding pixels have the value 1 and soaring pixel the values 2. NA
's are not allowed in the raster.
print("tbd.")
#> [1] "tbd."