## Summary

Topographic Point Cloud Analysis Toolkit (ToPCAT) is a tool developed by Brasington et al. (2012) used to decimate (or thin) a point cloud and calculate meaningful statistics for grid defined areas. The process of decimation can reduce computation time and produce meaningful summary outputs (e.g. Z_{Min} for modeling bare earth elevations; and detrended standard deviation for modelling surface roughness).

## Concepts

### Point Cloud Decimation

Point cloud decimation (A.K.A. thinning or binning) is common practice when using high resolution (i.e. > 1-5 points/m^{2}) point cloud topographic data (e.g. from multibeam SONAR, ground-based LiDAR, structure from motion photogrammetry) to reduce the computation times and memory requirements of their large point clouds (Kearns and Breman 2010, Passalacqua et al. 2015). Point decimation is the process of setting a defined grid size and using the point values that are contained within those grids to calculate summary statistics from those points.

### Locally Detrended Standard Deviation

One of the most useful statistics from a point cloud can be those that describe the variance of elevations within a cell. Brasington et al. (2012) developed an algorithm within ToPCAT that reports the variance from a locally detrended surface. This is ensures that only local variations in height are being modeled as is a reasonable proxy for roughness.

Figure 4 from Brasington et al. (2012) illustrates this workflow (at left). On a cell by cell basis this operation is computationally expensive and is not a standard tool in popular GIS. ToPCAT uses the point values contained within the defined grid size to calculate the minimum, maximum, mean, detrended mean, range, standard deviation, detrended standard deviation, skew, detrended skew, kurtosis, detrended kurtosis, and point density. A minimum number of points is necessary, generally 4, to calculate the detrended standard deviation; the necessity to have more than one point within the cell resolution of analysis is in support of many of the concepts presented in Cell Resolution. Having these statistics in a regularly spaced grid is invaluable for developing a detrended standard deviation raster to represent surface roughness.

In GCD 6, you could run ToPCAT within GCD.

### ToPCAT Outputs

ToPCAT, the point cloud thinning toolset recommended by ET-AL, uses the point values contained within the defined grid size to calculate the minimum, maximum, mean, detrended mean, range, standard deviation, detrended standard deviation, skew, detrended skew, kurtosis, detrended kurtosis, and point density. A minimum number of points is necessary, generally 4, to calculate the detrended standard deviation; the necessity to have more than one point within the cell resolution of analysis is in support of many of the concepts presented Determining Grid Resolution. Having these statistics in a regularly spaced grid is invaluable for developing a detrended standard deviation raster to represent surface roughness.

The command-line version of ToPCAT is straight forward to use, but requires a fair degree of pre and post processing. There are now three *other* ways to implement ToPCAT in a more familiar GIS environment:

- Now, with GCD 7, you can run ToPCAT from the
`Data Preparation → ToPCAT`

menu. A common workflow is to export just the locally detrended standard deviation as a proxy roughness surface and input this into GCD as an associated surface. - The MBES Toolkit (a standalone GUI), now makes these pre and post processing steps seamless and allows you to run ToPCAT from an easy to use user interface. The two main commands are
`ToPCAT Prep`

and`ToPCAT Point Cloud Decimation`

. - These same commands are available in the GCD 6 Add-In. In GCD 6, you could run ToPCAT within GCD from the
`Data Preparation → ToPCAT`

menu.

### Visualizing Decimated Point Clouds

## Resources

### Relevant Literature

- Brasington, J., D. Vericat, and I. Rychkov. 2012. Modeling river bed morphology, roughness, and surface sedimentology using high resolution terrestrial laser scanning. Water Resources Research 48. DOI: 10.1029/2012wr012223.
- Buscombe, D. 2016. Spatially explicit spectral analysis of point clouds and geospatial data. Computers and Geosciences 86, 92-108.
- Passalacqua P, Belmont P, Staley D, Simley J, Arrowsmith JR, Bodee C, Crosby C, DeLongg S, Glenn N, Kelly S, Lague D, Sangireddy H, Schaffrath K, Tarboton D, Wasklewicz T, Wheaton J. 2015. Analyzing high resolution topography for advancing the understanding of mass and energy transfer through landscapes: A review. Earth Science Reviews. 148. pp. 174-193. DOI: 10.1016/j.earscirev.2015.05.012
- Rychkov, I., J. Brasington, and D. Vericat. 2010. Processing and Modelling on Terrestrial Point Clouds. Institute of Geography and Earth Sciences, University of Wales, Aberystwyth, Wales.
- Rychkov, I., J. Brasington, and D. Vericat. 2012. Computational and methodological aspects of terrestrial surface analysis based on point clouds. Computers & Geosciences 42:64-70. DOI: 10.1016/j.cageo.2012.02.011.

### Other Resources

- PCTools 32 Bit Explanation on Joewheaton.org (former name of ToPCAT was PCTools)
- PCTools (Point Cloud Tools - the documented alternative to TLS Decimation Utility)
- Software (Python Script)
- PCTools Windows Console Version (32-bit version, non PYTHON command prompt version; instructions below)
- Documentation

- A useful alternative to ToPCAT, is Dan Buscombe’s PySESA - Python Program for Spatially Explicit Spectral Analysis. PySESA is an open-source project dedicated to provide a generic Python framework for spatially explicit statistical analyses of point clouds and other geospatial data, in the spatial and frequency domains, for use in the geosciences.