getVectorSetFeatures: Get positional features of an openSkiesStateVectorSet object

Description Usage Arguments Value Examples

View source: R/openSkies_clusteringFunctions.R

Description

Retrieves positional features of an openSkiesStateVectorSet object. Features will be uniformly interpolated from the observed values.

Usage

1
getVectorSetFeatures(stateVectorSet, resamplingSize=15, method="fmm", fields=NULL)

Arguments

stateVectorSet

object of class openSkiesStateVectorSet for which positional features should be extracted.

resamplingSize

number of uniformly separated interpolation points at which the values of the position features should be calculated.

method

method to be used for interpolation. "linear" will result in linear interpolation, while "fmm", "periodic", or "natural" will result in different types of spline interpolation.

fields

character vector indicating the names of the fields of the openSkiesStateVector objects that should be included in the extracted positional features. In the default behavior, fields=NULL and only latitude and longitude values will be used.

Value

A vector with positional features of the provided openSkiesStateVectorSet object. The vector alternates values of longitude and latitude at each interpolated point, unless a character vector with valid names of fields of openSkiesStateVector objects is provided through fields, in which case values of the specified fields are alternated, in the specified order.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Extract positional features for a time series of state vectors for the 
# aircraft with ICAO 24-bit address 403003 for the 8th of October, 2020 between 
# 16:50 and 16:53 (London time), with a time resolution of 1 minute.

if(interactive()){
vectors <- getAircraftStateVectorsSeries(aircraft="4ca7b3", 
startTime="2020-11-04 10:30:00", endTime="2020-11-04 12:00:00", 
timeZone="Europe/London", timeResolution=300)

features <- getVectorSetFeatures(vectors)
}

openSkies documentation built on Dec. 19, 2021, 5:10 p.m.