Skip to content

Commit

Permalink
Update EnsoUvcdatToolsLib.py
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
lee1043 authored Jan 7, 2025
1 parent 7fd0c9a commit 29afc54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/EnsoUvcdatToolsLib.py
Original file line number Diff line number Diff line change
Expand Up @@ -3982,7 +3982,7 @@ def TwoVarRegrid(model, obs, info, region=None, model_orand_obs=0, newgrid=None,
for tt in list(range(len(tab))):
tab[tt] = MV2masked_where(obs[0].mask, tab[tt])
model = MV2masked_where(tab.mask, model)
if model[0].mask != ():
if model[0].mask.shape != ():
tab = MV2zeros(obs.shape)
for tt in list(range(len(tab))):
tab[tt] = MV2masked_where(model[0].mask, tab[tt])
Expand Down

0 comments on commit 29afc54

Please sign in to comment.