planRoute: Create a flight plan route between two airports.

Description Usage Arguments Value Examples

Description

This function determines the shortest route between two points (navfixes/navaids)

Usage

1
2
planRoute(aptFrom, aptTo, fixFrom = NA, fixTo = NA, fixes = character(),
  limitArc = TRUE, narrowArc = FALSE)

Arguments

aptFrom

Departure airport (4-letter ICAO code).

aptTo

Destination airport (4-letter ICAO code).

fixFrom

Initial departure navfix (after SID procedure). If not supplied manually, the navfix nearest to the departure airport will be chosen automatically, using getAptFix.

fixTo

Final destination navfix (before STAR procedure). If not supplied manually, the navfix nearest to the destination airport will be chosen automatically, using getAptFix

fixes

Optional vector of intermediate navfixes. Use these to speed up the algorithm, or to manually adjust the desired route. If NAs are inserted between two navfixes, then the route is flown straight between them, without following ICAO runways.

limitArc

If TRUE, only search points at an angle of ±90 degrees towards the destination point in order to speed up the algorithm.

narrowArc

If TRUE (and also limitArc==TRUE), search at a narrower angle of ±45 degrees towards the destination point.

Value

Returns a flight plan stored on a data.frame with the following columns:

fix

The name each point (airport/navaid/navfix) in the flight plan.

fixLat

Latitude of the point.

fixLon

Longitude of the point.

fullName

Full name

freq

Radio frequency (for navaids only).

range

Reception range (for navaids only).

elevation

Elevation (for navaids or airports).

dev

Deviation (for VOR stations).

magdecl

Magnetic declination at the point.

dist

Distance (in km, up to the next point in the plan).

course

Course (true) towards the next point.

magcourse

Course (magnetic) towards the next point.

awy

Airway identifier for the following segment (up to the next point in the plan), or SID/STAR.

baseFL

Base flight level for the following segment (up to the next point in the plan).

topFL

Top flight level for the following segment (up to the next point in the plan).

altawy

Alternative airway for the following segment, along with its permitted flight level range.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# Fly from Athens to Thessaloniki
plan1 <- planRoute("LGAV", "LGTS")
print(plan1)

# Manually choose appropriate departure and approach fixes
# (by referring to the relevant approach plates)
plan2 <- planRoute("LGAV", "LGTS", fixFrom="ABLON", fixTo="LEKPO")
print(plan2)

# Fly from Athens to Innsbrück
plan3 <- planRoute("LGAV", "LOWI", "KOR", "BRENO")

# Follow a different route, via Thessaloniki and Belgrade
plan4 <- planRoute("LGAV", "LOWI", "ABLON", "RTT", fixes=c("TSL","ORVAN"))

# Divert a bit from the ICAO airway (OMIRO -> SKP -> BAMOS -> AGISA)
# and fly over PELAS instead, i.e. over Alonissos instead of Skopelos island.
plan5 <- planRoute("LGAV", "LOWI", "ABLON", "RTT",
                   fixes=c("OMIRO", NA, "PELAS", NA, "AGISA", "TSL","ORVAN"))

thlytras/rfgfs documentation built on May 31, 2019, 10:44 a.m.