getFIA(). Data is converted to a fast DuckDB database and cached locally.
Quick start
Choosing what to download
- One state
- Multiple states
- Custom directory
- Specific tables
common=True). Pass common=False to fetch every available table (a much larger download).
Caching
Downloads are cached, so repeated calls are instant:force=True:
Managing the cache
Download and open in one step
TheFIA class can download and connect together:
What gets downloaded
Withcommon=True (the default), pyFIA fetches the tables the estimators need, including:
| Table | Description |
|---|---|
PLOT | Plot-level data |
TREE | Tree measurements |
COND | Condition data |
SUBPLOT | Subplot data |
SEEDLING | Seedling data |
SURVEY | Survey metadata |
POP_EVAL, POP_EVAL_GRP, POP_EVAL_TYP | Evaluation definitions |
POP_STRATUM, POP_ESTN_UNIT, POP_PLOT_STRATUM_ASSGN | Stratification |
TREE_GRM_COMPONENT, TREE_GRM_MIDPT, TREE_GRM_BEGIN | Growth/removal/mortality |
Coming from rFIA
| Task | rFIA (R) | pyFIA (Python) |
|---|---|---|
| Download a state | getFIA(states = 'RI') | download("RI") |
| Multiple states | getFIA(states = c('GA','FL')) | download(["GA", "FL"]) |
| Common tables | common = TRUE | common=True |
| Specific tables | tables = c('PLOT') | tables=["PLOT"] |
| Save location | dir = '/path' | dir="/path" |
Troubleshooting
Network errors or timeouts
Network errors or timeouts
Use the lower-level client with a longer timeout and more retries:
Interrupted or corrupted download
Interrupted or corrupted download
Re-download to get a fresh copy:Or clear the cached state first:
Reference
See the Data Download API for the fulldownload() signature and cache functions.