This is the documentation repository for pyfor, a Python package for point cloud data processing in the context of forest inventory.Our GitHub page is located here. Please refer to that page (specifically the Wiki) if you are interested in a “higher-level” user manual, installation instructions and the like.

However, if you are interested in nitty-gritty documentation of functions, this is the place to be. Consider this the last stop before reading source code.


pyfor is written using an OOP framework. The classes listed below make up the most of the package high-level functionality.

  • Cloud - represents the point cloud itself.
  • CloudData - handles the point cloud data manipulations (mostly an internal class).
  • Grid - represents the point cloud as separated into grid cells (many points per grid cell).
  • Raster - represents the point cloud as a two-dimensional raster (one value per grid cell).


The beating heart of pyfor is its collections of functions, these handle the lower level processing tasks. They are located in a few different scripts:

  • - holds functions for clipping point cloud data.
  • - holds functions for writing to GIS file types, mostly a wrapper for GDAL.
  • - holds ground filtering and related functions.

Indices and tables