state_vector: Get state vectors for a time period

Description Usage Arguments Value Examples

View source: R/state-vector.R

Description

Get state vectors for a time period

Usage

1
state_vector(session, icao24, wef, til = NULL, bbox = NULL)

Arguments

session

SSH session to OSN Impala

icao24

(Optional) Single or vector of ICAO24 ICAO 24-bit addresses

wef

Start of period of interest (date or datetime)

til

(Optional) End of period of interest, if NULL wef_time + 1 day

bbox

(Optional) axis aligned bounding box like 'c(xmin, xmax, ymin, ymax)'

Value

data frame of state vector data containing the following variables (see also OSN docs about State Vector):

Name Description Type
icao24 ICAO 24-bit address chr
callsign flight's callsign chr
estdepartureairport Estimated departure airport chr
estarrivalairport Estimated arrival airport chr
start Start of portion of trajectory: `min(firstseen, lastseen - duration)` int
firstseen first seen by OpenSky Network (UNIX timestamp) int
lastseen last seen by OpenSky Network (UNIX timestamp) int
item.time position report's time (UNIX timestamp) int
item.longitude position report's longitude (WSG84 decimal degrees) dbl
item.latitude position report's latitude (WSG84 decimal degrees) dbl
item.velocity ground speed of the aircraft (m/s) dbl
item.heading true track in decimal degrees clockwise from north (north=0°) dbl
item.vertrate vertical speed of the aircraft (m/s) dbl
item.onground TRUE if the position was retrieved from a surface position report lgl
item.baroaltitude position report's barometric altitude (m) dbl
item.geoaltitude position report's GNSS (GPS) altitude (m) dbl
item.hour position report's hour (UNIX timestamp) int

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
session <- osn_connect("cucu", verbose = 2)
state_vector(
   session,
   icao24 = c("3c6589", "3c6757"),
   wef = "2019-04-22 00:00:00",
   til = "2019-04-22 10:00:00",
   bbox = c(xmin = 7.536746, xmax = 9.604390, ymin = 49.36732, ymax = 50.69920)
)

## End(Not run)

espinielli/osn documentation built on Aug. 12, 2021, 5:17 a.m.