Array Utilities

Utility functions for use with pylidar.

pylidar.toolbox.arrayutils.addFieldToStructArray(oldArray, newName, newType, newData=0)[source]

Creates a new array with all the data from oldArray, but with a new field as specified by newName and newType. newType should be one of the numpy types (numpy.uint16 etc). newData should either be a constant value, or an array of the correct shape and the new field will be initialised to this value.