Skip to content

Commit

Permalink
Fix multivariate reconstruction
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhu2e committed Nov 11, 2024
1 parent 6f2b5dc commit 2cc8d57
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 98 deletions.
3 changes: 1 addition & 2 deletions cfr/da/enkf.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ def gen_Xb(self):
# vn_1st = list(self.prior.keys())[0]
Xb_var_irow = {} # index of rows in Xb to store the specific var
loc = 0
i = 0
for vn in self.recon_vars:
for i, vn in enumerate(self.recon_vars):
_, nlat, nlon = np.shape(self.prior[vn].da.values)
lats, lons = self.prior[vn].da.lat.values, self.prior[vn].da.lon.values
lon2d, lat2d = np.meshgrid(lons, lats)
Expand Down
180 changes: 84 additions & 96 deletions docsrc/notebooks/psm-linear.ipynb

Large diffs are not rendered by default.

0 comments on commit 2cc8d57

Please sign in to comment.