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

changed scaling of covariances. The ocean one seems to have been quite wrong

parent b1889f81
No related branches found
No related tags found
No related merge requests found
......@@ -77,10 +77,10 @@ class CtGriddedStateVector(StateVector):
if 'pco2' in file:
cov_ocn = f.GetVariable('CORMAT')
cov = 0.16 *np.dot(cov_ocn,cov_ocn)
cov = 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_sf = 0.5/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.
Please register or to comment