Skip to content
Snippets Groups Projects
Verified Commit ec577729 authored by leprob001's avatar leprob001
Browse files

fix: Removed extrapolation due to wrong results

parent 714a2507
No related branches found
No related tags found
No related merge requests found
......@@ -48,16 +48,12 @@ for i = 1:length(fnames)
% therefore to get the unshifted values, we need to subtract the empirical shift
unshiftedToas = artoaWorkspace.toaData.toa(selection) - artoaWorkspace.toaData.empiricalShift(selection);
toaDates = ceil(artoaWorkspace.toaData.toaDate(selection));
minToaDate = min(toaDates);
maxToaDate = max(toaDates);
if length(toaDates) > 1
% interpolate
newToaDates = floor(launchDate):1:ceil(recoveryDate);
toas = interp1(toaDates, toas, newToaDates, 'linear', 'extrap')';
unshiftedToas = interp1(toaDates, unshiftedToas, newToaDates, 'linear', 'extrap')';
toas = interp1(toaDates, toas, newToaDates)';
unshiftedToas = interp1(toaDates, unshiftedToas, newToaDates)';
toaDates = newToaDates';
toaDates = toaDates(minToaDate <= toaDates(:));
toaDates = toaDates(toaDates(:) <= maxToaDate);
end
dates = intersect(toaDates, satfixEtas.(fnames{i}).satDate);
indicesToa = ismember(toaDates, dates);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment