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.





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
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
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
Brunner A (1998) A light model for spatially explicit forest stand models. For Ecol Manag 107:19–46
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
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
Cescatti A (1997) Modelling the radiative transfer in discontinuous canopies of asymmetric crowns.1. Model structure and algorithms. Ecol Model 101:263–274
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
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
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
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
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
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
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
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
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
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
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
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
Guevara-Escobar A, Tellez J, Gonzalez-Sosa E (2005) Use of digital photography for analysis of canopy closure. Agrofor Syst 65:175–185
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
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
Hummel S (2000) Height, diameter and crown dimensions of Cordia alliodora associated with tree density. For Ecol Manag 127:31–40
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
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
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
Kuuluvainen T, Pukkula T (1987) Effect of crown shape and tree distribution on the spatial distribution of shade. Agric For Meteorol 40:215–231
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Sellers WD (1965) Physical climatology. Chicago University Press, Chicago, p 272
Sharma P, Diwakar M, Lal N (2013) Edge detection using moore neighborhood. Int J Comput Appl 61(3):26–30
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
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
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
Somarriba E, Beer J (1987) Dimensions, volumes, and growth of Cordia alliodora in agroforestry systems. For Ecol Manag 18:113–126
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
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
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
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
Van Noordwijk M, Lusiana B (1999) WaNuLCAS, a model of water, nutrient and light capture in agroforestry systems. Agrofor Syst 43:217–242
Van Noordwijk M, Ong CK (1999) Can the ecosystem mimic hypotheses be applied to farms in African savannhas? Agrofor Syst 45(1):131–158
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
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
Vincent G, Harja D (2008) Exploring ecological significance of tree crown plasticity through three-dimensional modelling. Ann Bot 101:1221–1231
Wang YP, Jarvis PG (1990) Description and validation of an array model—MAESTRO. Agric For Meteorol 51:257–280
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
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
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
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.
For crowns with system SRA located at the center of the crown: spheres and ellipses:
For crowns with system SRA located at the base of the crown: semi-spheres, semi-ellipses, cones, inverted cones, cyllinders and umbrellas:
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
Ellipsoids
Semi-spheres
Semi-ellipsoids
Cones
Inverted cones
Cylinders
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:
For crowns with system SRA located at the center of the crown: spheres and ellipses:
For crowns with system SRA located at the base of the crown: semi-spheres, semi-ellipses, cones, inverted cones, cyllinders and umbrellas:
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.
About this article
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
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