Skip to content
Snippets Groups Projects
Commit 2100da72 authored by leprob001's avatar leprob001
Browse files

If the soundsource does not have applied values, the measured soundspeed will...

If the soundsource does not have applied values, the measured soundspeed will be used in the TOA edit window.
parent 0390503f
No related branches found
No related tags found
No related merge requests found
297
\ No newline at end of file
298
\ No newline at end of file
......@@ -23,7 +23,19 @@ for o = 1:length(fnames)
artoaDataInput.soundsources.(fnames{o}).endemis(2), ...
artoaDataInput.soundsources.(fnames{o}).endemis(1));
if any(strcmp(artoaWorkspace.editOffsets.offsets.Properties.RowNames, fnames(o)))
if ~artoa.soundsources.hasAppliedToa(fnames{o}, artoaWorkspace.toaData)
if artoa.data.hasMember(artoaWorkspace, {'trackParameter', 'soundspeedMethodString'})
method = artoaWorkspace.trackParameter.soundspeedMethodString;
else
method = 'del grosso';
end
soundvelocity = artoa.data.calculateSoundVelocity( ...
artoaWorkspace.temperature(artoaWorkspace.statusTemperature == 1), ...
artoaWorkspace.pressure(artoaWorkspace.statusPressure == 1), ...
method ...
);
elseif any(strcmp(artoaWorkspace.editOffsets.offsets.Properties.RowNames, fnames(o)))
soundvelocity = artoaWorkspace.editOffsets.offsets{fnames{o}, 'AppliedSoundspeed'};
else
soundvelocity = NaN;
......
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