pyfia.estimation.estimators.removals
Removals estimation for FIA data.
Simple implementation for calculating average annual removals of merchantable
bole wood volume of growing-stock trees.
Functions
removals
db: Database connection or pathgrp_by: Columns to group by (e.g., “STATECD”, “FORTYPCD”)by_species: Group by species codeby_size_class: Group by diameter size classessize_class_type: Type of size class grouping to use (only applies when by_size_class=True):- “standard”: FIA numeric ranges (1.0-4.9, 5.0-9.9, etc.)
- “descriptive”: Text labels (Saplings, Small, Medium, Large)
- “market”: Timber market categories (Pulpwood, Chip-n-Saw, Sawtimber)
land_type: Land type: “forest”, “timber”, or “all”tree_type: Tree type: “gs” (growing stock), “all”measure: What to measure: “volume”, “biomass”, or “count”tree_domain: SQL-like filter for treesarea_domain: SQL-like filter for areatotals: Include population totalsvariance: Return variance instead of SEmost_recent: Use most recent evaluationremeasure_period: Remeasurement period in years for annualization
- Removals estimates with columns:
- REMOVALS_PER_ACRE: Annual removals per acre
- REMOVALS_TOTAL: Total annual removals
- REMOVALS_PER_ACRE_SE: Standard error of per-acre estimate
- REMOVALS_TOTAL_SE: Standard error of total estimate
- Additional grouping columns if specified
Basic volume removals on forestland
results = removals(db, measure=“volume”)Removals by species (tree count)
results = removals(db, by_species=True, measure=“count”)Biomass removals by forest type
results = removals( … db, … grp_by=“FORTYPCD”, … measure=“biomass” … )Removals on timberland only
results = removals( … db, … land_type=“timber”, … area_domain=“SITECLCD >= 225” # Productive sites … )
Classes
RemovalsEstimator
Removals estimator for FIA data.
Estimates average annual removals of merchantable bole wood volume of
growing-stock trees (at least 5 inches d.b.h.) on forest land.
Methods:
component_type
get_tree_columns
load_data
apply_filters
calculate_values
aggregate_results
- Bundle containing results, plot_tree_data, and group_cols for explicit variance calculation.
calculate_variance
agg_result: Bundle containing results, plot_tree_data, and group_cols from aggregate_results().
- Results with variance columns added.