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

Small Bugfixes and cleanup.

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