Opened 14 years ago

Closed 14 years ago

#3167 closed bug (wontfix)

calculation of ruggedness

Reported by: tsw Owned by: nobody
Priority: major: does not work as expected Milestone: Version 1.6.0
Component: Rasters Version:
Keywords: ruggeness Cc:
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

In browsing the code for ruggedness I found something odd.

The formula is missing division by n prior to the execution of sqrt if it is supposed to be standard deviation from the centre pixel.

Since there is no documentation on the formula that was intended, I don't know if this is intentional or a bug.

Change History (1)

comment:1 by mhugent, 14 years ago

Resolution: wontfix
Status: newclosed

Ruggedness index is calculated according to Riley et al. 1999 (see corrected formula in http://www.fw.msu.edu/~rileysh2/Terrain%20Ruggedness%20Index.pdf). There is no division by the number of pixels, only the root of the squares is taken.

Note: See TracTickets for help on using tickets.