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

fix: For SatfixToEta plot, applied soundspeed of the float is now used, fixes #67

parent c92f8a4a
No related branches found
No related tags found
No related merge requests found
343 344
\ No newline at end of file \ No newline at end of file
...@@ -4,16 +4,25 @@ function [results] = calculateDifference() ...@@ -4,16 +4,25 @@ function [results] = calculateDifference()
global artoaWorkspace artoaConfig artoaDataInput; global artoaWorkspace artoaConfig artoaDataInput;
%% Get required variables
fnames = fieldnames(artoaWorkspace.filteredSoundsources);
%% Get soundspeed
floatSoundspeed = artoaWorkspace.editOffsets.offsets.AppliedSoundspeed(1,1);
soundspeed = struct();
for i = 1:length(fnames)
soundspeed.(fnames{i}) = floatSoundspeed;
end
%% Calculate SATFIX ETA %% Calculate SATFIX ETA
[satfixEtas] = artoa.satdata.calculateSatfixEta( ... [satfixEtas] = artoa.satdata.calculateSatfixEta( ...
artoaDataInput.rfb, ... artoaDataInput.rfb, ...
artoaWorkspace.filteredSoundsources, ... artoaWorkspace.filteredSoundsources, ...
artoaWorkspace.editOffsets.offsets, ... artoaWorkspace.editOffsets.offsets, ...
artoa.controller.selectSoundspeed(), ... soundspeed, ...
artoaConfig.leapseconds); artoaConfig.leapseconds);
%% Calculate difference %% Calculate difference
fnames = fieldnames(artoaWorkspace.filteredSoundsources);
results = struct(); results = struct();
for i = 1:length(fnames) for i = 1:length(fnames)
......
...@@ -24,7 +24,7 @@ for o = 1:length(fnames) ...@@ -24,7 +24,7 @@ for o = 1:length(fnames)
[gpsDates, predictedToas, launchDateToa] = artoa.toa.predictFromGps( ... [gpsDates, predictedToas, launchDateToa] = artoa.toa.predictFromGps( ...
pRfb, pSoundsources.(fnames{o}), ... pRfb, pSoundsources.(fnames{o}), ...
pSoundvelocities{fnames{o}, 1}, ... pSoundvelocities.(fnames{o}), ...
pLeapsecondsMatrix ... pLeapsecondsMatrix ...
); );
......
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