Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment