[GRASS-user] TPI (terrain position index) in GRASS GIS

Hi everyone,

Do any of you know if we can calculate TPI (terrain position index) in GRASS GIS?
Or should we go for other tools such as SAGA GIS?

Best wishes,
Bernardo Niebuhr

Hi Brenado,

TPI is rather simple and can be computed with r.neighbors + r.mapcalc:

r.neighbors -c input=dem output=dem_avg_9 size=9

r.mapcalc expression=”TPI_9=dem-dem_avg_9”

g.remove -f type=raster name=dem_avg_9

Cheers

Stefan

···

From: grass-user grass-user-bounces@lists.osgeo.org On Behalf Of Bernardo Santos
Sent: torsdag 8. oktober 2020 12:35
To: GRASS User List grass-user@lists.osgeo.org
Subject: [GRASS-user] TPI (terrain position index) in GRASS GIS

Hi everyone,

Do any of you know if we can calculate TPI (terrain position index) in GRASS GIS?

Or should we go for other tools such as SAGA GIS?

Best wishes,

Bernardo Niebuhr

Hi Stefan,

Sure, that makes all sense! I am not used to DEM-realted indices, but I could have just thought a little…
Thanks a lot!

B

Em quinta-feira, 8 de outubro de 2020 12:50:35 GMT+2, Stefan Blumentrath stefan.blumentrath@nina.no escreveu:

Hi Brenado,

TPI is rather simple and can be computed with r.neighbors + r.mapcalc:

r.neighbors -c input=dem output=dem_avg_9 size=9

r.mapcalc expression=”TPI_9=dem-dem_avg_9”

g.remove -f type=raster name=dem_avg_9

Cheers

Stefan

From: grass-user grass-user-bounces@lists.osgeo.org On Behalf Of Bernardo Santos
Sent: torsdag 8. oktober 2020 12:35
To: GRASS User List grass-user@lists.osgeo.org
Subject: [GRASS-user] TPI (terrain position index) in GRASS GIS

Hi everyone,

Do any of you know if we can calculate TPI (terrain position index) in GRASS GIS?

Or should we go for other tools such as SAGA GIS?

Best wishes,

Bernardo Niebuhr