path2edge | R Documentation |
path
from a graph
Retrieve the edges in a graph
corresponding to the flight transition defined by a path
. These
edges can be useful to extract flight information specific to a path.
path2edge(path, tag_graph)
path |
a GeoPressureR |
tag_graph |
either a |
Data.frame of the edge containing:
s
: index in 3D (lat-lon-stap) of the origin (source).
t
: index in 3D (lat-lon-stap) of the destination (target).
lat_s
: latitude of the origin (source).
lat_t
: latitude of the destination (target).
lon_s
: longitude of the origin (source).
lon_t
: longitude of the destination (target).
stap_s
: stationary period of the origin (source).
stap_t
: stationary period of the destination (target).
distance
: Distance (in km) of the flight.
start
: end of the flight.
end
: start of the flight.
duration
: duration of the flight.
n
: number of flight.
gs
: groundspeed vector expressed as a complex number. You can compute the groundspeed value
(km/h) with abs(gs)
, the W-E and S-N component of the flight with Re(gs)
and Im(gs)
, and
the angle/direction with Arg(gs)
. If graph provided.
ws
: if computed with graph_add_wind()
, same value as gs
. Airspeed is computed with
as = gs - ws
in complex number to keep the vectorial additive properties. If graph provided.
Other path:
ind2path()
,
path2elevation()
,
plot_path()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.