fresh-fvsbc
fresh-fvsbc is a Python wrapper for the BC variant of the Forest Vegetation Simulator (FVS), the
individual-tree growth model maintained by the USDA Forest Service. It builds the FVSbc variant from
a pinned fork of PyFVS and exposes BC keywords, species and BEC
handling, and tidy simulation I/O.
The FVS source is Fortran. fresh-fvsbc does not reimplement the build or the bindings: it pins the fork that
owns them and adds the BC layer on top.
Where this sits
FVS Fortran -> fork of PyFVS (build, FFI) -> fresh-fvsbc (BC semantics, tidy I/O) -> femic, ws3, ws4, freshforge
^
|
nemora (synthetic stem populations)
- Upstream.
nemoragenerates synthetic stem populations from fitted or user-defined distributions. FVS needs a tree list as input, sonemoraprimesfresh-fvsbc. The bridge lives here, infresh-fvsbc;nemoratakes no dependency on FVS. See ADR 0003. - Downstream.
femic,ws3,ws4, andfreshforgetakefresh-fvsbcas a pinned dependency. See ADR 0002.
Status
ROADMAP.md is the plan of record and the only home for status, and the GitHub issues carry the live
status. At present P5, release and deploy, is active on feature/p5-release; P0 to P4 are
complete.
The BC variant builds, imports, and runs. The recipe is
ADR 0004; the patch sets the build needs are banked at
notes/reference/; and the numbers are compared against the FVS project's own BC test data in
notes/reference/fvsbc-validation.md, with the limits of that comparison stated there.
The first release, 0.1.0, is being prepared. Its notes and its list of known gaps are in RELEASE_NOTES.md; there is no tag and no wheel yet.
How this project works
This project follows the UBC-FRESH dev workflow. Work is planned as phases, tasks, and subtasks in
ROADMAP.md, mirrored in GitHub issues, and recorded in CHANGE_LOG.md. The agent operating contract is
in AGENTS.md. Read AGENTS.md, then ROADMAP.md, before you change anything.
Quick start
python -m venv .venv
. .venv/bin/activate
python -m pip install -r requirements-dev.txt
python scripts/dashboard.py
scripts/dashboard.py runs every quality gate: lint, format, strict types, tests with the coverage
gate, the workflow validator, and the docs build with warnings as errors.
Before the first real modelling case, read notes/reference/deployment-readiness.md. It has the install
recipe that works — including the two steps that cost an hour each the first time — what real use will
exercise that the tests do not, and where the known blind spots are.
Running a case
The command reads a population file and a keyword set, runs one FVS-BC case, and reports where its outputs are. It needs the built variant; the build recipe is in ADR 0004.
python -m fresh_fvsbc population.json \
--directory run \
--species FD --tree-age 60 \
--keyword STDINFO=CAR,IDFdk3/01,0,200,35,16 \
--keyword SITECODE=FD,100 \
--keyword NUMCYCLE=4 \
--keyword PROCESS \
--keyword STOP
It exits 0 when the run completed, 1 when the run was attempted and failed, and 2 when the input
was wrong before any run. The population file, the keyword fields, and the outputs are documented in
docs/usage.rst.
Repository map
| Path | Purpose |
|---|---|
AGENTS.md |
Operating contract for coding agents |
ROADMAP.md |
Plan of record and issue tracker map |
CHANGE_LOG.md |
Dated narrative of changes |
docs/ |
Documentation site |
src/fresh_fvsbc/ |
The package: the contracts, the orchestration, and the command |
notes/adr/ |
Decisions, one per file |
notes/reference/ |
Facts with provenance |
notes/reports/ |
Phase close-out reports |
scripts/check_workflow.py |
Workflow validator |
scripts/dashboard.py |
The green dashboard: every quality gate |
tests/ |
pytest suite, including a check that the planning surfaces pass the validator |
Decisions
| ADR | Decision |
|---|---|
| 0001 | Fork PyFVS as the FVS build and FFI layer |
| 0002 | fresh-fvsbc is a standalone package |
| 0003 | fresh-fvsbc owns the bridge from synthetic stem populations |
License
MIT. See LICENSE.
fresh-fvsbc builds on two dependencies with their own terms:
- FVS is produced by the USDA Forest Service and is in the U.S. public domain. It is released without conditions on its use.
- PyFVS is MIT, copyright 2021 Forest Modeling.
fresh-fvsbcdepends on theUBC-FRESH/PyFVSfork and does not vendor it. Where a built artifact carries PyFVS code, its notice is retained.
See notes/reference/license-analysis.md for the check and its
provenance.
Metadata
Release files for fresh-fvsbc 0.21.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fresh_fvsbc-0.21.0.tar.gz | 438.2 kB | With provenance | Details for fresh_fvsbc-0.21.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fresh_fvsbc-0.21.0-py3-none-any.whl | Python 3 | none | any | Details for fresh_fvsbc-0.21.0-py3-none-any.whl |
Total release size: 805.2 kB
Release files / fresh_fvsbc-0.21.0.tar.gz
| Download URL | fresh_fvsbc-0.21.0.tar.gz |
|---|---|
| Size | 438.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a863e5ef745a968a8a2fcfdb5c6c3e2443349f321f4aab9b9028b2f671631231
|
|
BLAKE2b-256 checksum How to use checksums |
6c05a2c93de8302b50186236544370e7ce1c49f659f16dd07381f7370e0404b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / fresh_fvsbc-0.21.0-py3-none-any.whl
| Download URL | fresh_fvsbc-0.21.0-py3-none-any.whl |
|---|---|
| Size | 367.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
028f1dd4f3a2812ac00ea02ca7460f84462762edf75a2a6c64b5802d7e68ce05
|
|
BLAKE2b-256 checksum How to use checksums |
fb3a9d1425ab76b6a3755ded02eda20c4120975c8eda9868ab2e3efb869c3db2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logSecurity for fresh-fvsbc 0.21.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for fresh_fvsbc-0.21.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.