summarise_routes {himach}R Documentation

Summarise a set of routes

Description

Reduce a set of routes to a one-line per route summary

Usage

summarise_routes(routes, ap_loc, arrdep_h = 0.5)

Arguments

routes

Each segment in each route, as produced by find_route or find_leg

ap_loc

List of airport locations, output of make_airports

arrdep_h

Total time for the M084 comparator aircraft to arrive & depart in hours. Default 0.5.

Details

This function takes the output of find_route and summarises to one line per (full) route.

With refuelling, there can be multiple 'full routes' for each 'route'. The best column indicates the best route for each routeID.

The results are rounded to a reasonable number of significant figures. After all this is just an approximate model. The arrdep_h has been checked against actual and is reasonable (observed range roughly 0.3-0.5).

Value

Dataframe with summary of the route, sorted in ascending order of advantage_h so that the best route are plotted on top. The fields are:

Examples

# here we use a built-in set of routes
# see vignette for more details of how to obtain it
airports <- make_airports(crs = crs_Pacific)
NZ_routes <- hm_get_test("route")
sumy <- summarise_routes(NZ_routes, airports)


[Package himach version 0.3.2 Index]