Skip to content
Snippets Groups Projects
Commit 96ef96c1 authored by leprob001's avatar leprob001
Browse files

Matrix B is now filtered to use only applied TOAs and SATFIX that are in range...

Matrix B is now filtered to use only applied TOAs and SATFIX that are in range of gapSize parameter.
parent ab9b0354
No related branches found
No related tags found
No related merge requests found
138
\ No newline at end of file
139
\ No newline at end of file
......@@ -61,7 +61,7 @@ for i = 1:length(fnames)
results.(fnames{i}).measuredToa = tmpMeasuredToas;
continue;
end
tmpIndexBelongingToSoso = tmpIndexBelongingToSoso & (pToaData.status ~= 2);
tmpIndexBelongingToSoso = tmpIndexBelongingToSoso & (pToaData.status == 1);
tmpToaDate = pToaData.toaDate(tmpIndexBelongingToSoso);
tmpToa = pToaData.toa(tmpIndexBelongingToSoso);
......@@ -80,11 +80,14 @@ for i = 1:length(fnames)
% find nearest neighbor
for oSatDates = 1:length(results.(fnames{i}).satDate)
tmpSatDate = results.(fnames{i}).satDate(oSatDates);
neighborDate = artoa.data.findNearestNeighbor( ...
tmpToaDate, ...
results.(fnames{i}).satDate(oSatDates) ...
tmpSatDate ...
);
tmpMeasuredToas(oSatDates) = tmpToa(tmpToaDate == neighborDate);
if abs(neighborDate - tmpSatDate) <= pTrackingParameter.gapSize
tmpMeasuredToas(oSatDates) = tmpToa(tmpToaDate == neighborDate);
end
end
results.(fnames{i}).measuredToa = tmpMeasuredToas;
clear tmpDistances;
......
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