Commit d58c6fce authored by Marius Isken's avatar Marius Isken
Browse files

fixes

parent fcf280d1
......@@ -71,6 +71,7 @@ class GNSSCampaignMisfitTarget(gf.GNSSCampaignTarget, MisfitTarget):
MisfitTarget.__init__(self)
self._obs_data = None
self._sigma = None
self._weights = None
@property
def id(self):
......@@ -110,20 +111,18 @@ class GNSSCampaignMisfitTarget(gf.GNSSCampaignTarget, MisfitTarget):
return self._weights
def post_process(self, engine, source, statics):
quadtree = scene.quadtree
obs = self.obs_data
weights = self.weights
syn = num.array([statics['displacement.n'],
statics['displacement.e'],
statics['displacement.d']])
res = stat_obs - stat_syn
res = obs - syn
misfit_value = num.sqrt(
num.sum((res * weights)**2))
misfit_norm = num.sqrt(
num.sum((stat_obs * weights)**2))
num.sum((obs * weights)**2))
result = GNSSCampaignMisfitResult(
misfit_value=misfit_value,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment