Commit d21ba765 authored by ivar's avatar ivar
Browse files

bug fix in serial function. KG values were only set zero for the last lag instead of both lags

parent 4835ceec
......@@ -119,9 +119,12 @@ class CO2Optimizer(Optimizer):
if 'surface' in self.sitecode[n]:
self.KG[-1]=0.
self.KG[3078]=0
logging.debug("Surface observations do not update BC")
if 'aircraft' in self.sitecode[n]:
self.KG[:-1]=0.
self.KG[0:3078]=0.
self.KG[3079:-1]=0.
logging.debug("Aircraft observations do not update Fluxes")
if self.may_localize[n]:
logging.debug('Trying to localize observation %s, %i' % (self.sitecode[n], self.obs_ids[n]))
......
Supports Markdown
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