WeatherRoutingTool package

Subpackages

Submodules

WeatherRoutingTool.config module

WeatherRoutingTool.execute_routing module

WeatherRoutingTool.routeparams module

class WeatherRoutingTool.routeparams.RouteParams(count, start, finish, gcr, route_type, time, lats_per_step, lons_per_step, course_per_step, dists_per_step, starttime_per_step, ship_params_per_step)[source]

Bases: object

This is a Container class for route parameters. Parameters are assumed to be constant for every route segment (= distance from one coordinate pair to the following). The parameters for each routing step are tied to the start point of each route segment. Since the number of routing steps is by one smaller than the number of coordinate pairs, the arrays of this container class exhibit different lengths:

  • Type 1: count + 1: dists_per_step, ship_params_per_step, courses_per_step

  • Type 2: count + 2: lats_per_step, lons_per_step, starttime_per_step

When the RouteParams object is written to json file, the full arrays of type 2 are written. The corresponding values from the arrays of type 1 are set to -99 for the last coordinate pair.

convert_to_dict()[source]
count: int
course_per_step: tuple
dists_per_step: tuple
finish: tuple
static from_csv_file(filename)[source]
classmethod from_file(filename)[source]
static from_gzip_file(filename)[source]
gcr: tuple
get_dist_from_coords(lats, lons)[source]
get_fuel_per_dist()[source]
get_full_dist()[source]
get_full_fuel()[source]
get_full_travel_time()[source]
get_mean_power()[source]
static get_per_waypoint_coords(route_lons: ndarray, route_lats: ndarray, start_time: datetime, bs: Quantity)[source]
get_power_type(power_type, norm=1.0)[source]
lats_per_step: tuple
lons_per_step: tuple
plot_acc_power_vs_dist(color, label, power_type)[source]
plot_power_vs_coord(ax, color, label, coordstring, power_type)[source]
plot_power_vs_dist(color, label, power_type, ax, norm=1.0)[source]
plot_power_vs_dist_ratios(denominator, color, label, power_type)[source]
plot_power_vs_dist_resistances(color, label, power_type, ax1, ax2, ax3, ax4)[source]
plot_power_vs_dist_with_weather(data_array, label_array, n_datasets)[source]
plot_route(ax, colour, label, linestyle=False)[source]
plot_speed_vs_dist(color, label, ax)[source]
print_route()[source]
route_type: str
set_ship_params(ship_params)[source]
ship_params_per_step: ShipParams
start: tuple
starttime_per_step: tuple
time: timedelta
write_to_file(filename)[source]
write_to_geojson(filename)[source]

WeatherRoutingTool.test_maripower_settings_for_different_courses module

WeatherRoutingTool.test_maripower_settings_for_specific_route module

WeatherRoutingTool.weather module

WeatherRoutingTool.weather_factory module

Module contents