pyforestry.sweden.taper package#

Submodules#

pyforestry.sweden.taper.edgren_nylinder_1949 module#

Edgren-Nylinder (1949) taper implementation and associated constants.

class pyforestry.sweden.taper.edgren_nylinder_1949.EdgrenNylinder1949(timber: SweTimber)[source]#

Bases: Taper

Stateful taper model using precomputed constants for one timber object.

get_diameter_at_height(height_m: float) → float[source]#

Instance method using pre-calculated base diameter.

get_height_at_diameter(diameter: float) → float[source]#

Instance method.

get_relative_diameter(rel_height: float) → float[source]#

Instance method using pre-calculated parameters from self.

static validate(timber: SweTimber)[source]#

Validate that the Timber object is compatible with the taper implementation.

class pyforestry.sweden.taper.edgren_nylinder_1949.EdgrenNylinder1949Consts[source]#

Bases: object

Constant tables and lookup helpers for Edgren-Nylinder taper curves.

static get_constants(species: str, north: bool, form_factor: float)[source]#

Return the coefficient row for species/region and rounded form factor.

static get_inflexion_point(species: str, north: bool, form_quotient: float) → float[source]#

Return the relative-height inflexion point for taper piecewise curves.

class pyforestry.sweden.taper.edgren_nylinder_1949.Pettersson1949Consts[source]#

Bases: object

Pettersson (1949) helpers used to derive taper form quotient.

static form_quotient(species: str, north: bool, height: float, dbh_ub: float, form_factor_ub: float) → float[source]#

Compute Pettersson form quotient from tree dimensions and region.

pyforestry.sweden.taper.edgren_nylinder_1949.Pettersson1949_consts#

alias of Pettersson1949Consts

Module contents#

Public API for the taper models subpackage.