createTrajectory.Rd (1552B)
1 % Generated by roxygen2: do not edit by hand 2 % Please edit documentation in R/createTrajectory.R 3 \name{createTrajectory} 4 \alias{createTrajectory} 5 \title{Create a flighttrajectory object from the flight info.} 6 \usage{ 7 createTrajectory(longitude, latitude, altitude = 0, timestamp = NULL, 8 bearing = NULL, groundspeed = NULL) 9 } 10 \arguments{ 11 \item{longitude}{Required; numeric vector giving aircraft longitude in 12 degrees.} 13 14 \item{latitude}{Required; numeric vector giving aircraft latitude in degrees.} 15 16 \item{altitude}{Optional; numeric vector giving aircraft altitude (AGL) in 17 feet. If missing, it will be set to 0.} 18 19 \item{timestamp}{Optional; numeric vector giving the time of each observation 20 in seconds. If missing, the observation period is assumed to be 1 s.} 21 22 \item{bearing}{Optional; numeric vector giving the current bearing in 23 degrees. If missing, it is estimated using pairs of successive lon/lat 24 observations.} 25 26 \item{groundspeed}{Optional; numeric vector giving the current ground speed 27 of the aircraft in knots. If missing, it is estimated using pairs of 28 successive lon/lat observations.} 29 } 30 \value{ 31 A flighttrajectory object encapsulating these parameters (with 32 default values substituded as necessary). 33 } 34 \description{ 35 Create a flighttrajectory object from the flight info. 36 } 37 \details{ 38 \code{longitude} and \code{latitude} must be the same length. 39 \code{timestamp}, \code{bearing}, and \code{groundspeed}, if present, must 40 also match this length. \code{altitude} must also have a length equal to 41 these parameters or be scalar. 42 } 43