Skip to main content
Pass grp_by to any estimator to stratify the result by one or more FIA columns. When you group by common columns like forest type or ownership, pyFIA automatically adds descriptive name columns so the output is readable.

Basic grouping

Auto-enhanced columns

For common grouping codes, pyFIA adds a human-readable companion column automatically:

Species and other names

Species names require a database lookup and are not auto-enhanced. Add them after estimation with join_species_names():
The full set of reference-table helpers:

Convenience flags

Some estimators expose flags for common groupings:
by_size_class is available for tpa, volume, biomass, mortality, growth, and removals, with three classification systems:
The "market" size classes use species-aware thresholds (pine vs. hardwood) that align with timber pricing reports. Pre-merchantable trees (< 5” DBH) require tree_type="live", since growing stock starts at ≥5” DBH.

Geographic and administrative groupings

Group by columns from the PLOT table for regional analysis:

Plot-condition level estimates

Group by PLT_CN and CONDID to get one row per plot-condition — useful for linking pyFIA estimates to external plot-level models (e.g. harvest probability, growth models):
Each row is a single plot-condition’s contribution to the population estimate, so you can join directly on PLT_CN + CONDID without writing raw SQL.

Mortality by cause

For mortality, group by cause of death:
This supports timber casualty-loss analysis, where losses must be classified by cause.

Summary

See also