Skip to content

Commit 845ba87

Browse files
committed
a
1 parent c910b79 commit 845ba87

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

examples/demos/EUR_relief.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<input type="range" min="-15" max="15" value="0" step="1" id="sReliefExageration" style="width: 200px" />
5353
<br>
5454
<label>Relief smoothing (slow)</label>
55-
<input type="range" min="0" max="50" value="0" step="1" id="sReliefSmoothing" style="width: 200px" />
55+
<input type="range" min="0" max="10" value="0" step="0.25" id="sReliefSmoothing" style="width: 200px" />
5656
<hr>
5757
<label for="cbHD"><input type="checkbox" id="cbHD">HD (very slow)</label>
5858
</div>
@@ -305,16 +305,16 @@
305305

306306

307307
// definition
308-
const mppc = (1 + sr/3) * (cbHD.checked? 0.7 : 1.4) * resolutionCoeff
308+
const mppc = (cbHD.checked? 0.7 : 1.4) * resolutionCoeff
309309
const mppcRelief = joyplot ? 8 * resolutionCoeff : mppc
310310
let reliefStyle = joyplot ? joyplotStyle : hypsoStyle
311311

312312
// apply smoothing
313313
if (sr > 0) {
314314
const fun = (style) => new gridviz_smoothing.KernelSmoothingStyle({
315315
value: (cell) => +cell.v,
316-
sigma: (r, z) => sr * 3 * z, // in screen pixel
317-
factor: mppcRelief,
316+
sigma: (r, z) => r + sr * z, // in geo unit - sr is in screen pixel
317+
factor: (cbHD.checked? 1 : 3),
318318
filterSmoothed: (value) => value > 0.05,
319319
styles: [style]
320320
})

0 commit comments

Comments
 (0)