A user has commented on commit 8cd27f0 with some requirements (and potentially a misunderstanding) for the statistics that are generated regarding elevation.

From the information provided it**looks** like they require a stat to record the total climb/descent across the course of the stat.

What isn't clear is exactly how they want this to be calculated, as in the screenshot (https://projectsstatic.bentasker.co.uk/GPXIN/GPXIN_38-Total_Climb/example_data.jpg) provided the numbers don't seem to add up the way I'd expect them to:

The user has also provided an example GPX file - https://projectsstatic.bentasker.co.uk/GPXIN/GPXIN_38-Total_Climb/posteggio-laghetto-del-pertus-passo-del-pertus-posteggio-lag.gpx and some quick calculations withawk also give me 123m

From the information provided it

What isn't clear is exactly how they want this to be calculated, as in the screenshot (https://projectsstatic.bentasker.co.uk/GPXIN/GPXIN_38-Total_Climb/example_data.jpg) provided the numbers don't seem to add up the way I'd expect them to:

I'm not sure what criteria has been used to calculate the value in the screenshot though? It shows the max elevation as 1298m and the min as 1175 - the difference between those is 123m, but the screenshot says 132m.

The user has also provided an example GPX file - https://projectsstatic.bentasker.co.uk/GPXIN/GPXIN_38-Total_Climb/posteggio-laghetto-del-pertus-passo-del-pertus-posteggio-lag.gpx and some quick calculations with

ben@milleniumfalcon:~$ cat ~/Downloads/posteggio-laghetto-del-pertus-passo-del-pertus-posteggio-lag.gpx | tr '<' '\n' | egrep "ele>0-9]+" +"| awk 'BEGIN{n=0;mx=0;mn=9999999;tot=0}{if ($1>mx){ mx=$1}; if ($1<mn){mn=$1}}END{print mx,mn,mx-mn}' 1298.096 1175.414 122.682

## Activity

Ben Tasker Permalink2019-05-20 17:20:16I wondered if perhaps 132 came from summing each climb (as that may be more than the range between min-max, if you think about having to climb a little, descend a little and then climb some more).

But, summing the climbs and descents doesn't get me 132m either

Ben Tasker Permalink2019-05-20 17:27:11It's labelled as "Elevation gain uphill" and "Elevation gain downhill"

The english version gives me the details in feet, but still has the delta compared to max and min height on the page.

It

looksas though the GPX file provided was downloaded from there (though I'd need to register to compare), so it's a little hard to sayBen Tasker Permalink2019-05-20 17:37:12