File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
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 } )
You can’t perform that action at this time.
0 commit comments