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 withjoin_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 thePLOT table for regional analysis:
Plot-condition level estimates
Group byPLT_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):
PLT_CN + CONDID without writing raw SQL.
Mortality by cause
For mortality, group by cause of death:Summary
See also
- Domain filtering — define the population before grouping it
- Spatial filtering — group by polygon attributes