createTrajectory: Create a flighttrajectory object from the flight info.

Description Usage Arguments Details Value

Description

Create a flighttrajectory object from the flight info.

Usage

1
2
createTrajectory(longitude, latitude, altitude = 0, timestamp = NULL,
  bearing = NULL, groundspeed = NULL)

Arguments

longitude

Required; numeric vector giving aircraft longitude in degrees.

latitude

Required; numeric vector giving aircraft latitude in degrees.

altitude

Optional; numeric vector giving aircraft altitude (AGL) in feet. If missing, it will be set to 0.

timestamp

Optional; numeric vector giving the time of each observation in seconds. If missing, the observation period is assumed to be 1 s.

bearing

Optional; numeric vector giving the current bearing in degrees. If missing, it is estimated using pairs of successive lon/lat observations.

groundspeed

Optional; numeric vector giving the current ground speed of the aircraft in knots. If missing, it is estimated using pairs of successive lon/lat observations.

Details

longitude and latitude must be the same length. timestamp, bearing, and groundspeed, if present, must also match this length. altitude must also have a length equal to these parameters or be scalar.

Value

A flighttrajectory object encapsulating these parameters (with default values substituded as necessary).


eamoncaddigan/flightpathr documentation built on May 15, 2019, 7:26 p.m.