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

now scaling covariance matrix

parent 0ecb3b8f
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,8 @@ class CtGriddedStateVector(StateVector):
cov = 0.16 *np.dot(cov_ocn,cov_ocn)
else:
cov = f.GetVariable('covariance')
cov_sf = 1./np.sqrt(cov.diagonal().sum()) # this scaling factor makes the total variance close to the value of a single ecoregion
cov = cov*cov_sf
dummy = f.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment