Extract tracks nearest to a given position

get_tracks_around_centre(
  local,
  centre,
  max_distance = 200,
  max_height = 200,
  max_tracks = 100,
  relevant = 1,
  rate = 2
)

Arguments

local

the connection to the local database

centre

a data frame with a single row and x and y coordinates of the centre. Coordinates in CRS 31370

max_distance

Use all equal time tracks where the minimum distance in meters between the track and the centre is smaller than max_distance.

max_height

Only use track points with an altitude lower than max_height. Defaults to 200 meter.

max_tracks

Return only the nearest max_tracks tracks.

relevant

The value of the relevant variable of the species table in the database. Select only tracks from species with a value equal or larger than this number.

rate

The time difference between points to calculate the step length and turning angles.