Better distance computation (revisited)

This commit is contained in:
Arndt Brenschede 2018-12-07 00:45:12 +01:00
parent e7afb236a6
commit ab2f5e3ae0
12 changed files with 101 additions and 543 deletions

View file

@ -1,6 +1,5 @@
package btools.mapcreator;
import btools.util.CheapRulerSingleton;
import btools.util.ReducedMedianFilter;
/**
@ -229,8 +228,7 @@ public class SrtmRaster
private static Weights[][] calcWeights( int latIndex )
{
CheapRulerSingleton cr = CheapRulerSingleton.getInstance();
double coslat = cr.cosLat(latIndex * 5.);
double coslat = Math.cos( latIndex * 5. / 57.3 );
// radius in pixel units
double ry = filterDiscRadius;