Skip to content

Commit

Permalink
moved slopeareatool
Browse files Browse the repository at this point in the history
  • Loading branch information
wschwanghart committed Jun 14, 2022
1 parent 5c04a5c commit 37a2672
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slopeareatool.m → @FLOWobj/slopeareatool.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function slopeareatool(FD,DEM,varargin)
% See also: slopearea, chiplot
%
% Author: Wolfgang Schwanghart (w.schwanghart[at]geo.uni-potsdam.de)
% Date: 19. June, 2013
% Date: 14. June, 2022


p = inputParser;
Expand Down Expand Up @@ -115,8 +115,8 @@ function slopeareatool(FD,DEM,varargin)
% Upslope area (we will use pixel units and switch to map units when plotting)
A = flowacc(FD);
% gradient
DEM = imposemin(FD,DEM,0.0000001);
G = FLOWobj2gradient(FD,DEM);
DEM = imposemin(FD,DEM,p.Results.mingradient);
G = gradient(FD,DEM);

% Set minarea and maxarea to pixel units
minarea = minarea/(A.cellsize^2);
Expand Down

0 comments on commit 37a2672

Please sign in to comment.