Skip to content
pyfor

pyfor

A Python package for processing and manipulating point cloud data for analysis in large scale forest inventory systems.

pyfor is a Python package for processing and manipulating point cloud data for analysis in large scale forest inventory systems. It is developed with the philosophy of flexibility, and offers solutions for advanced and novice Python users. This site contains a user manual and the API reference.

pyfor is capable of processing large acquisitions of point data in just a few lines of code. Here is an example of a routine normalization for an entire collection of .las tiles:

import pyfor
collection = pyfor.collection.from_dir("./my_tiles")
def normalize(las_path):
tile = pyfor.cloud.Cloud(las_path)
tile.normalize()
tile.write("{}_normalized.las".format(tile.name))
collection.par_apply(normalize, by_file=True)

The above example only scratches the surface. See Installation and Getting Started to learn more.