Skip to main content

ShadeMotion: tree shade patterns in coffee and cocoa agroforestry systems

Abstract

Shade trees in coffee and cocoa agroforestry systems provide valuable livelihoods and other ecosystem services. Unfortunately, most shade canopies are sub-optimally designed and managed and the reasons behind this sub-optimality are poorly known. There is evidence, however, indicating that farmers and extension agents lack both the knowledge and access to user-friendly tools to optimally design their shade canopies. To fill this gap, we developed ShadeMotion, a simple to parameterize, yet powerful software, capable of calculating the spatial and temporal distribution of the shade cast by trees on a plot (horizontal or tilted) anywhere on Earth. Trees may be planted in any spatial arrangement, their population density can change according to planting, thinning, mortality or harvest, tree crowns may take any of eight possible, regular, geometric shapes, vary in density and monthly leaf fall patterns, and may be pollarded or not. Shade patterns may be calculated for one instant, 1 year or less, or for the entire life cycle of a plantation; in the latter case, tree growth data must be added as input. Shade can be measured at ground level or at any height above the ground. In this article, we: (1) describe the key features of the software, and (2) simulate the spatial and temporal shade patterns of a traditional agroforestry system of Coffea arabica cv. Caturra, Erythrina poeppigiana and Cordia alliodora in Costa Rica. ShadeMotion can realistically model farm scenarios and may be used in the participatory design of agroforestry systems in farmers field schools and in classrooms.

This is a preview of subscription content, access via your institution.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5

References

  • Amthor JS (1994) Scaling CO2-photosynthesis relationships from the leaf to the canopy. Photosynthesis and global changes in the environment. Photosynth Res 39:321–350

    Article  CAS  Google Scholar 

  • Andrade HJ, Segura MA (2016) Dinámica de la sombra de Cordia alliodora en sistemas agroforestales con café en Tolima, Colombia. Agron Costarric 40(2):77–86

    Google Scholar 

  • Bartelink HH (1998) Radiation interception by forest trees: a simulation study on effects of stand density and foliage clustering on absorption and transmission. Ecol Model 105:213–225

    Article  Google Scholar 

  • Brunner A (1998) A light model for spatially explicit forest stand models. For Ecol Manag 107:19–46

    Article  Google Scholar 

  • Canham CD, Finzi AC, Pacala SW, Burbank DH (1994) Causes and consequences of resource heterogeneity in forests: interspecific variation in light transmission by canopy trees. Can J For Res 24:337–349

    Article  Google Scholar 

  • Cerda R, Deheuvels O, Calvache D, Niehaus L, Saenz Y, Kent J, Vilchez S, Villota A, Martinez C, Somarriba E (2014) Contribution of cocoa agroforestry systems to family income and domestic consumption: looking toward intensification. Agrofor Syst 88:957–981. https://doi.org/10.1007/s10457-014-9691-8

    Article  Google Scholar 

  • Cescatti A (1997) Modelling the radiative transfer in discontinuous canopies of asymmetric crowns.1. Model structure and algorithms. Ecol Model 101:263–274

    Article  Google Scholar 

  • Charbonnier F, le Maire G, Dreyer E, Casanoves F, Christina M, Dauzat J, Eitel JUH, Vaast P, Vierling LA, Roupsard O (2013) Competition for light in heterogeneous canopies: application of MAESTRA to a coffee (Coffea arabica L.) agroforestry system. Agric For Meteorol 181:152–169

    Article  Google Scholar 

  • Côté JF, Fournier RA, Egli R (2011) An architectural model of trees to estimate forest structural attributes using terrestrial LiDAR. Environ Model Softw 26(6):761–777. https://doi.org/10.1016/j.envsoft.2010.12.008

    Article  Google Scholar 

  • Da Silva D, Balandier P, Boudon F, Marquier A, Godin C (2011) Modeling of light transmission under heterogeneous forest canopy: an appraisal of the effect of the precision level of crown description. Ann For Sci. https://doi.org/10.1007/s13595-011-0139-2

    Article  Google Scholar 

  • de Pury DGG, Farquhar GD (1997) Simple scaling of photosynthesis from leaves to canopies without the errors of big-leaf models. Plant Cell Environ 20:537–557

    Article  Google Scholar 

  • Dupraz C, Wolz KJ, Lecomte I, Talbot G, Vincent G, Mulia R, Bussière F, Ozier-Lafontaine H, Andrianarisoa S, Jackson N, Lawson G, Dones N, Sinoquet H, Lusiana B, Harja D, Domenicano S, Reyes F, Gosme M, Van Noordwijk M (2019) Hi-sAFe: a 3D agroforestry model for integrating dynamic tree–crop interactions. Sustainability 11(8):2293. https://doi.org/10.3390/su11082293

    Article  Google Scholar 

  • Englund SR, O’Brien JJ, Clark DB (2000) Evaluation of digital and film hemispherical photography and spherical densiometry for measuring forest light environments. Can J For Res 30:1999–2005

    Article  Google Scholar 

  • Fiala ACS, Steven L, Garman SL, Gray AN (2006) Comparison of five canopy cover estimation techniques in the western Oregon Cascade Forest. Ecol Manag 232:188–197

    Article  Google Scholar 

  • Frazer GW, Fournier RA, Trofymow JA, Hall RJ (2001) A comparison of digital and film fisheye photography for analysis of forest canopy structure and gap light transmission. Agric For Meteorol 109:249–263

    Article  Google Scholar 

  • Gidey T, Oliveira TS, Crous-Duran J, Palma JHN (2019) Using the yield-SAFE model to assess the impacts of climate change on yield of coffee (Coffea arabica L.) under agroforestry and monoculture systems. Agrofor Syst 94(1):57–70. https://doi.org/10.1007/s10457-019-00369-5

    Article  Google Scholar 

  • Gidoin C, Avelino J, Deheuvels O, Cilas C, Ngo Bieng MA (2014) Shade tree spatial structure and pod production explain frosty pod rot intensity in cacao agroforests, Costa Rica. Phytopathology 104(3):275–281. https://doi.org/10.1094/PHYTO-07-13-0216-R

    Article  Google Scholar 

  • Greaves A, McCarter PS (1990) Cordia alliodora A promising tree for tropical agroforestry. Oxford Forestry Institute, University of Oxford, Tropial Forestry Papers No. 22, Oxford, UK. 37

  • Gren L, Antinyan V (2017) On the relation between unit testing and code quality. In: Euromicro conference on software engineering and advanced applications (SEAA2017), Vienna, Austria. https://doi.org/10.1109/SEAA.2017.36

  • Grimm V, Railsback SF, Vincenot CE, Berger U, Gallagher C, DeAngelis DL, Edmonds B, Ge J, Giske J, Groeneveld J, Johnston AS (2020) The ODD protocol for describing agent-based and other simulation models: a second update to improve clarity, replication, and structural realism. J Artif Soc Soc Simul 23(2):7. https://doi.org/10.18564/jasss.4259

    Article  Google Scholar 

  • Gu S, Wen W, Xu T, Lu X, Yu Z, Guo X, Zhao C (2022) Use of 3D modeling to refine predictions of canopy light utilization: a comparative study on canopy photosynthesis models with different dimensions. Front Plant Sci 13:735981. https://doi.org/10.3389/fpls.2022.735981

    Article  Google Scholar 

  • Guevara-Escobar A, Tellez J, Gonzalez-Sosa E (2005) Use of digital photography for analysis of canopy closure. Agrofor Syst 65:175–185

    Article  Google Scholar 

  • Hanan J (1997) Virtual plants—integrating architectural and physiological models. Environ Model Softw 12(1):35–42. https://doi.org/10.1016/S1364-8152(96)00040-0

    Article  Google Scholar 

  • Hilker T, Leeuwen M, Coops NC, Wulder MA, Newnham GJ, Jupp DL, Culvenor DS (2010) Comparing canopy metrics derived from terrestrial and airborne laser scanning in a Douglas-fir dominated forest stand. Trees 24:819–832

    Article  Google Scholar 

  • Hummel S (2000) Height, diameter and crown dimensions of Cordia alliodora associated with tree density. For Ecol Manag 127:31–40

    Article  Google Scholar 

  • Jonckheere I, Fleck S, Nackaerts K, Muys B, Coppin P, Weiss M, Baret F (2004) Review of methods for in situ leaf area index determination. Part I. Theories, sensors and hemispherical photography. Agric For Meteorol 121(1/2):19–35

    Article  Google Scholar 

  • Kato A, Moskal LM, Schiess P, Swanson ME, Calhoun D, Stuetzle W (2009) Capturing tree crown formation through implicit surface reconstruction using airborne lidar data. Remote Sens Environ 113:1148–1162

    Article  Google Scholar 

  • Korhonen L, Korhonen KT, Rautiainen M, Stenberg P (2006) Estimation of forest canopy cover: a comparison of field measurement techniques. Silva Fenn 40(4):577–588

    Article  Google Scholar 

  • Kuuluvainen T, Pukkula T (1987) Effect of crown shape and tree distribution on the spatial distribution of shade. Agric For Meteorol 40:215–231

    Article  Google Scholar 

  • Läderach P, Ramirez-Villegas J, Navarro-Racines C et al (2017) Climate change adaptation of coffee production in space and time. Clim Change 141:47–62. https://doi.org/10.1007/s10584-016-1788-9

    Article  Google Scholar 

  • Lamanda N, Dauzat J, Jourdan C, Martin P, Malezieux E (2008) Using 3D architectural models to assess light availability and root bulkiness in coconut agroforestry systems. Agrofor Syst 72:63–74. https://doi.org/10.1007/s10457-007-9068-3

    Article  Google Scholar 

  • Leroy C, Sabatier S, Sari N, Wahyuni S, Barczi J, Dauzat J, Laurans M, Auclair D (2009) Virtual trees and light capture: a method for optimizing agroforestry stand design. Agrofor Syst 77:37–47

    Article  Google Scholar 

  • Lieffers VJ, Messier C, Stadt KJ, Gendron F, Corneau PG (1999) Predicting and managing light in the understory of boreal forests. Can J For Res 29(6):796–811

    Article  Google Scholar 

  • Llanderal T (1998) Diversidad del dosel de sombra en cafetales de Turrialba, Costa Rica. Thesis Mag. Sci., CATIE, Turrialba, Costa Rica, p 59

  • Luján-Ferrer R (1992) Dinámica de doseles de tres especies de leguminosas de sombra y efectos sobre la fenología de seis cruces interclonales de cacao. Thesis Mag. Sci., CATIE, Turrialba, Costa Rica, p 101

  • McPherson EG, Rowntree RA (1988) Geometric solids for simulation of tree crowns. Landsc Urban Plan 15:79–83

    Article  Google Scholar 

  • Mialet-Serra I, Dauzat J, Auclair D (2001) Using plant architectural models for estimation of radiation transfer in a coconut-based agroforestry system. Agrofor Syst 53:141–149

    Article  Google Scholar 

  • Norman JM, Jarvis PG (1975) Photosynthesis in Sitka spruce (Picea sitchensis (Bong.) Carr.). V. Radiation penetration theory and a test case. J Appl Ecol 9:747–766

    Google Scholar 

  • Nygren P (1995) Carbon and nitrogen dynamics in Erythrina poeppigiana (Leguminosae: phaseoleae) trees managed by periodic prunings. PhD Dissertation, University of Helsinki, Helsinki, Finland, p 61

  • Orozco-Aguilar L, López-Sampson A, Leandro ME, Robiglio V, Reyes M, Bordeaux M, Sepulveda N, Somarriba E (2021) Elucidating pathways and discourses linking cocoa cultivation to deforestation, reforestation and tree cover change in Nicaragua and Peru. Front Sustain Food Syst. https://doi.org/10.3389/fsufs.2021.635779

    Article  Google Scholar 

  • Parresol BR, Devall MS (2013) Patterns of diametric growth in stem-analyzed laurel trees (Cordia alliodora) in a Panamanian forest. Southwest Nat 58(2):170–178

    Article  Google Scholar 

  • Pinoargote M, Cerda R, Mercado L, Aguilar A, Barrios M, Somarriba E (2017) Carbon stocks, net cash flow and family benefits from four small coffee plantation types in Nicaragua. For Trees Livelihoods 26(3):183–198. https://doi.org/10.1080/14728028.2016.1268544

    Article  Google Scholar 

  • Pukkala T, Kuuluvainen T, Stenberg P (1993) Below-canopy distribution of photosynthetically active radiation and its relation to seedling growth in a boreal Pinus sylvestris stand: a simulation approach. Scand J For Res 8:313–325

    Article  Google Scholar 

  • Quesada-Chaverri F (2021) Derivación de las fórmulas de sombras de árboles empleadas en el programa ShadeMotion. Serie Técnica Manual Técnico 151, CATIE, Turrialba, Costa Rica, p 35. http://hdl.handle.net/11554/11358

  • Rautiainen M, Mõttus M, Stenberg P, Ervasti S (2008) Crown envelope shape measurements and models. Silva Fenn 42(1):19–33

    Article  Google Scholar 

  • Reddy PR, Amarnadh V, Bhaskar M (2012) Evaluation of stopping criterion in contour tracing algorithms. Int J Comput Sci Inform Technol 3(3):3888–3894

    Google Scholar 

  • Roupsard O, Dauzat J, Nouvellon Y, Deveau A, Feintrenie L, Saint- André L, Mialet-Serra I, Braconnier S, Bonnefond JM, Berbigier P, Epron D, Jourdan C, Navarro M, Bouillet JP (2008) Cross-validating Sun-shade and 3D models of light absorption by a tree-crop canopy. Agric For Meteorolgy 148:549–564

    Article  Google Scholar 

  • Russo RO (1984) Studies on Erythrina poeppigiana (Walpers) O.F. Cook, a versatile tree in Costa Rican farms. PhD Dissertation, Southeastern University, New Orleans, Louisiana, USA, p 131

  • Sampson DA, Smith FW (1993) Influence of canopy architecture on light penetration in lodgepole pine (Pinus contorta var. latifolia) forests. Agric For Meteorol 64:63–79

    Article  Google Scholar 

  • Seidel D, Fleck S, Leuschner C (2012) Analyzing forest canopies with ground-based laser scanning: a comparison with hemispherical photography. Agric For Meteorol 154–155:1–8

    Article  Google Scholar 

  • Sellers WD (1965) Physical climatology. Chicago University Press, Chicago, p 272

    Google Scholar 

  • Sharma P, Diwakar M, Lal N (2013) Edge detection using moore neighborhood. Int J Comput Appl 61(3):26–30

    Google Scholar 

  • Silva C, Orozco L, Rayment M, Somarriba E (2013) Conocimiento local sobre los atributos deseables de los árboles y el manejo del dosel de sombra en los cacaotales de Waslala, Nicaragua. Agrofor Am 49:51–60

    Google Scholar 

  • Sinoquet H, Le Roux X, Adam B, Ameglio T, Daudet FA (2002) RATP: a model for simulating the spatial distribution of radiation absorption, transpiration and photosynthesis within canopies: application to an isolated tree crown. Plant Cell Environ 24:395–406

    Article  Google Scholar 

  • Sinoquet H, Stephan J, Sonohat G, Lauri PE, Monney Ph (2007) Simple equations to estimate light interception by isolated trees from canopy structure features: assessment with three-dimensional digitized apple trees. New Phytol 175:94–106

    Article  CAS  Google Scholar 

  • Somarriba E, Beer J (1987) Dimensions, volumes, and growth of Cordia alliodora in agroforestry systems. For Ecol Manag 18:113–126

    Article  Google Scholar 

  • Somarriba E, Valdivieso R, Vásquez W, Galloway G (2001) Survival, growth, timber productivity and site index of Cordia alliodora in forestry and agroforestry systems. Agrofor Syst 51:111–118

    Article  Google Scholar 

  • Somarriba E, Zamora R, González J, Malek M, Vargas E, Sinclair F, Quesada F (2020) ShadeMotion: the análisis of tree shade patterns. Tutorial. CATIE, Serie técnica. Manual técnico 145, CATIE, Turrialba, Costa Rica, p 50. www.shademotion.net

  • Stadt KJ, Lieffers VJ (2000) MIXLIGHT: a flexible light transmission model for mixed-species forest stands. Agric For Meteorol 102:235–252

    Article  Google Scholar 

  • Suárez Salazar JC, Ngo Bieng MA, Melgarejo LM, Di Rienzo JA, Casanoves F (2018) First typology of cacao (Theobroma cacao L.) systems in Colombian Amazonia, based on tree species richness, canopy structure and light availability. PLoS ONE 13(2):e0191003

    Article  Google Scholar 

  • Ter-Mikaelian MT, Wagner RG, Shropshire C, Bell FW, Swanton CJ (1997) Using a mechanistic model to evaluate sampling designs for light transmission through forest canopies. Can J For Res 27:117–126

    Article  Google Scholar 

  • Van Noordwijk M, Lusiana B (1999) WaNuLCAS, a model of water, nutrient and light capture in agroforestry systems. Agrofor Syst 43:217–242

    Article  Google Scholar 

  • Van Noordwijk M, Ong CK (1999) Can the ecosystem mimic hypotheses be applied to farms in African savannhas? Agrofor Syst 45(1):131–158

    Article  Google Scholar 

  • Vezy R, le Maire G, Christina M, Georgiou S, Imbach P, Hidalgo HG, Alfaro EJ, Blitz-Frayret C, Charbonnier F, Lehner P, Loustau D, Roupsard O (2020) DynACof: a process-based model to study growth, yield and ecosystem services of coffee agroforestry systems. Environ Model Softw 124:104609. https://doi.org/10.1016/j.envsoft.2019.104609

    Article  Google Scholar 

  • Vincent G, Harja D (2002) SLIM software: a simple light interception model for multi-species, multi-strata forests. Bois For Trop 272(2):97–100

    Google Scholar 

  • Vincent G, Harja D (2008) Exploring ecological significance of tree crown plasticity through three-dimensional modelling. Ann Bot 101:1221–1231

    Article  CAS  Google Scholar 

  • Wang YP, Jarvis PG (1990) Description and validation of an array model—MAESTRO. Agric For Meteorol 51:257–280

    Article  Google Scholar 

  • Weiss M, Baret F, Smith GJ, Jonckheere I, Coppin P (2004) Review of methods for in situ leaf area index (LAI) determination. Agric For Meteorol 121(1–2):37–53. https://doi.org/10.1016/j.agrformet.2003.08.001

    Article  Google Scholar 

Download references

Acknowledgements

This work was supported by the CGIAR’s research program on Forests, Trees, and Agroforestry (FTA), CATIE (Centro Agronómico Tropical de Investigación y Enseñanza), the Montpellier Advanced Knowledge Institute on Transitions (MAK’IT), and the Centre de cooperation International en Recherche Agronomique pour le Developpement (CIRAD-UMR-ABsys). Luis Orozco and two anonymous reviewers provided useful comments on the manuscript.

Author information

Authors and Affiliations

Authors

Contributions

ES and FLS defined the scope for applications in agroforestry, RZ and JB developed and programmed the software, FQ developed the mathematics. ES detailed the coffee-based agroforestry system used as an example of the application of the software.

Corresponding author

Correspondence to Eduardo Somarriba.

Ethics declarations

Conflict of interest

The authors have no relevant financial or non-financial interests to disclose, no competing interests, no proprietary interests in any material discussed in this article.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Appendix 1. Analytic expressions of tree crown shadows

Appendix 1. Analytic expressions of tree crown shadows

Horizontal terrains

Following values are common to crown shapes in horizontal terrains.

$$X = (x - x_{0} )cos\left( Z \right) - (y - y_{0} )sen\left( Z \right)$$
$$Y = (x - x_{0} )sen\left( Z \right) + (y - y_{0} )cos\left( Z \right)$$

For crowns with system SRA located at the center of the crown: spheres and ellipses:

$$x_{0} = x_{a} + (T + h - m)cotan\left( {elev} \right)sen\left( Z \right)$$
$$y_{0} = y_{a} + \, (T + h - m)cotan\left( {elev} \right)cos\left( Z \right)$$
$$Z = azim + 180 - Y^{ + }$$

For crowns with system SRA located at the base of the crown: semi-spheres, semi-ellipses, cones, inverted cones, cyllinders and umbrellas:

$$x_{0} = x_{a} + (T - m)cotan\left( {elev} \right)sen\left( Z \right)$$
$$y_{0} = y_{a} + (T - m)cotan\left( {elev} \right)cos\left( Z \right)$$
$$Z = azim + 180 - Y^{ + }$$

With xa, ya being the Cartesian coordinates where the tree is planted in the terrain (SRU Cartesian coordinate System), azim is the suns azimuth, and Y + is the angle (clockwise) between the Y-axis and the north, a is half-diameter of the tree crown, H is the height of the crown, h is half crown height, and (x0, y0) are the Cartesian coordinates of the origin of the SRB reference system in SRU. A grid cell with coordinates X, Y is shaded by a tree crown if it satisfies at least one of the systems of inequalities describing a tree crown shadow.

Spheres

$$X^{2} + \left( {Y\;sen\left( {elev} \right)} \right)^{2} \le a^{2}$$

Ellipsoids

$$\frac{{X^{2} }}{{a^{2} }} + \frac{{Y^{2} }}{{\left( {h\;cotan\left( {elev} \right)} \right)^{2} + a^{2} }}$$

Semi-spheres

$$\begin{aligned} & \left\{ {\begin{array}{*{20}l} {X^{2} + \left( {Y\;sen\left( {elev} \right)} \right)^{2} \le a^{2} } \hfill \\ {Y \ge 0} \hfill \\ \end{array} } \right. \\ & X^{2} + Y^{2} \le a^{2} \\ \end{aligned}$$

Semi-ellipsoids

$$\begin{gathered} \left\{ {\begin{array}{*{20}l} {\frac{{X^{2} }}{{a^{2} }} + \frac{{Y^{2} }}{{\left( {H*cotan\left( {elev} \right)} \right)^{2} }} \le 1} \hfill \\ {Y \ge 0} \hfill \\ \end{array} } \right. \hfill \\ X^{2} + Y^{2} \le 0 \hfill \\ \end{gathered}$$

Cones

$$\begin{aligned} & \left\{ {\begin{array}{*{20}l} {Y \le \frac{{H\;cotan\left( {elev} \right)}}{a}X + H\;cotan\left( {elev} \right)} \hfill \\ {Y \le - \frac{{H\;cotan\left( {elev} \right)}}{a}X + H\;cotan\left( {elev} \right)} \hfill \\ {Y \ge 0} \hfill \\ \end{array} } \right. \\ & X^{2} + Y^{2} \le a^{2} \\ \end{aligned}$$

Inverted cones

$$\begin{aligned} & \left\{ {\begin{array}{*{20}l} {Y \ge \frac{{H\;cotan\left( {elev} \right)}}{a}X} \hfill \\ {Y \ge - \frac{{H\;cotan\left( {elev} \right)}}{a}X} \hfill \\ {Y \le H\;cotan\left( {elev} \right)} \hfill \\ \end{array} } \right. \\ & X^{2} + \left( {Y - H\;cotan\left( {elev} \right)} \right)^{2} \le a^{2} \\ \end{aligned}$$

Cylinders

$$\begin{aligned} & \left\{ {\begin{array}{*{20}l} {Y \le H\;cotan\left( {elev} \right)} \hfill \\ {Y \ge 0} \hfill \\ {X \le a} \hfill \\ {X \ge - a} \hfill \\ \end{array} } \right. \\ & X^{2} + Y^{2} \le a^{2} \\ & X^{2} + \left( {Y - H\;cotan\left( {elev} \right)} \right)^{2} \le a^{2} \\ \end{aligned}$$

Umbrellas (cap of sphere)

An umbrella can be modeled by a flattened semi-ellipsoid that looks like a circle when viewed from above.

Tilted terrains

Inequalities presented for all crown shapes in horizontal terrains are valid in tilted terrains with the following modifications:

$$X = \left( {x \, - x_{0} } \right)cos\left( Z \right) - \left( {y - y_{0} } \right)sen\left( Z \right)cos\left( \sigma \right)$$
$$Y = \left( {x - x_{0} } \right)sen\left( Z \right) + \left( {y - y_{0} } \right)cos\left( Z \right)cos\left( \sigma \right)$$

For crowns with system SRA located at the center of the crown: spheres and ellipses:

$$x_{0} = x_{a} + \left( {T + h - m} \right)cotan\left( {elev} \right)sen\left( Z \right)$$
$$y_{0} = y_{a} + \, \left( {T + h - m} \right)cotan\left( {elev} \right)cos\left( Z \right)$$
$$Z = azim + 180 - \delta$$

For crowns with system SRA located at the base of the crown: semi-spheres, semi-ellipses, cones, inverted cones, cyllinders and umbrellas:

$$x_{0} = x_{a} + \left( {T + - m} \right)cotan\left( {elev} \right)sen\left( Z \right)$$
$$y_{0} = y_{a} + \left( {T + - m} \right)cotan\left( {elev} \right)cos\left( Z \right)$$
$$Z = azim + 180 - \delta$$

where σ is the angle of maximum slope of the terrain and δ the angle of orientation of the positive Y+ axis, which is aligned along the maximum slope of the terrain.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and Permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Somarriba, E., Zamora, R., Barrantes, J. et al. ShadeMotion: tree shade patterns in coffee and cocoa agroforestry systems. Agroforest Syst 97, 31–44 (2023). https://doi.org/10.1007/s10457-022-00784-1

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10457-022-00784-1

Keywords

  • Software
  • Simulation
  • Tree crowns
  • Shade levels
  • Shade density maps
  • Shade temporal dynamics