Skip to content
Snippets Groups Projects
Commit 60a647a5 authored by leprob001's avatar leprob001
Browse files

Bugfixes in migration and plotting topographical lines.

parent 39896ea7
No related branches found
No related tags found
No related merge requests found
226
\ No newline at end of file
227
\ No newline at end of file
function [] = loadEtopoFile(pLatLimit, pLonLimit)
function [isLoaded] = loadEtopoFile(pLatLimit, pLonLimit)
%LOADETOPOFILE Summary of this function goes here
% Detailed explanation goes here
global artoaDataInput artoaConfig;
isLoaded = false;
if nargin ~= 2
pLatLimit = [-90, 0];
pLonLimit = [-180, 180];
......@@ -18,6 +20,7 @@ if artoa.data.hasMember(artoaConfig, 'files', 'etopo') ...
pLatLimit, ...
pLonLimit ...
);
isLoaded = true;
else
warning('ETOPO file has not been found! Please download the file at http://cromwell.marine.unc.edu/data/long_bay/etopo/etopo1_bed_c.flt and set etopo parameter in the files section in your artoa.ini');
end
......
......@@ -6,10 +6,12 @@ global artoaWorkspace artoaDataInput;
%% Load etopo
artoa.controller.file.loadEtopoFile( ...
pAxesHandle.YLim, ...
pAxesHandle.XLim ...
);
if ~artoa.controller.file.loadEtopoFile( ...
pAxesHandle.YLim, ...
pAxesHandle.XLim ...
)
return;
end
%% Plot topographical lines
......
......@@ -11,4 +11,9 @@ if ~artoa.data.hasMember(artoaConfig, 'defaults', 'topographicalLines')
-2000; ...
-3000 ...
};
end
%% Add defaults to workspace if required
if ~artoa.data.hasMember(artoaWorkspace, 'trajectoryOutput', 'topographicalLines')
artoaWorkspace.trajectoryOutput.topographicalLines = artoaConfig.defaults.topographicalLines;
end
\ No newline at end of file
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