flightpathr

Tools to analyze aircraft and flight path data.
git clone https://git.eamoncaddigan.net/flightpathr.git
Log | Files | Refs | README | LICENSE

commit 960d4fc75ae0db5f61adb711508424d0837be927
parent 5bec21e8c874aab58f1737424f6888861ae77279
Author: eamoncaddigan <eamon.caddigan@gmail.com>
Date:   Thu, 12 May 2016 15:40:49 -0400

Still need to test maneuver identification.

Diffstat:
MNAMESPACE | 2++
Aman/identifyAltitudeChanges.Rd | 26++++++++++++++++++++++++++
Aman/identifyHeadingChanges.Rd | 26++++++++++++++++++++++++++
Atests/testthat/test_identifyManeuvers.R | 3+++
4 files changed, 57 insertions(+), 0 deletions(-)

diff --git a/NAMESPACE b/NAMESPACE @@ -2,5 +2,7 @@ export(coordsToBearing) export(distanceFromPath) +export(identifyAltitudeChanges) +export(identifyHeadingChanges) export(maxDistanceFromPath) export(parseCoordinates) diff --git a/man/identifyAltitudeChanges.Rd b/man/identifyAltitudeChanges.Rd @@ -0,0 +1,26 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/identifyManeuvers.R +\name{identifyAltitudeChanges} +\alias{identifyAltitudeChanges} +\title{Identify the timepoints in a trajectory that correspond to a change in +altitude.} +\usage{ +identifyAltitudeChanges(trajectory, hiThresh) +} +\arguments{ +\item{trajectory}{A matrix or SpatialPoints object indicating the trajectory +of an aircraft.} + +\item{hiThresh}{An altitude change (in feet); any time point associated with +a change in altitude greater than this value will definitely be labeled a +climb or descent.} +} +\value{ +A logical vector indicating whether each timepoint can be considered + a climb or descent. +} +\description{ +Identify the timepoints in a trajectory that correspond to a change in +altitude. +} + diff --git a/man/identifyHeadingChanges.Rd b/man/identifyHeadingChanges.Rd @@ -0,0 +1,26 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/identifyManeuvers.R +\name{identifyHeadingChanges} +\alias{identifyHeadingChanges} +\title{Identify the timepoints in a trajectory that correspond to a change in +commanded heading.} +\usage{ +identifyHeadingChanges(trajectory, hiThresh) +} +\arguments{ +\item{trajectory}{A matrix or SpatialPoints object indicating the trajectory +of an aircraft.} + +\item{hiThresh}{A heading change (in degrees); any time point associated with +a change in heading greater than this value will definitely be labeled a +turn.} +} +\value{ +A logical vector indicating whether each timepoint can be considered + a turn. +} +\description{ +Identify the timepoints in a trajectory that correspond to a change in +commanded heading. +} + diff --git a/tests/testthat/test_identifyManeuvers.R b/tests/testthat/test_identifyManeuvers.R @@ -0,0 +1,3 @@ +library(flightpathr) +context("identifyManeuvers") +