TreeInfo is a tool for extracting comprehensive statistical information about tree files. It provides detailed analysis of tree structure, biomass, dimensions, and branching characteristics, saving results to both console output and detailed information files.
treeinfo <tree_file> [options]
<tree_file>: Input tree file for analysis
--branch_data: Creates additional branch-level attributes (branch number, segment length, branch order, extension, position)--layer_height <value>: Reports volume per vertical layer of specified height--crop_length <value>: Adjusts calculations for cropped branch lengths (should matchrayextract treescrop_length if used)
- Console: Summary statistics for all trees
<input>_info.txt: Detailed per-tree and per-segment information file
- Total woody volume: Sum of all branch volumes (m³)
- Estimated biomass: Wood mass at 0.5 tonnes/m³ (tonnes and kg)
- Volume distribution: Mean, minimum, and maximum per tree
- Forest extent: Minimum and maximum coordinates
- Centroid location: Mean tree positions
- Spatial spread: Range of tree locations
- Height: Maximum tree height from base to tip
- Crown radius: Approximate radius of tree crown
- DBH (Diameter at Breast Height): Trunk diameter measurement
- Total volume: Woody volume per individual tree
- Dimension: Statistical measure of branch length scaling
- Monocotal: Measure of palm-like characteristics (0-1 scale)
- Trunk strength: Diameter^0.75/length ratio
- Trunk bend: Standard deviation from straight line
- Branch dominance: Size ratio of largest to second-largest branches
- Branch angle: Mean angle between parent and child branches
- Children count: Number of child branches per segment
- Volume: Volume of individual segments or total tree volume (root segment)
- Diameter: Segment diameter or maximum tree diameter (root segment)
- Length: Segment length or distance to farthest leaf
- Strength: Diameter^0.75/length for mechanical analysis
- Min strength: Minimum strength between segment and root
- Dominance: Branch dominance ratios
- Angle: Local branching angles
Get comprehensive tree information:
treeinfo forest.txt
Include additional branch-level attributes:
treeinfo trees.txt --branch_data
Analyze volume distribution by height layers:
treeinfo forest.txt --layer_height 5
Account for branch cropping in reconstruction:
treeinfo extracted_trees.txt --crop_length 1.5
Full analysis with all options:
treeinfo forest.txt --branch_data --layer_height 2 --crop_length 1.0
For each metric, reports:
- Mean value: Average across all trees
- Minimum value: Smallest observed value
- Maximum value: Largest observed value
- Total value: Sum across forest (where applicable)
- Individual measurements for each tree
- Tree-level attribute distributions
- Comparative analysis capabilities
- Branch-level detailed information
- Hierarchical structure analysis
- Individual segment characteristics
- Branch number: Unique identifier for each branch
- Branch order: Hierarchical level (1=trunk, 2=primary, etc.)
- Position in branch: Segment number within branch
- Segment length: Length of individual segments
- Extension: Distance from segment to farthest leaf
- Branch characteristics: Complete branch-level analysis
- Calculate total biomass and carbon storage
- Assess forest structure and composition
- Generate inventory reports
- Study tree architecture and biomass allocation
- Analyze branching patterns and scaling laws
- Compare forest types and management effects
- Validate tree reconstruction algorithms
- Check data quality and completeness
- Assess measurement accuracy
- Estimate harvestable volume
- Plan silvicultural treatments
- Assess growth potential
- Extract trees: Use
rayextract treesto generate tree file - Analyze structure: Use
treeinfoto get detailed statistics - Color by attributes: Use
treecolour <attribute>to visualize specific metrics - Create visualizations: Use
treemeshto generate 3D renderings
Generated attributes can be used with:
treecolour: Color branches by any calculated attributetreemesh: Render colored tree structurestreesplit: Split trees based on attribute values
- High volume/tree: Mature forest, large trees
- Low volume/tree: Young forest, small trees
- High variance: Mixed-age forest
- High dimension: Complex branching structure
- Low dimension: Simple, palm-like structure
- High strength: Mechanically robust trees
- High dominance: Clear main branches
- Low dominance: Many similar-sized branches
- Large angles: Wide branch spreading
- Tree count and segment numbers
- Attribute availability and ranges
- Missing data identification
- Realistic value ranges for forest type
- Consistent scaling relationships
- Proper hierarchical structure
- Smooth branching patterns
- Appropriate trunk characteristics
- Logical size distributions
treeinfo deciduous_forest.txt --layer_height 3
treeinfo pine_plantation.txt --branch_data
treeinfo mixed_forest.txt --layer_height 5 --crop_length 2.0
treeinfo urban_trees.txt --branch_data --layer_height 2
- All calculations use cylindrical approximations for branch volumes
- Biomass estimates assume wood density of 0.5 tonnes/m³
- Branch order follows standard forestry conventions (trunk=1, primary branches=2, etc.)
- For more detailed information on analysis algorithms, refer to the
TreeInfosource code attreetools/treetools/treeinfo/treeinfo.cpp.