contrailopt.Track¶
- class contrailopt.Track(*, lon: NDArray[floating], lat: NDArray[floating], node_time: NDArray[datetime64])[source]¶
An ordered sequence of timed waypoints along a flown path.
The flight-profile optimizer (
contrailopt.optimize.solve_track()) follows a fixed lateral path, so it needs only the ordered nodes, their times, and along-track distances.This interface supplies
lon,lat,node_time,cum_dist,segment_dist,n_nodes,h_origin,h_destcomputed straight from the coordinates, so it can often be used in place ofHorizontalDAG.- __init__(*, lon: NDArray[floating], lat: NDArray[floating], node_time: NDArray[datetime64]) None¶
Methods
Attributes
lonlatnode_timeWhether the origin-to-destination span wraps the antimeridian.
Cumulative along-track distance at each waypoint
(n,), starting at zero.Index of the destination node (always the last waypoint).
Index of the origin node (always the first waypoint).
The number of waypoints.
Great-circle distance between consecutive waypoints
(n - 1,).- property segment_dist: NDArray[floating]¶
Great-circle distance between consecutive waypoints
(n - 1,).