Munin.Taper package

Subpackages

Submodules

Munin.Taper.Taper module

class Munin.Taper.Taper.Taper(timber: Timber, taper_subclass_instance: Taper)[source]

Bases: object

General Taper class for subimplementations of different tapers.

get_diameter_at_height(height_m: float) float[source]

Returns diameter under bark (cm) at a given height (m) from stump. This calls your subclass taper.get_diameter_at_height function.

get_diameter_vectorised(h_array: Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str] | ndarray) ndarray[source]
get_height_at_diameter(diameter: float) float[source]

Returns the height (m above stump) at which the tree reaches the specified diameter (cm).

volume_section(h1_m: float, h2_m: float) float[source]

Integrate volume (m^3) from h1_m to h2_m above stump.

Module contents

class Munin.Taper.EdgrenNylinder1949(timber: SweTimber)[source]

Bases: Taper

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 Munin.Taper.Taper(timber: Timber, taper_subclass_instance: Taper)[source]

Bases: object

General Taper class for subimplementations of different tapers.

get_diameter_at_height(height_m: float) float[source]

Returns diameter under bark (cm) at a given height (m) from stump. This calls your subclass taper.get_diameter_at_height function.

get_diameter_vectorised(h_array: Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str] | ndarray) ndarray[source]
get_height_at_diameter(diameter: float) float[source]

Returns the height (m above stump) at which the tree reaches the specified diameter (cm).

volume_section(h1_m: float, h2_m: float) float[source]

Integrate volume (m^3) from h1_m to h2_m above stump.