# Commission Regulation (EU) 2017/1151 of 1 June 2017 supplementing Regulation (EC) No 715/2007 of the European Parliament and of the Council on type-approval of motor vehicles with respect to emissions from light passenger and commercial vehicles (Euro 5 and Euro 6) and on access to vehicle repair and maintenance information, amending Directive 2007/46/EC of the European Parliament and of the Council, Commission Regulation (EC) No 692/2008 and Commission Regulation (EU) No 1230/2012 and repealing Commission Regulation (EC) No 692/2008 (Text with EEA relevance), Appendix 7b

Extent: E+W+S+N.I.

Procedure to determine the cumulative positive elevation gain of a PEMS trip
1.
INTRODUCTION
This Appendix describes the procedure to determine the cumulative elevation gain of a PEMS trip.
2.
SYMBOLS, PARAMETERS AND UNITS
d(0)distance at the start of a trip [m]
dcumulative distance travelled at the discrete way point under consideration [m]
d0cumulative distance travelled until the measurement directly before the respective way point d [m]
d1cumulative distance travelled until the measurement directly after the respective way point d [m]
dareference way point at d(0) [m]
decumulative distance travelled until the last discrete way point [m]
diinstantaneous distance [m]
dtottotal test distance [m]
h(0)vehicle altitude after the screening and principle verification of data quality at the start of a trip [m above sea level]
h(t)vehicle altitude after the screening and principle verification of data quality at point t [m above sea level]
h(d)vehicle altitude at the way point d [m above sea level]
h(t-1)vehicle altitude after the screening and principle verification of data quality at point t-1 [m above sea level]
hcorr(0)corrected altitude directly before the respective way point d [m above sea level]
hcorr(1)corrected altitude directly after the respective way point d [m above sea level]
hcorr(t)corrected instantaneous vehicle altitude at data point t [m above sea level]
hcorr(t-1)corrected instantaneous vehicle altitude at data point t-1 [m above sea level]
hGPS,iinstantaneous vehicle altitude measured with GPS [m above sea level]
hGPS(t)vehicle altitude measured with GPS at data point t [m above sea level]
hint(d)interpolated altitude at the discrete way point under consideration d [m above sea level]
hint,sm,1(d)smoothed and interpolated altitude, after the first smoothing run at the discrete way point under consideration d [m above sea level]
hmap(t)vehicle altitude based on topographic map at data point t [m above sea level]
Hzhertz
km/hkilometer per hour
mmeter
roadgrade,1(d)smoothed road grade at the discrete way point under consideration d after the first smoothing run [m/m]
roadgrade,2(d)smoothed road grade at the discrete way point under consideration d after the second smoothing run [m/m]
sintrigonometric sine function
ttime passed since test start [s]
t0time passed at the measurement directly located before the respective way point d [s]
viinstantaneous vehicle speed [km/h]
v(t)vehicle speed at a data point t [km/h]
3.
GENERAL REQUIREMENTS
The cumulative positive elevation gain of a RDE trip shall be determined based on three parameters: the instantaneous vehicle altitude hGPS,i [m above sea level] as measured with the GPS, the instantaneous vehicle speed vi [km/h] recorded at a frequency of 1 Hz and the corresponding time t [s] that has passed since test start.
4.
CALCULATION OF CUMULATIVE POSITIVE ELEVATION GAIN
4.1.
General
The cumulative positive elevation gain of a RDE trip shall be calculated as a three-step procedure, consisting of (i) the screening and principle verification of data quality, (ii) the correction of instantaneous vehicle altitude data, and (iii) the calculation of the cumulative positive elevation gain.
4.2.
Screening and principle verification of data quality
The instantaneous vehicle speed data shall be checked for completeness. Correcting for missing data is permitted if gaps remain within the requirements specified in Point 7 of Appendix 4; else, the test results shall be voided. The instantaneous altitude data shall be checked for completeness. Data gaps shall be completed by data interpolation. The correctness of interpolated data shall be verified by a topographic map. It is recommended to correct interpolated data if the following condition applies:
hGPSt− hmapt>40mThe altitude correction shall be applied so that:
ht= hmaptwhere:
h(t)vehicle altitude after the screening and principle verification of data quality at data point t [m above sea level]
hGPS(t)vehicle altitude measured with GPS at data point t [m above sea level]
hmap(t)vehicle altitude based on topographic map at data point t [m above sea level]
4.3.
Correction of instantaneous vehicle altitude data
The altitude h(0) at the start of a trip at d(0) shall be obtained by GPS and verified for correctness with information from a topographic map. The deviation shall not be larger than 40 m. Any instantaneous altitude data h(t) shall be corrected if the following condition applies:
ht− ht− 1>vt∕ 3,6× sin45°The altitude correction shall be applied so that:
hcorrt= hcorrt− 1where:
h(t)vehicle altitude after the screening and principle verification of data quality at data point t [m above sea level]
h(t-1)vehicle altitude after the screening and principle verification of data quality at data point t-1 [m above sea level]
v(t)vehicle speed of data point t [km/h]
hcorr(t)corrected instantaneous vehicle altitude at data point t [m above sea level]
hcorr(t-1)corrected instantaneous vehicle altitude at data point t-1 [m above sea level]
Upon the completion of the correction procedure, a valid set of altitude data is established. This data set shall be used for the calculation of the cumulative positive elevation gain as described in Point 13.4.
4.4.
Final calculation of the cumulative positive elevation gain
4.4.1.
Establishment of a uniform spatial resolution
The total distance dtot [m] covered by a trip shall be determined as sum of the instantaneous distances di. The instantaneous distance di shall be determined as:
di=vi3,6Where:
diinstantaneous distance [m]
viinstantaneous vehicle speed [km/h]
The cumulative elevation gain shall be calculated from data of a constant spatial resolution of 1 m starting with the first measurement at the start of a trip d(0). The discrete data points at a resolution of 1 m are referred to as way points, characterized by a specific distance value d (e.g., 0, 1, 2, 3 m…) and their corresponding altitude h(d) [m above sea level].
The altitude of each discrete way point d shall be calculated through interpolation of the instantaneous altitude hcorr (t) as:
hintd=hcorr0+hcorr1− hcorr0d1− d0×d− d0Where:
hint(d)interpolated altitude at the discrete way point under consideration d [m above sea level]
hcorr(0)corrected altitude directly before the respective way point d [m above sea level]
hcorr(1)corrected altitude directly after the respective way point d [m above sea level]
dcumulative distance traveled until the discrete way point under consideration d [m]
d0cumulative distance travelled until the measurement located directly before the respective way point d [m]
d1cumulative distance travelled until the measurement located directly after the respective way point d [m]
4.4.2.
Additional data smoothing
The altitude data obtained for each discrete way point shall be smoothed by applying a two-step procedure; da and de denote the first and last data point respectively (Figure 1). The first smoothing run shall be applied as follows:
roadgrade,1d=hintd+ 200m− hintdad+ 200m for d≤ 200mroadgrade,1d=hintd+ 200m− hintd− 200md+ 200m−d− 200m for 200m< d<de− 200mroadgrade,1d=hintde− hintd− 200mde−d− 200m for d≥de− 200mhint,sm,1d=hint,sm,1d− 1m+ roadgrade,1d, d= da+ 1 to dehint,sm,1da=hintda+ roadgrade,1daWhere:
roadgrade,1(d)smoothed road grade at the discrete way point under consideration after the first smoothing run [m/m]
hint(d)interpolated altitude at the discrete way point under consideration d [m above sea level]
hint,sm,1(d)smoothed interpolated altitude, after the first smoothing run at the discrete way point under consideration d [m above sea level]
dcumulative distance travelled at the discrete way point under consideration [m]
dareference way point at a distance of zero meters [m]
decumulative distance travelled until the last discrete way point [m]
The second smoothing run shall be applied as follows:
roadgrade,2d=hint,sm,1d+ 200m− hint,sm,1dad+ 200m for d≤ 200mroadgrade,2d=hint,sm,1d+ 200m− hint,sm,1d− 200md+ 200m−d− 200m for 200m< d<de− 200mroadgrade,2d=hint,sm,1de− hint,sm,1d− 200mde−d− 200m for d≥de− 200mWhere:
roadgrade,2(d)smoothed road grade at the discrete way point under consideration after the second smoothing run [m/m]
hint,sm,1(d)smoothed interpolated altitude, after the first smoothing run at the discrete way point under consideration d [m above sea level]
dcumulative distance travelled at the discrete way point under consideration [m]
dareference way point at a distance of zero meters [m]
decumulative distance travelled until the last discrete way point [m]
Figure 1
Illustration of the procedure to smooth the interpolated altitude signals
4.4.3.
Calculation of the final result
The positive cumulative elevation gain of a total trip shall be calculated by integrating all positive interpolated and smoothed road grades, i.e. road grade,2(d). The result should be normalized by the total test distance dtot and expressed in metres of cumulative elevation gain per one hundred kilometres of distance.
The positive cumulative elevation gain of the urban part of a trip shall then be calculated based on the vehicle speed over each discrete way point:
vw = 1 / (tw,i – tw,i – 1) · 602 / 1 000
Where:
vw - waypoint vehicle speed [km/h]
All datasets with vw =< 60 km/h belong to the urban part of the trip.
Integrate all of the positive interpolated and smoothed road grades that correspond to urban datasets.
Integrate the number of 1m waypoints which correspond to urban datasets and divide by 1 000 to calculate urban test distance d urban [km].
The positive cumulative elevation gain of the urban part of trip shall then be calculated by dividing the urban elevation gain by the urban test distance, and expressed in metres of cumulative elevation gain per one hundred kilometres of distance.
5.
NUMERICAL EXAMPLE
Tables 1 and 2 show how to calculate the positive elevation gain on the basis of data recorded during an on-road test performed with PEMS. For the sake of brevity an extract of 800m and 160s is presented here.
5.1.
Screening and principle verification of data quality
The screening and principle verification of data quality consists of two steps. First, the completeness of vehicle speed data is checked. No data gaps related to vehicle speed are detected in the present data sample (see Table 1). Second, the altitude data are checked for completeness; in the data sample, altitude data related to seconds 2 and 3 are missing. The gaps are filled by interpolating the GPS signal. In addition, the GPS altitude is verified by a topographic map; this verification includes the altitude h(0) at the start of the trip. Altitude data related to seconds 112 -114 are corrected on the basis of the topographic map to satisfy the following condition:
hGPSt− hmapt<− 40mAs result of the applied data verification, the data in the fifth column h(t) are obtained.
5.2.
Correction of instantaneous vehicle altitude data
As a next step, the altitude data h(t) of seconds 1 to 4, 111 to 112 and 159 to 160 are corrected assuming the altitude values of seconds 0, 110 and 158 respectively since for the altitude data in these time periods the following condition applies:
ht− ht− 1>vt∕ 3,6× sin45°As result of the applied data correction, the data in the sixth column hcorr(t) are obtained. The effect of the applied verification and correction steps on the altitude data is depicted in Figure 2.
5.3.
Calculation of the cumulative positive elevation gain
5.3.1.
Establishment of a uniform spatial resolution
The instantaneous distance di is calculated by dividing the instantaneous vehicle speed measured in km/h by 3.6 (Column 7 in Table 1). Recalculating the altitude data to obtain a uniform spatial resolution of 1 m yields the discrete way points d (Column 1 in Table 2) and their corresponding altitude values hint(d) (Column 7 in Table 2). The altitude of each discrete way point d is calculated through interpolation of the measured instantaneous altitude hcorr as:
hint0=120,3+120,3− 120,30,1− 0,0×0− 0= 120,3000hint520=132,5+132,6− 132,5523,6− 519,9×520− 519,9= 132,50275.3.2.
Additional data smoothing
In Table 2, the first and last discrete way points are: da=0m and de=799m, respectively. The altitude data of each discrete way point is smoothed by applying a two steps procedure. The first smoothing run consists of:
roadgrade,10=hint200m− hint00+ 200m=120,9682− 120,3000200= 0,0033chosen to demonstrate the smoothing for d ≤ 200m
roadgrade,1320=hint520− hint120520−120=132,5027− 121,0400= 0,0288chosen to demonstrate the smoothing for 200m < d < (599m)
roadgrade,1720=hint799− hint520799−520=121,2000− 132,5027279=− 0,0405chosen to demonstrate the smoothing for d ≥ (599m)
The smoothed and interpolated altitude is calculated as:
hint,sm,10=hint0+ roadgrade,10= 120,3+ 0,0033≈ 120,3033mhint,sm,1799=hint,sm,1798+ roadgrade,1799= 121,2550− 0,0220= 121,2330mSecond smoothing run:
roadgrade,20=hint,sm,1200− hint,sm,10200=119,9618− 120,3033200=− 0,0017chosen to demonstrate the smoothing for d ≤ 200m
roadgrade,2320=hint,sm,1520− hint,sm,1120520−120=123,6809− 120,1843400= 0,0087chosen to demonstrate the smoothing for 200m < d < (599)
roadgrade,2720=hint,sm,1799− hint,sm,1520799−520=121,2330− 123,6809279=− 0,0088chosen to demonstrate the smoothing for d ≥ (599m)
5.3.3.
Calculation of the final result
The positive cumulative elevation gain of a trip is calculated by integrating all positive interpolated and smoothed road grades, i.e. values in the column roadgrade,2(d) in Table 2. For the entire data set the total covered distance was dtot= 139,7 km and all positive interpolated and smoothed road grades were of 516m. Therefore the positive cumulative elevation gain reached 516*100/139,7=370m/100km.
Table 1
Correction of instantaneous vehicle altitude data
— denotes data gaps
Timet [s]
v(t)[km/h]
hGPS(t)[m]
hmap(t)[m]
h(t)[m]
hcorr(t)[m]
di[m]
Cum. d[m]
0
0,00
122,7
129,0
122,7
122,7
0,0
0,0
1
0,00
122,8
129,0
122,8
122,7
0,0
0,0
2
0,00
—
129,1
123,6
122,7
0,0
0,0
3
0,00
—
129,2
124,3
122,7
0,0
0,0
4
0,00
125,1
129,0
125,1
122,7
0,0
0,0
…
…
…
…
…
…
…
…
18
0,00
120,2
129,4
120,2
120,2
0,0
0,0
19
0,32
120,2
129,4
120,2
120,2
0,1
0,1
…
…
…
…
…
…
…
…
37
24,31
120,9
132,7
120,9
120,9
6,8
117,9
38
28,18
121,2
133,0
121,2
121,2
7,8
125,7
…
…
…
…
…
…
…
…
46
13,52
121,4
131,9
121,4
121,4
3,8
193,4
47
38,48
120,7
131,5
120,7
120,7
10,7
204,1
…
…
…
…
…
…
…
…
56
42,67
119,8
125,2
119,8
119,8
11,9
308,4
57
41,70
119,7
124,8
119,7
119,7
11,6
320,0
…
…
…
…
…
…
…
…
110
10,95
125,2
132,2
125,2
125,2
3,0
509,0
111
11,75
100,8
132,3
100,8
125,2
3,3
512,2
112
13,52
0,0
132,4
132,4
125,2
3,8
516,0
113
14,01
0,0
132,5
132,5
132,5
3,9
519,9
114
13,36
24,30
132,6
132,6
132,6
3,7
523,6
…
…
…
…
…
…
…
149
39,93
123,6
129,6
123,6
123,6
11,1
719,2
150
39,61
123,4
129,5
123,4
123,4
11,0
730,2
…
…
…
…
…
…
…
157
14,81
121,3
126,1
121,3
121,3
4,1
792,1
158
14,19
121,2
126,2
121,2
121,2
3,9
796,1
159
10,00
128,5
126,1
128,5
121,2
2,8
798,8
160
4,10
130,6
126,0
130,6
121,2
1,2
800,0
Table 2
Calculation of road grade
d[m]
t0[s]
d0[m]
d1[m]
h0[m]
h1[m]
hint(d)[m]
roadgrade,1(d)[m/m]
hint,sm,1(d)[m]
roadgrade,2(d)[m/m]
0
18
0,0
0,1
120,3
120,4
120,3
0,0035
120,3
– 0,0015
…
…
…
…
…
…
…
…
…
…
120
37
117,9
125,7
120,9
121,2
121,0
– 0,0019
120,2
0,0035
…
…
…
…
…
…
…
…
…
…
200
46
193,4
204,1
121,4
120,7
121,0
– 0,0040
120,0
0,0051
…
…
…
…
…
…
…
…
…
…
320
56
308,4
320,0
119,8
119,7
119,7
0,0288
121,4
0,0088
…
…
…
…
…
…
…
…
…
…
520
113
519,9
523,6
132,5
132,6
132,5
0,0097
123,7
0,0037
…
…
…
…
…
…
…
…
…
…
720
149
719,2
730,2
123,6
123,4
123,6
– 0,0405
122,9
– 0,0086
…
…
…
…
…
…
…
…
…
…
798
158
796,1
798,8
121,2
121,2
121,2
– 0,0219
121,3
– 0,0151
799
159
798,8
800,0
121,2
121,2
121,2
– 0,0220
121,3
– 0,0152
Figure 2
The effect of data verification and correction - The altitude profile measured by GPS hGPS(t), the altitude profile provided by the topographic map hmap(t), the altitude profile obtained after the screening and principle verification of data quality h(t) and the correction hcorr(t) of data listed in Table 1
Figure 3
Comparison between the corrected altitude profile hcorr(t) and the smoothed and interpolated altitude hint,sm,1
Table 3
Calculation of the positive elevation gain
d[m]
t0[s]
d0[m]
d1[m]
h0[m]
h1[m]
hint(d)[m]
roadgrade,1(d)[m/m]
hint,sm,1(d)[m]
roadgrade,2(d)[m/m]
0
18
0,0
0,1
120,3
120,4
120,3
0,0035
120,3
– 0,0015
…
…
…
…
…
…
…
…
…
…
120
37
117,9
125,7
120,9
121,2
121,0
– 0,0019
120,2
0,0035
…
…
…
…
…
…
…
…
…
…
200
46
193,4
204,1
121,4
120,7
121,0
– 0,0040
120,0
0,0051
…
…
…
…
…
…
…
…
…
…
320
56
308,4
320,0
119,8
119,7
119,7
0,0288
121,4
0,0088
…
…
…
…
…
…
…
…
…
…
520
113
519,9
523,6
132,5
132,6
132,5
0,0097
123,7
0,0037
…
…
…
…
…
…
…
…
…
…
720
149
719,2
730,2
123,6
123,4
123,6
– 0,0405
122,9
– 0,0086
…
…
…
…
…
…
…
…
…
…
798
158
796,1
798,8
121,2
121,2
121,2
– 0,0219
121,3
– 0,0151
799
159
798,8
800,0
121,2
121,2
121,2
– 0,0220
121,3
– 0,0152

---
Source: https://www.legislation.gov.uk/eur/2017/1151/annex/IIIA/appendix/7b (the official version)
Page: https://openlegislation.uk/eu-regulation-2017-1151/annex-IIIA/appendix-7b
Contains public sector information licensed under the Open Government Licence v3.0. Source: legislation.gov.uk, The National Archives.

