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

removed faulty scaling of ocean cov, now also reading new CTDAS covs

parent f520efef
Branches
No related tags found
No related merge requests found
...@@ -67,7 +67,10 @@ class CtStateVector(StateVector): ...@@ -67,7 +67,10 @@ class CtStateVector(StateVector):
f_bio = io.CT_Read(file_bio_cov,'read') f_bio = io.CT_Read(file_bio_cov,'read')
cov_ocn = f_ocn.GetVariable('CORMAT') cov_ocn = f_ocn.GetVariable('CORMAT')
cov_bio = f_bio.GetVariable('qprior') if f_bio.variables.has_key('covariance'):
cov_bio = f_bio.GetVariable('covariance') # newly created CTDAS covariance files
else:
cov_bio = f_bio.GetVariable('qprior') # old CarbonTracker covariance files
dummy = f_ocn.close() dummy = f_ocn.close()
dummy = f_bio.close() dummy = f_bio.close()
...@@ -82,7 +85,7 @@ class CtStateVector(StateVector): ...@@ -82,7 +85,7 @@ class CtStateVector(StateVector):
nbio = cov_bio.shape[0] nbio = cov_bio.shape[0]
fullcov[0:nbio,0:nbio] = cov_bio fullcov[0:nbio,0:nbio] = cov_bio
fullcov[nbio:nbio+nocn,nbio:nbio+nocn] = 0.16 *np.dot(cov_ocn,cov_ocn) fullcov[nbio:nbio+nocn,nbio:nbio+nocn] = cov_ocn
fullcov[nocn+nbio,nocn+nbio] = 1.e-10 fullcov[nocn+nbio,nocn+nbio] = 1.e-10
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment