Skip to content
Snippets Groups Projects
Commit fb87545b authored by Peters, Wouter's avatar Peters, Wouter
Browse files

now routine ensemble instead of variance in StateToGrid

parent 68b1f882
Branches
No related tags found
No related merge requests found
......@@ -622,10 +622,12 @@ class StateVector(object):
# And now the covariance, first create covariance matrix (!), and then multiply
deviations = np.array([mem.ParameterValues*fluxvector-ensemblemean for mem in ensemble])
variance = deviations.std(axis=0)**2
gridvar = self.VectorToGrid(variance)
ensemble = []
for mem in deviations:
ensemble.append ( self.VectorToGrid(mem) )
return (gridmean,gridvar,)
return (gridmean,np.array(ensemble),)
def StateToTC(self, fluxvector = None, lag=1):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment