Page 1 of 1

Advanced Math With Grid Utilities

PostPosted: Thu Apr 23, 2020 5:35 pm
by ehinz
We’d like to calculate a formula called the terrain ruggedness index on a 3d grid file. The algorithm involves looping cell by cell and using the elevation values of all the neighbor cells to compute the ruggedness index value for the cell. Is there a way to do this with existing Grid tools, or is this going to be a custom app?

Questions:
1) What program language does the Surface Macro Launcher use?
2) Can you write loops in the Macro Launcher, and can you iterate cell by cell?
3) Can you do focal sums -- sum around a cell with a given window size?
4) If the Macro Launcher cannot iterate and calculate by cell, is there an SDK for Carlson so that a custom add in app can be made in C# (similar to https://www.autodesk.com/developer-netw ... es/autocad )
5) Any other suggestions for how to do this with Grid or other formats? We could export and do it in Excel, but that is cumbersome for large grids.

Re: Advanced Math With Grid Utilities

PostPosted: Tue Apr 28, 2020 1:37 pm
by gskelhorn
I'm no help with most of the question, perhaps Carlson has the ability... it is not something I have tried.
Feels like a raster operation so my initial attempt would involve using tools in QGIS or SAGA (or any GIS).

The algorithm might even be built-in: see https://docs.qgis.org/3.4/en/docs/user_manual/processing_algs/qgis/rasterterrainanalysis.html#ruggedness-index