Skip to content
Snippets Groups Projects
Commit 4cc9bfe9 authored by leprob001's avatar leprob001
Browse files

Small Bugfixes and cleanup.

parent 97f824ee
Branches
Tags
No related merge requests found
function [] = loadRfb()
%LOADRFB Creates a file selection dialog and reads the file into memory.
global artoaGui artoaDataInput;
global artoaDataInput;
%% Initialize variables
artoaDataInput.rfb = false;
......@@ -13,6 +13,7 @@ filepath = fullfile(path, file);
%% Check if file exists
if ~isfile(filepath)
error([mfilename ': Selected file ' filepath ' is not a file! Please try again!']);
return;
end
%% Load file into memory
......
......
......@@ -52,7 +52,8 @@ if z > 0
end
else
z=-1.0;
z=NaN;
ang = NaN;
% fprintf('error because distance <= 0')
end
abstand=z;
......
......
......@@ -29,7 +29,7 @@ dmys=[ 1 1 1972 10;
1 1 1999 32;
1 1 2006 33];
rd=dmy2rd(dmys(:,1:3));
rd=artoa.convert.dmy2rd(dmys(:,1:3));
leap=dmys(:,4);
ax=find(rd <= date1);
......
......
......@@ -27,7 +27,7 @@ switch lower(pMethod) % del grosso is default
calculatedSoundVelocity = pSoundSource.sound_speed;
otherwise
calculatedSoundVelocity = artoa.vendor.oceanstoolbox.sndspd( ...
35, mean(pTemperature), mean(pPressure), 'del grosso' ...
35, mean(pTemperature(~isnan(pTemperature))), mean(pPressure(~isnan(pPressure))), 'del grosso' ...
);
end
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment