ws3

ws3: Wood Supply Simulation System

https://github.com/ubc-fresh/ws3

Science Score: 52.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
    Organization ubc-fresh has institutional domain (fresh.forestry.ubc.ca)
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.7%) to scientific vocabulary

Keywords

forestry modelling-framework optimization simulation wood-supply
Last synced: 6 months ago · JSON representation ·

Repository

ws3: Wood Supply Simulation System

Basic Info
  • Host: GitHub
  • Owner: UBC-FRESH
  • License: mit
  • Language: Python
  • Default Branch: dev
  • Homepage:
  • Size: 8.17 MB
Statistics
  • Stars: 5
  • Watchers: 3
  • Forks: 6
  • Open Issues: 6
  • Releases: 5
Topics
forestry modelling-framework optimization simulation wood-supply
Created almost 11 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation

README.md

tests Documentation Status

ws3 - Wood Supply Simulation System

ws3 (Wood Supply Simulation System) is a Python package for modeling landscape-level wood supply planning problems.

Read the tutorial here.

Table of Contents


Installation

We recommend installing ws3 package into a Python venv (virtual environment) to minimize interactions with system-level packages.

In 000venvpythonkernelsetup.ipynb we provide the instructions for how to set up a new venv-sandboxed Python kernel and make it available in your JupyterLab environment, assuming that you are running this notebook in a standard linux-based environment and a regular (non-root) using running commands in a bash terminal.

Modules

ws3 consists of the following main modules:

  • common.py: Contains definitions for global attributes, functions, and classes that might be used anywhere in the package.
  • core.py: Contains Interpolator class used by Curve class to interpolate between real data points.
  • forest.py: Implements functions for building and running wood supply simulation models.
  • opt.py: Implements functions for formulating and solving optimization problems.
  • spatial.py: Implements the ForestRaster class, which can be used to allocate an aspatial disturbance schedule (for example, an optimal solution to a wood supply problem generated by an instance of the forest.ForestModel class) to a rasterized representation of the forest inventory.

Usage

Multiple examples are available to demonstrate the utilization of ws3. Below is an overview explaining each of these examples:

  • 010ws3model_example-fromscratch.ipynb: This example builds a new ws3 model from scratch.
  • 020ws3model_example-woodstock.ipynb: This example builds a ws3 model from Woodstock-format text input files.
  • 030ws3libcbm_sequential-fromscratch.ipynb: This example creates the linkages between ws3 and libcbm from scratch (i.e., all code required to create these linkages is developed directly in this notebook).
  • 031ws3libcbm_sequential-builtin.ipynb: This example replicates what 030ws3libcbm_sequential-fromscratch.ipynb does, but using ws3 built-in CBM linkage functions.
  • 040ws3libcbm_neilsonhack-fromscratch.ipynb: This example shows how to implement the Neilson hack (i.e., generate carbon yield curves from a CBM for use in a forest estate model) using ws3 and libcbm.
  • 050dssavoided_fire: This example shows the implementation of a notebook-based decision-support system (DSS) for evaluating the net system-level carbon emissions impact of an avoided fire type project.
  • 060dssavoid_harvest.ipynb: This example shows the implementation of a notebook-based decision-support system (DSS) for evaluating the net system-level carbon emissions impact of an avoided harvesting type project.

License

MIT License Copyright (c) 2025 Gregory Paradis.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

  • The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  • The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.

Authors and Contributors

Primary Author:
Gregory Paradis — Lead developer and architect of the ws3 framework.

Additional Contributors:
Elaheh Ghasemi
Kathleen Coupland
Salar Ghotb

For full contribution history, see GitHub Contributors.

Owner

  • Name: UBC FRESH
  • Login: UBC-FRESH
  • Kind: organization
  • Email: gregory.paradis@ubc.ca
  • Location: Canada

UBC Forest Resources and Environmental Services Hub (FRESH)

Citation (CITATION.cff)

cff-version: 1.1.0
message: "If you use this code, please cite it as below."
authors: 
  - family-names: Paradis
    given-names: Gregory
    orcid: https://orcid.org/0000-0001-9618-8797
title: "ws3: a Wood Supply Simulation System"
version: 1.0.0.post1
date-released: 2025-06-07
license: MIT
url: https://github.com/UBC-FRESH/ws3
doi: 10.5281/zenodo.15616189

GitHub Events

Total
  • Create event: 19
  • Release event: 4
  • Issues event: 5
  • Delete event: 11
  • Issue comment event: 2
  • Push event: 39
  • Pull request event: 21
  • Fork event: 1
Last Year
  • Create event: 19
  • Release event: 4
  • Issues event: 5
  • Delete event: 11
  • Issue comment event: 2
  • Push event: 39
  • Pull request event: 21
  • Fork event: 1

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 151 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 8
  • Total maintainers: 1
pypi.org: ws3

A Python framework for forest estate modeling and wood supply simulation

  • Versions: 8
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 151 Last month
Rankings
Dependent packages count: 10.1%
Forks count: 19.1%
Dependent repos count: 21.6%
Average: 22.9%
Stargazers count: 23.1%
Downloads: 40.5%
Maintainers (1)
Last synced: 6 months ago

Dependencies

setup.py pypi
  • fiona *
  • matplotlib *
  • numpy *
  • pandas *
  • profilehooks *
  • rasterio *
  • scipy *
docs/requirements.txt pypi
  • sphinx ==7.1.2
  • sphinx-rtd-theme ==1.3.0rc1
pyproject.toml pypi