Skip to main content

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. nemora generates synthetic stem populations from fitted or user-defined distributions. FVS needs a tree list as input, so nemora primes fresh-fvsbc. The bridge lives here, in fresh-fvsbc; nemora takes no dependency on FVS. See ADR 0003.
  • Downstream. femic, ws3, ws4, and freshforge take fresh-fvsbc as 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-fvsbc depends on the UBC-FRESH/PyFVS fork 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.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fresh-fvsbc 0.21.3
File Size Uploaded Provenance Actions
fresh_fvsbc-0.21.3.tar.gz 440.7 kB With provenance Details for fresh_fvsbc-0.21.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fresh-fvsbc 0.21.3
File Interpreter ABI Platform Actions
fresh_fvsbc-0.21.3-py3-none-any.whl Python 3 none any Details for fresh_fvsbc-0.21.3-py3-none-any.whl

Total release size: 808.3 kB

Release files / fresh_fvsbc-0.21.3.tar.gz

Download URL fresh_fvsbc-0.21.3.tar.gz
Size 440.7 kB
Tags Source
SHA-256 checksum
How to use checksums
af78f34b0220e26ba3a84fda17cbb0f10b9968a3b3acfd30350a99551c1de60e
BLAKE2b-256 checksum
How to use checksums
a2f5cf240a1b8f9bdf34a1ca92e191d52f47c9414f21dd410c906f4618c9fe45
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 log

Release files / fresh_fvsbc-0.21.3-py3-none-any.whl

Download URL fresh_fvsbc-0.21.3-py3-none-any.whl
Size 367.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c902b8f989423b97bf1811080e052f7aa0bd6128db03ebab6a1796a0bd12a4b8
BLAKE2b-256 checksum
How to use checksums
e9558a0d8c5d11f3bdaf59666f00f4c3bb5daf488110869236d72df291efac38
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 log

Security for fresh-fvsbc 0.21.3

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.

Select from 2 files

Attestation for fresh_fvsbc-0.21.3.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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page