pyforestry.sweden.bark package¶
Submodules¶
pyforestry.sweden.bark.hannrup_2004 module¶
- pyforestry.sweden.bark.hannrup_2004.Hannrup_2004_bark_picea_abies_sweden(diameter_at_height_mm: float, diameter_breast_height_mm: float | Diameter_cm) float [source]¶
Calculates double bark thickness for Norway Spruce in Sweden based on diameter.
Based on the function presented in Skogforsk Arbetsrapport 575-2004.
- Parameters:
diameter_at_height_mm (float) – Diameter over bark at the point of interest along the stem, in millimeters.
diameter_breast_height_mm (Union[float, Diameter_cm]) – Diameter at breast height (1.3m) over bark, in millimeters. Must be in the same units as diameter_at_height_mm. If Diameter_cm is passed, it’s converted to mm.
- Returns:
- Estimated double bark thickness at the point corresponding to
diameter_at_height_mm, in millimeters. Minimum value is 2 mm.
- Return type:
float
- Raises:
ValueError – If inputs are non-positive or dbh is zero.
TypeError – If diameter input types are invalid.
References
Hannrup, Björn. (2004). Funktioner för skattning av barkens tjocklek hos tall och gran vid avverkning med skördare [Functions for estimating bark thickness of Scots pine and Norway spruce at harvester felling]. Arbetsrapport 575. Skogforsk. Uppsala Science Park, Sweden. 34 pp. ISSN: 1404-305X. Available Online [2025-04-17]: https://www.skogforsk.se/contentassets/960ad964391d489785f97f9eaeeaf174/arbetsrapport-575-2004.pdf
Notes
This function calculates bark thickness based on the diameter at a given point relative to the breast height diameter. It does not directly use stem height or latitude.
The function returns DOUBLE bark thickness in MILLIMETERS.
Only applicable to Picea abies in Sweden.
- pyforestry.sweden.bark.hannrup_2004.Hannrup_2004_bark_pinus_sylvestris_sweden(diameter_breast_height_mm: float | Diameter_cm, latitude: float, stem_height_cm: float) float [source]¶
Calculates double bark thickness at a given stem height for Scots Pine in Sweden.
Based on the “Sf_tall” function presented in Skogforsk Arbetsrapport 575-2004.
- Parameters:
diameter_breast_height_mm (Union[float, Diameter_cm]) – Diameter at breast height (1.3m) over bark, in millimeters. If Diameter_cm is passed, it will be converted to mm. Diameters over 590mm are capped at 590mm internally for the calculation.
latitude (float) – Latitude in decimal degrees (e.g., 63.82).
stem_height_cm (float) – The height along the stem (from ground level) where bark thickness is desired, in centimeters.
- Returns:
- Estimated double bark thickness at the specified stem_height_cm,
in millimeters. Minimum value returned is 2 mm.
- Return type:
float
- Raises:
ValueError – If inputs are outside reasonable ranges (e.g., negative diameter, invalid latitude, negative stem height).
TypeError – If diameter input type is invalid.
References
Hannrup, Björn. (2004). Funktioner för skattning av barkens tjocklek hos tall och gran vid avverkning med skördare [Functions for estimating bark thickness of Scots pine and Norway spruce at harvester felling]. Arbetsrapport 575. Skogforsk. Uppsala Science Park, Sweden. 34 pp. ISSN: 1404-305X. Available Online [2025-04-17]: https://www.skogforsk.se/contentassets/960ad964391d489785f97f9eaeeaf174/arbetsrapport-575-2004.pdf
Notes
This function calculates bark thickness at any point along the stem height, not just at breast height.
It requires latitude as an input.
The function returns DOUBLE bark thickness in MILLIMETERS.
Only applicable to Pinus sylvestris in Sweden.