pyforestry.base.timber package

Subpackages

Module contents

Convenience re-exports for timber classes.

class pyforestry.base.timber.Timber(species: str, diameter_cm: float, height_m: float, double_bark_mm: float | None = None, crown_base_height_m: float | None = None, over_bark: bool | None = None, stump_height_m: float | None = 0.3)[source]

Bases: object

Representation of a single tree with minimal attributes.

validate() None[source]

Validate that the provided tree attributes are sensible.

class pyforestry.base.timber.TimberVolumeIntegrator[source]

Bases: object

static cylinder_volume_integrand(height, taper_instance)[source]

Calculate the cross-sectional area. Now takes a taper instance.

static integrate_volume(height1, height2, taper_instance)[source]

Integrate the volume of the cylinder between two heights.