departures: Get departures from airport

Description Usage Arguments Value Examples

View source: R/movements-at-airport.R

Description

NOTE: flight data is simplified in OSN, e.g. altitudes are discretized to multiples of 1000 feet.

Usage

1
departures(session, apt, wef, til = NULL, duration = 20)

Arguments

session

SSH session to OSN Impala

apt

ICAO ID of departure airport, i.e. "EDDF" for Frankfurt

wef

(UTC) timestamp of _**W**ith **E**ffect **F**rom_, WEF, (included). Results such that 'firstseen' >= 'wef'

til

(UTC) timestamp of with effect unTIL, TIL, (excluded), if NULL it is interpreted as WEF + 1 day. Results such that 'firstseen' < 'til'.

duration

amount of minutes from 'firstseen', default = 20.

Value

data frame of flight and track data containing the following variables (see also OSN docs about Arrivals by Airport):

Name Description Type
icao24 ICAO 24-bit address chr
callsign flight's callsign chr
day flight's day int
firstseen first seen by OpenSky Network (UNIX timestamp) int
lastseen last seen by OpenSky Network (UNIX timestamp) int
estdepartureairport Estimated departure airport chr
estarrivalairport Estimated arrival airport chr
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.altitude position report's barometric altitude (meters) dbl
item.heading true track in decimal degrees clockwise from north (north=0°) dbl
item.onground TRUE if the position was retrieved from a surface position report lgl

Examples

1
2
3
4
5
## Not run: 
session <- osn_connect("cucu", verbose = 2)
depurtures(session, "EDDF", "2019-04-22 00:00:00", til=NULL)

## End(Not run)

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