[GRASS-git] [OSGeo/grass] 471e4e: r.geomorphon: Fix shape calculations (#1040)
Denis Ovsienko
noreply at github.com
Thu Oct 22 22:43:33 PDT 2020
Branch: refs/heads/releasebranch_7_8
Home: https://github.com/OSGeo/grass
Commit: 471e4eb4ff5dc2c4253f467ac456960c6480ec46
https://github.com/OSGeo/grass/commit/471e4eb4ff5dc2c4253f467ac456960c6480ec46
Author: Denis Ovsienko <denis at ovsienko.info>
Date: 2020-10-23 (Fri, 23 Oct 2020)
Changed paths:
M raster/r.geomorphon/geom.c
Log Message:
-----------
r.geomorphon: Fix shape calculations (#1040)
The plugin sometimes produced apparently invalid (several orders of
magnitude off or "not a number") values for elongation and width. Add
missing initializations to shape() in geom.c to fix that and the azimuth
calculation as well: when finding a sum of values, initialize the
holding variable with 0; when finding a minimum or a maximum for a set
of values, initialize the holding variable with the first value.
More information about the grass-commit
mailing list