tri function

Calculate Terrain Ruggedness Index (TRI) statistics