Select Git revision
loadEtopoFile.m
leprob001 authored
loadEtopoFile.m 907 B
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];
end
if artoa.data.hasMember(artoaConfig, 'files', 'etopo') ...
& isfile(artoaConfig.files.etopo)
artoaDataInput.etopo = struct();
[artoaDataInput.etopo.Z, artoaDataInput.etopo.refvec] = readgeoraster( ...
artoaConfig.files.etopo, ...
'CoordinateSystemType', ...
'geographic' ...
);
isLoaded = true;
else
warning('ETOPO file has not been found! Please download the file at https://www.ngdc.noaa.gov/mgg/global/relief/ETOPO1/data/bedrock/cell_registered/georeferenced_tiff/ETOPO1_Bed_c_geotiff.zip, unpack it and set etopo parameter in the files section in your artoa.ini');
end
end