TreeRingShape: An R Package to Record Tree-Ring Shape of Tree Disks with Manual Digitizing and Interpolating Model

Traditionally, dendrochronology and tree-ring analysis have evaluated tree growth based on the width of tree rings. Although tree rings grow concentrically around the pith, their shape is not perfectly circular. With the advancement of image analysis technologies, there has been an increasing number of studies evaluating growth based on the area of the tree rings. This package is designed for efficiently recording the shape of all tree rings in a tree trunk cross-section. It interpolates the tree rings (L2) between representative tree ring lines (L) from the tree ring points (P) and representative tree ring lines inputted on radii measured in GIS software (‘Qgis’). A “representative tree ring” refers to the tree rings that characterize the shape of the outer circumference and the cross-section of the disc, requiring fewer rings the closer their shape is to a perfect circle.

Megumi Ishida (Toyama PrefectureGifu university) , Kanechika Goto (Gifu PrefectureGifu university) , Sora Asahara (Hiroshima PrefectureGifu university) , Haruki Nakashima (Toyama Prefecture) , Atsushi Kume (Kyushu University)
2024-05-09

1 Introduction

Trees are possible to live more than hundreds of years old, and accurate their tree-ring analysis of the stem disk provides tree-ring chronological information, such as long-term tree growth environment and weather (e.g.,Fritts (2012)). In ordinary tree ring analysis, core or bar samples of tree trunks have been used to measure tree ring width.In some cases, it is difficult to distinguish tree rings without observing the tree rings on the entire disk, such as false tree rings and incomplete tree rings (Latte et al. 2015). Tree trunks grow radially around the pith and form tree rings, but the ring width is not the same in all directions(Latte et al. 2015; Shi et al. 2015). When trying to evaluate tree growth by stem analysis, it is possible to record the tree ring shape and accurately estimate the amount of tree growth from the tree ring area (Cerda et al. 2007).

It is necessary to record the tree ring shape, and much labor is required. For woods of conifer plantations, tree ring area by image processing have been studied Soille and Misson (2001). However, in the case of natural trees, the tree ring shape is more complicated, and their width are often very narrow (Schweingruber 2012).It is difficult for humans to make automatic recognition at present. It is practically difficult to manually input all the tree ring shapes of natural woods with hundreds annual tree rings. However, the tree ring shape has a certain regularity (Shi et al. 2015), and it is possible to estimate the shape between the tree rings fairly accurately by inputting some representative shapes at a certain interval and complementing the model there is a possibility.

In recent years, the resolution of photographs taken by digital cameras has increased, and a method of capturing the shape of the tree ring of a large disk using a divided photograph, synthesizing the image by geometric correction of the image, and analyzing the tree ring has begun to be studied. Latte st al.(2015) proposed a method of tree-ring analysis of large disks using high-resolution photographs and GIS software using the R program. R is a highly versatile scientific computing software that can handle images and large amounts of data, and has a statistical package specialized in various research fields. Many analysis and database platforms have also been developed and spread in the field of tree ring chronology (Bunn 2008; Hietz 2011).

This packageTreeRingShape (Ishida 2024) is designed for efficiently recording the shape of all tree rings in a tree trunk cross-section. It interpolates the tree rings () between representative tree ring lines () from the tree ring points () and representative tree ring lines inputted on radii measured in Qgis(QGIS Development Team 2009), free GIS software. A refers to the tree rings that characterize the shape of the outer circumference and the cross-section of the disc, requiring fewer rings the closer their shape is to a perfect circle. Although tree rings grow concentrically around the pith, their shape is not perfectly circular. Traditionally, dendrochronology and tree-ring analysis have evaluated tree growth based on the width of the tree rings. However, with the advancement of image analysis technologies, there has been an increasing number of studies evaluating growth based on the area of the tree rings. Most of these studies have focused on conifer plantation samples, where the tree rings are clearly defined. However, this package also enables the recording of tree ring shapes in trees from natural forests, where the ring shapes are more complex.

2 Interpolation model

Table 1: classTreeRingShape : TR
Data Slot R Qgis
Input P data frame of Tree Ring Points Points shape, field(id,ring)
P_filename shape file name of tree ring points *.shp
P_id.tag column name of id in shape file (P) default ‘id’
P_ring.tag column name of ring no.(ordinaly year,outermost=0) default ‘ring’
L list of Representative Tree Ring Lines Lines shape, field(ring)
L_filename shape file name for representative tree ring lines (L) *.shp
L_ring.tag column name of ring no.(ordinaly year,outermost=0) in shape file (L) default ‘ring’
L2_filename file name of shape file (L2) for tree ring lines interpolated *.shp
Append P00 x,y coordinates c(px00,py00) of tree ring center point id==0 in (P)
n_id number of radial measurement points
YR_P total number of tree rings
L_ data frame of x,y coordinates of representative tree rings
YR_L cumulative tree rings number(year) from 0 (cambium layer)
ln total number of representative tree rings, length(L)
n_YR total number of representative + interpolated tree rings
L2 list of All Tree Ring Lines including interpolated lines Lines shape, field(ring)
Function execution flow to make whole tree ring shapes. TreeRingShape() includes the procedure from new\_classTreeRingShape() to TreeRingInterpolation().

Figure 1: Function execution flow to make whole tree ring shapes. TreeRingShape() includes the procedure from new_classTreeRingShape() to TreeRingInterpolation().

In this study, the orthogonal coordinates with the pith as the origin are called “annulus coordinates”. From the cambium to the medulla, the ring coordinates of the 16 directions of radiation, cracks, and large changes in tree rings were set as XYring, XYp, XYcrack, and XYskew, respectively (Equation 1). The central angle (Equation 2) and the distance {D} from the medulla were calculated for all these ring coordinates XY (Equation \(\ref{eq:XY}\)).

\[\begin{align} XY=\{XY_{RING},XY_{CRACK},XY_P\} \label{eq:XY} \\ {\theta}=atan2(Y,X) \label{eq:atan2} \\ D=\sqrt{X^2+Y^2} \label{eq:sqrt} \\ {\Delta}D= Dring _{i’, j} -Dring _{i’+1, j} \label{eq:D} \\ rWi= (D _{i, j} -D _{i’, j})/{\Delta}D \label{eq:W} \end{align}\]

The shape of the tree rings is not a perfect circle but is distorted, but the tree rings between a certain range of tree rings tend to be parallel (photograph, figure). The relative tree ring width rW (formula) between the two tree rings, with the inner ring near the pith as 0 and the outer ring as 1, was calculated from the central angles of P coordinates. The spline curve was applied to the relationship between the central angle and the relative tree ring width, and the relative tree ring width at an arbitrary central angle was estimated. In applying the spline curve, a margin of 20 degrees was provided at the center angle for smoothing processing of the terminal part, and the margin was set in the range of -200 to 200 degrees. The coordinate value of the complementary tree ring was estimated by adding the difference D width estimated from the relative annulus width to the distance from the pith of the inner tree ring.

3 Procedures

3.1 Processing the Disc

3.2 Scanning the Entire Disc Image

3.3 Inputting tree Ring Coordinates Using 'Qgis'

4 Examples of analysis

4.1 A tree disk sampled

The sample of tree disk was collected at Mimatsu (1980 m above sea level) in Chubu Sangaku National Park, North Alps in central Japan.This tree was growing just 10m below the Alpen bus road, and fallen in 2018 by typhoon.

Figure 2: The sample of tree disk was collected at Mimatsu (1980 m above sea level) in Chubu Sangaku National Park, North Alps in central Japan.This tree was growing just 10m below the Alpen bus road, and fallen in 2018 by typhoon.

Inputting TreeRingPoints and TreeRingLines using the free GIS software Qgis.

Figure 3: Inputting TreeRingPoints and TreeRingLines using the free GIS software Qgis.

The sample of tree disk was collected at Mimatsu (1980 m above sea level) in Chubu Sangaku National Park, North Alps in central Japan.This tree was growing just 10m below the Alpen bus road, and fallen in 2018 by tyhoon(Figure 2).

The function establishes the class classTreeRingShape(Table 1 ) and executes the interpolation of tree rings to complete the tree ring shape data. Shapefiles operated by R package sf (Pebesma 2018).

Inputting TreeRingPoints and TreeRingLines using the free GIS software Qgis.

Figure 4: Inputting TreeRingPoints and TreeRingLines using the free GIS software Qgis.

Inputting TreeRingPoints and TreeRingLines using the free GIS software Qgis.

Figure 5: Inputting TreeRingPoints and TreeRingLines using the free GIS software Qgis.

Inputting TreeRingPoints and TreeRingLines using the free GIS software Qgis.

Figure 6: Inputting TreeRingPoints and TreeRingLines using the free GIS software Qgis.

Inputting TreeRingPoints and TreeRingLines using the free GIS software Qgis.

Figure 7: Inputting TreeRingPoints and TreeRingLines using the free GIS software Qgis.

Inputting TreeRingPoints and TreeRingLines using the free GIS software Qgis.

Figure 8: Inputting TreeRingPoints and TreeRingLines using the free GIS software Qgis.

5 Coclusion

It should be noted, however, that currently, information regarding the shape of the tree rings needs to be manually inputted, which can be labor-intensive.

6 Acknowledgements

I am grateful to the graduates of Gifu University: Yuta Nakano, Shintaro Nakayama, Akari Kitamura, Ryuhei Matsuda, and Tomoko Onodera, for their assistance with tree ring analysis using the ‘TreeRingShape’ scripts. My thanks also extend to Kenji Ogawa, Sio Fukunaga, Yusuke Hanada, Atsuya Yamamoto, Huricha, Moe Miura, Satoko Maeda, as well as Haruki Nakashima and Tetsu Ohmiya from Toyama Prefecture for their help with tree disk sampling. This research was partially funded by the Toyama Prefectural Government and the JSPS KAKENHI Grant Numbers JP23570030 and JP19H04281.

6.1 CRAN packages used

TreeRingShape, sf

6.2 CRAN Task Views implied by cited packages

Spatial, SpatioTemporal

G. von Arx and M. Carrer. Roxas -a new tool to build centuries-long tracheid-lumen chronologies in conifers. Dendrochronologia, 32(3): 290–293, 2014. URL https://linkinghub.elsevier.com/retrieve/pii/S1125786513000970 [online; last accessed March 13, 2019]. ISBN: 1125-7865.
A. G. Bunn. A dendrochronology program library in r (dplR). Dendrochronologia, 26(2): 115–124, 2008. DOI 10.1016/j.dendro.2008.01.002.
M. Cerda, N. Hitschfeld-Kahler and D. Mery. Robust tree-ring detection. Advances in Image and Video Technology, 575–585, 2007. DOI 10.1007/978-3-540-77129-6_50.
H. C. Fritts. Tree rings and climate. Elsevier, 2012.
P. Hietz. A simple program to measure and analyse tree rings using excel, r and SigmaScan. Dendrochronologia, 29(4): 245–250, 2011. URL http://dx.doi.org/10.1016/j.dendro.2010.11.002 [online; last accessed March 15, 2019]. Publisher: Elsevier GmbH. ISBN: 1125-7865.
M. Ishida. TreeRingShape: Recording tree-ring shapes of tree disks with manual digitizing and interpolating model. 2024. URL https://CRAN.R-project.org/package=TreeRingShape. R package version 3.0.3.
N. Latte, H. Beeckman, P. Lejeune, S. Bauwens, S. Bonnet and L. Philippe. A novel procedure to measure shrinkage-free tree-rings from very large wood samples combining photogrammetry, high-resolution image processing, and GIS tools. Dendrochronologia, 34: 24–28, 2015. URL http://dx.doi.org/10.1016/j.dendro.2015.03.002. Publisher: Elsevier GmbH.
S. L. Maes, A. Vannoppen, J. Altman, J. Van den Bulcke, G. Decocq, T. De Mil, L. Depauw, D. Landuyt, M. P. Perring, J. Van Acker, et al. Evaluating the robustness of three ring-width measurement methods for growth release reconstruction. Dendrochronologia, 46: 67–76, 2017. URL https://www.sciencedirect.com/science/article/pii/S1125786517300917 [online; last accessed March 26, 2019]. Publisher: Urban & Fischer.
K. Norell. Automatic counting of annual rings on pinus sylvestris end faces in sawmill industry. Computers and Electronics in Agriculture, 75(2): 231–237, 2011. URL http://dx.doi.org/10.1016/j.compag.2010.11.005. Publisher: Elsevier B.V.
E. Pebesma. Simple Features for R: Standardized Support for Spatial Vector Data. The R Journal, 10(1): 439–446, 2018. URL https://doi.org/10.32614/RJ-2018-009.
QGIS Development Team. QGIS geographic information system. Open Source Geospatial Foundation, 2009. URL http://qgis.org.
F. H. Schweingruber. Tree rings: Basics and applications of dendrochronology. Springer Science & Business Media, 2012.
P.-J. Shi, J.-G. Huang, C. Hui, H. D. Grissino-Mayer, J. C. Tardif, L.-H. Zhai, F.-S. Wang and B.-L. Li. Capturing spiral radial growth of conifers using the superellipse to model tree-ring geometric shape. Frontiers in Plant Science, 6: 856, 2015. URL http://journal.frontiersin.org/Article/10.3389/fpls.2015.00856/abstract [online; last accessed April 3, 2019]. Publisher: Frontiers.
P. Soille and L. Misson. Tree ring area measurements using morphological image analysis. Canadian Journal of Forest Research, 31(6): 1074–1083, 2001. URL http://www.nrcresearchpress.com/doi/10.1139/x01-025 [online; last accessed March 6, 2019]. Publisher: NRC Research Press.
B. Wagner, H. Gärtner, S. Santini and H. Ingensand. Dendrochronologia cross-sectional interpolation of annual rings within a 3D root model. Dendrochronologia, 29(4): 201–210, 2011. URL http://dx.doi.org/10.1016/j.dendro.2010.12.003. Publisher: Elsevier GmbH.
H. Zhou, R. Feng, H. Huang, E. Lin and J. Yu. Method of tree-ring image analysis for dendrochronology. Optical Engineering, 51(7): 77202, 2012. Publisher: International Society for Optics and Photonics.

References

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Ishida, et al., "TreeRingShape: An R Package to Record Tree-Ring Shape of Tree Disks with Manual Digitizing and Interpolating Model", The R Journal, 2024

BibTeX citation

@article{ishida2024,
  author = {Ishida, Megumi and Goto, Kanechika and Asahara, Sora and Nakashima, Haruki and Kume, Atsushi},
  title = {TreeRingShape: An R Package to Record Tree-Ring Shape of Tree Disks with Manual Digitizing and Interpolating Model},
  journal = {The R Journal},
  year = {2024},
  issn = {2073-4859},
  pages = {1}
}