Package sabx10 :: Package utils :: Module sabx_ele_analyze
[hide private]
[frames] | no frames]

Module sabx_ele_analyze

source code

Analyze the elevations for an SABX 1.0 file.

Functions [hide private]
(float,float)
get_ride_ele_bounds(ride)
Get the bounds of the elevation range for the ride.
source code
 
analyze_ride(ride, lowest, highest)
Analyze the elevations for the ride.
source code
 
analyze_all_rides(rides)
Analyze all the rides in the ride list.
source code
Variables [hide private]
  __package__ = 'sabx10.utils'
Function Details [hide private]

get_ride_ele_bounds(ride)

source code 

Get the bounds of the elevation range for the ride.

Parameters:
  • ride (SABX 1.0 Ride) - ride to analyze
Returns: (float,float)
lowest elevation, highest elevation

analyze_ride(ride, lowest, highest)

source code 

Analyze the elevations for the ride. Specifically, check the differences in the elevations between the end of each segment and the start of the next segment in the ride. Check this for the ele and the usgs values. When the ele and usgs changes fall outside the acceptable range, graph them. The acceptable range is defined as a percentage of the difference between the lowest and highest elevations.

Parameters:
  • ride (SABX 1.0 Ride) - ride to check
  • lowest (float) - lowest elevation for the ride
  • highest (float) - highest elevation for the ride