Skip to content

FIA Query Library

This directory contains a comprehensive, organized collection of tested and validated SQL queries for the FIA database. All queries have been verified to work with the current database structure and follow EVALIDator methodology.

πŸ“ Query Categories

🌳 Basic Tree Queries

  • Oregon Total Live Trees - EVALIDator-style tree counting with proper adjustment factors
  • Core tree enumeration and basic forest inventory queries

🌲 Growth, Removal, and Mortality (GRM)

  • Colorado Merchantable Volume Mortality - Annual mortality of growing-stock timber volume
  • North Carolina Tree Mortality Rate - Simple mortality rate in trees per acre per year
  • Advanced queries using TREE_GRM_* tables with proper component filtering

🌿 Biomass and Carbon

  • Colorado Above-Ground Biomass - Species-specific biomass calculations with wood/bark properties
  • Complex biomass equations with moisture content and specific gravity adjustments

🌳 Tree Count and Density

  • North Carolina Live Trees by Species - Species-level tree enumeration
  • Minnesota Forest Area by Type Group - Forest type group area calculations
  • Tree per acre (TPA) calculations and species distribution analysis

πŸ›οΈ Ratio Estimation

  • Alabama Trees Per Acre in Forest Types - Ratio-based TPA calculations
  • Loblolly Pine Distribution Analysis - Forest type vs species analysis examples
  • Advanced statistical estimation techniques

πŸ“Š Volume Analysis

  • California Volume by Diameter Class - Merchantable timber volume analysis
  • Diameter-based volume distribution and timber assessment

πŸ—ΊοΈ Forest Area

  • Alabama Land Area by Condition - Land use classification and area estimates
  • Forest vs non-forest land analysis

πŸ”„ Forest Change

  • Missouri Forest Type Change - Forest area changes by type group using remeasurement data
  • Temporal analysis using SUBP_COND_CHNG_MTRX and change evaluations

🎯 Key Features

  • βœ… EVALIDator Compatible: All queries match Oracle EVALIDator methodology
  • πŸ§ͺ Tested & Validated: Each query includes expected results and validation notes
  • πŸ“– Well Documented: Comprehensive methodology notes and insights
  • πŸ”§ Maintainable: Simplified approaches where possible without sacrificing accuracy
  • πŸ€– AI-Agent Friendly: Modular structure for easy navigation and reference

πŸ“ Query Standards

All queries in this library follow these standards:

  1. EVALID-based filtering for proper statistical estimates
  2. Appropriate status codes (STATUSCD=1 for live trees, COND_STATUS_CD=1 for forest)
  3. Proper expansion factors (TPA_UNADJ, EXPNS) for population estimates
  4. NULL value handling with explicit checks
  5. Meaningful result ordering (usually by primary metric DESC)
  6. Comprehensive documentation with methodology notes and key insights

⚠️ Critical Guidelines

  • Forest Type vs Species Analysis: Understand the difference between analyzing species within forest types vs forest types containing specific species
  • GRM Methodology: Use exact Oracle EVALIDator structure for Growth, Removal, Mortality queries
  • Biomass Calculations: Include all species-specific properties and adjustments
  • Query Simplification: Prefer readable approaches that maintain statistical accuracy

πŸš€ Getting Started

  1. Browse categories above to find relevant query types
  2. Each category contains detailed README with query descriptions
  3. Individual query files include full documentation and expected results
  4. Test queries against your FIA database before production use

πŸ“š Additional Resources