Skip to content
Snippets Groups Projects
Select Git revision
  • b48aef8753ce8eac4682ec5d3263ad966ca2652b
  • master default protected
  • wip/kalman-filter-adjustments
  • exp/re-enable-mercator-projection
  • v2.0
  • v1.0
6 results

loadEtopoFile.m

Blame
  • 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