Skip to content

Commit

Permalink
Make residual cutter more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
clicat committed Jul 23, 2020
1 parent e1906a9 commit 051847e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion goGPS/obj/Residuals.m
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,17 @@ function remEntry(this, lid_ko)
this.obs_code(lid_ko, :) = [];
end

function cutEpochs(this, new_lim)
function cutEpochs(this, new_lim, end_lim)
% Get the residual only in the time span given
%
% SYNTAX
% this.cutEpochs(new_limits)
% this.cutEpochs(lim_start, lim_stop)

if nargin == 3
new_lim = new_lim.getCopy;
new_lim.append(end_lim);
end
time_res = this.time.getNominalTime();
sss_start = find(time_res.getMatlabTime >= round(new_lim.first.getMatlabTime * 86400 * time_res.getRate) / (86400 * time_res.getRate), 1, 'first');
sss_stop = find(time_res.getMatlabTime > round(new_lim.last.getMatlabTime * 86400 * time_res.getRate) / (86400 * time_res.getRate), 1, 'first');
Expand Down

0 comments on commit 051847e

Please sign in to comment.