Various utilities¶
Alphabetical list:
- nevis.generate_kml(path, labels=None, trajectory=None, points=None)[source]¶
Generate a KML (Keyhole Markup Language, used to display geographic data in an Earth browser such as Google Earth) file from given data.
For a description of the KML format, see https://developers.google.com/kml/documentation/kml_tut
Arguments:
path
The path of the file to write to.
labels
An optional dictionary mapping string labels to points (tuples in meters or Coords objects) that will be marked on the map. The points will be shown as green pinpoints with text labels beside them.
trajectory
An optional array of shape
(n_points, 2)
indicating the trajectory to be plotted (points specified in meters). All the points along the trajectory will be shown as small orange pinpoints with labels of their index prefixed with “T” (e.g. “T3”). The trajectory itself will be shown as a red curve extended down to the ground connecting adjacent points.points
An optional array of shape
(n_points, 2)
indicating points on the map (points specified in meters). All the points will be shown as small blue pinpoints with labels of their index prefixed with “P” (e.g. “P3”).
lables
,trajectory
, andpoints
can be used simultaneously.
- nevis.print_result(x, y, z)[source]¶
Print information about an optimisation result.
Arguments:
x
The x-coordinate of the result.
y
The y-coordinate of the result.
z
The z-coordinate of the result.