Skip to content
Snippets Groups Projects
Commit 18bca346 authored by leprob001's avatar leprob001
Browse files

The measured soundspeed is now being updated on applying a status to...

The measured soundspeed is now being updated on applying a status to temperature and pressure, as well as on loading an rfb file.
parent 0a769464
No related branches found
No related tags found
No related merge requests found
Showing
with 51 additions and 1 deletion
234
\ No newline at end of file
235
\ No newline at end of file
function [] = updateMeasuredSoundspeed()
%UPDATEMEASUREDSOUNDSPEED Summary of this function goes here
% Detailed explanation goes here
global artoaWorkspace;
if artoa.data.hasMember(artoaWorkspace, {'trackParameter', 'soundspeedMethodString'})
method = artoaWorkspace.trackParameter.soundspeedMethodString;
else
method = 'del grosso';
end
artoaWorkspace.editOffsets.soundspeed{1, 1} = ...
artoa.data.calculateSoundVelocity( ...
artoaWorkspace.temperature(artoaWorkspace.statusTemperature == 1), ...
artoaWorkspace.pressure(artoaWorkspace.statusPressure == 1), ...
method ...
);
artoa.controller.edit.offsets.updateGui();
end
......@@ -11,6 +11,9 @@ global artoaWorkspace artoaGui;
%% Set status
artoaWorkspace.statusPressure(:) = pStatus;
%% Recalculate soundspeed and update gui
artoa.controller.edit.offsets.updateMeasuredSoundspeed();
%% Update gui
artoa.controller.edit.updateAvailablePlots();
artoa.controller.updateMenuButtons();
......
......@@ -14,6 +14,9 @@ artoaWorkspace.editPressure.selectedPoints = (artoaWorkspace.statusPressure ~= 2
%% Set status
artoaWorkspace.statusPressure(artoaWorkspace.editPressure.selectedPoints) = pStatus;
%% Recalculate soundspeed and update gui
artoa.controller.edit.offsets.updateMeasuredSoundspeed();
%% Update gui
artoa.controller.edit.updateAvailablePlots();
artoa.controller.updateMenuButtons();
......
......@@ -23,6 +23,9 @@ selection = inpolygon( ...
%% Set status
artoaWorkspace.statusPressure(selection) = pStatusCode;
%% Recalculate soundspeed and update gui
artoa.controller.edit.offsets.updateMeasuredSoundspeed();
%% Update gui
artoa.controller.edit.updateAvailablePlots();
artoa.controller.updateMenuButtons();
......
......@@ -23,6 +23,9 @@ end
%% Set status
artoaWorkspace.statusPressure(artoaWorkspace.editPressure.userSelection) = pStatusCode;
%% Recalculate soundspeed and update gui
artoa.controller.edit.offsets.updateMeasuredSoundspeed();
%% Update gui
artoa.controller.edit.updateAvailablePlots();
artoa.controller.updateMenuButtons();
......
......@@ -11,6 +11,9 @@ global artoaWorkspace artoaGui;
%% Set status
artoaWorkspace.statusTemperature(:) = pStatus;
%% Recalculate soundspeed and update gui
artoa.controller.edit.offsets.updateMeasuredSoundspeed();
%% Update gui
artoa.controller.edit.updateAvailablePlots();
artoa.controller.updateMenuButtons();
......
......@@ -14,6 +14,9 @@ artoaWorkspace.editTemperature.selectedPoints = (artoaWorkspace.statusTemperatur
%% Set status
artoaWorkspace.statusTemperature(artoaWorkspace.editTemperature.selectedPoints) = pStatus;
%% Recalculate soundspeed and update gui
artoa.controller.edit.offsets.updateMeasuredSoundspeed();
%% Update gui
artoa.controller.edit.updateAvailablePlots();
artoa.controller.updateMenuButtons();
......
......@@ -23,6 +23,9 @@ selection = inpolygon( ...
%% Set status
artoaWorkspace.statusTemperature(selection) = pStatusCode;
%% Recalculate soundspeed and update gui
artoa.controller.edit.offsets.updateMeasuredSoundspeed();
%% Update gui
artoa.controller.edit.updateAvailablePlots();
artoa.controller.updateMenuButtons();
......
......@@ -23,6 +23,9 @@ end
%% Set status
artoaWorkspace.statusTemperature(artoaWorkspace.editTemperature.userSelection) = pStatusCode;
%% Recalculate soundspeed and update gui
artoa.controller.edit.offsets.updateMeasuredSoundspeed();
%% Update gui
artoa.controller.edit.updateAvailablePlots();
artoa.controller.updateMenuButtons();
......
......@@ -45,6 +45,9 @@ artoa.controller.track.parameter.updateGui();
artoa.controller.edit.offsets.initialize(true);
artoa.controller.edit.offsets.updateGui();
%% Calculate soundspeed
artoa.controller.edit.offsets.updateMeasuredSoundspeed();
%% Update menu buttons
artoa.controller.updateMenuButtons();
......
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