opensoar.thermals package

Submodules

opensoar.thermals.flight_phases module

class opensoar.thermals.flight_phases.FlightPhases(classification_method: str, trace: list, trip=None)

Bases: object

Container to combine the different flight phases (thermal and cruise) with helper methods for easy access.

all_phases(leg: Union[int, str] = None) → List[opensoar.thermals.flight_phases.Phase]

Obtain all phases (cruise and thermal).

Parameters:leg – obtain only phases within specified leg (using int for leg), or obtain only phases within trip (using leg=’all’)
Returns:
cruises(leg: Union[int, str] = None) → List[opensoar.thermals.flight_phases.Phase]

Obtain only cruise phases.

:param leg:can be 0, 1, … or ‘all’. Obtain only cruises within specified leg or all legs. :return:

thermals(leg: Union[int, str] = None) → List[opensoar.thermals.flight_phases.Phase]

Obtain only thermal phases.

Parameters:leg – can be 0, 1, 2 or ‘all’. Obtain only thermals within specified leg or all legs.
Returns:
class opensoar.thermals.flight_phases.Phase(is_cruise, fixes)

Bases: tuple

fixes

Alias for field number 1

is_cruise

Alias for field number 0

opensoar.thermals.pysoar_thermal_detector module

class opensoar.thermals.pysoar_thermal_detector.PySoarThermalDetector

Bases: object

Detector taken from the PySoar project.

CRUISE_THRESHOLD_BEARINGRATE = 4
CRUISE_THRESHOLD_BEARINGTOT = 225
MINIMUM_BEARING_CHANGE_RATE = 0.01
THERMAL_THRESHOLD_BEARINGRATE = 4
THERMAL_THRESHOLD_BEARINGRATE_AVG = 2
THERMAL_THRESHOLD_DISTANCE = 1000
analyse(trace)

Module contents

This package contains the algorithms for thermal detection and a container class to combine the thermal- and cruise phases with helper methods for easy access.