Skip to content

Commit

Permalink
Fixed noloc crash bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JonKing93 committed Feb 14, 2020
1 parent 2f06ad3 commit e216195
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions 4. DA Analyses/@kalmanFilter/run.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
%
% Adev - Updated ensemble deviations (nState x nEns x nTime)
%
% Aperc - Percentiles of the updated ensemble (nState x nPercentile x nTime)
% (See output.settings for the percentiles calculated)
%
% Ye - Proxy estimates
% Joint Updates: (nObs x nEns)
% Serial Updates: (nObs x nEns x nTime)
Expand Down Expand Up @@ -69,7 +72,7 @@
F = obj.adjustH( F, reconstruct );

% Do the updates
output = obj.serialENSRF( M, obj.D, obj.R, F, w, obj.fullDevs );
output = obj.serialENSRF( M, obj.D, obj.R, F, w, obj.fullDevs, obj.percentiles );

% Unappend if necessary
output.Append = false;
Expand All @@ -84,15 +87,15 @@

% Default localization
if isempty(obj.localize)
w = ones( sum(obj.reconstruct), nObs);
w = ones( sum(reconstruct), nObs);
yloc = ones( nObs, nObs);
else
w = obj.localize{1};
yloc = obj.localize{2};
end

% Do the updates
output = obj.jointENSRF( M, obj.D, obj.R, obj.F, w, yloc, obj.meanOnly, obj.fullDevs, reconstruct );
output = obj.jointENSRF( M, obj.D, obj.R, obj.F, w, yloc, obj.meanOnly, obj.fullDevs, obj.percentiles, reconstruct );
end

end

0 comments on commit e216195

Please sign in to comment.