amforte / Topographic-Analysis-Kit

Set of matlab based tools for topographic analysis, built on top of TopoToolbox.
GNU General Public License v3.0
42 stars 35 forks source link

MakeStreams - dem is invalid #30

Closed scheip closed 4 years ago

scheip commented 5 years ago

Hi Adam,

MakeStreams is giving the following error with DEMs that I have curated and your example SoCal_UTM_DEM.tif DEM (example data tarball does not include the ascii version). I have tried both tif files and ascii files on my DEMs.

[DEM, FD, A, S] = MakeStreams("D:\pkgs\topotoolbox\Topographic-Analysis-Kit-master\ExampleData\SoCal_UTM_DEM.tif", 1e6);

Error using MakeStreams
The value of 'dem' is invalid. It must satisfy the function: @(x)isa(x,'GRIDobj')|ischar(x).
Error in MakeStreams (line 77)
    parse(p,dem,threshold_area,varargin{:});

I am thinking it could be a pixel depth issue? Any tips? Cheers.

scheip commented 4 years ago

Solved. Matlab characters (denoted by single quote) versus strings (denoted by double quotes). Apologies for false issue.