Skip to content
Snippets Groups Projects
Commit 00b183b7 authored by leprob001's avatar leprob001
Browse files

Bugfix, variable check was not present.

parent cbca3411
No related branches found
No related tags found
No related merge requests found
154
\ No newline at end of file
155
\ No newline at end of file
......@@ -13,11 +13,17 @@ end
%% Initialize soundspeed table for calculations
artoaWorkspace.editOffsets.soundspeed = table();
if artoa.data.hasMember(artoaWorkspace, {'trackParameter', 'soundspeedMethodString'})
method = artoaWorkspace.trackParameter.soundspeedMethodString;
else
method = 'del grosso';
end
artoaWorkspace.editOffsets.soundspeed{1, :} = [ ...
artoa.data.calculateSoundVelocity( ...
artoaWorkspace.temperature(artoaWorkspace.statusTemperature == 1), ...
artoaWorkspace.pressure(artoaWorkspace.statusPressure == 1), ...
artoaWorkspace.trackParameter.soundspeedMethodString ...
method ...
) ...
NaN ...
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