Agronomists' C++ Toolkit: CWSI & Transpiration Biophysical Models

 

This post offers a starting point for sharing my embedded software code (GitHub repository: https://github.com/envitronicslab/CWSI_Function) in C/C++ used in a system you can learn more about here. While the full codebase needs some cleanup, I'm excited to share this initial, modular piece that calculates plant transpiration.

 


 

𝗞𝗲𝘆 𝗙𝗲𝗮𝘁𝘂𝗿𝗲𝘀

 𝗖𝗮𝗹𝗰𝘂𝗹𝗮𝘁𝗲𝘀 𝗮𝗰𝘁𝘂𝗮𝗹 (𝗧𝗮) 𝗮𝗻𝗱 𝗽𝗼𝘁𝗲𝗻𝘁𝗶𝗮𝗹 (𝗧𝗽) 𝘁𝗿𝗮𝗻𝘀𝗽𝗶𝗿𝗮𝘁𝗶𝗼𝗻: This code uses biophysical models to analyze microclimate and plant canopy surface temperature data to determine transpiration rates.

 𝗖𝗿𝗼𝗽 𝗪𝗮𝘁𝗲𝗿 𝗦𝘁𝗿𝗲𝘀𝘀 𝗜𝗻𝗱𝗲𝘅 (𝗖𝗪𝗦𝗜): Ta and Tp can be used further to calculate CWSI, an indicator of plant stress.

 𝗠𝗼𝗱𝘂𝗹𝗮𝗿 𝗮𝗻𝗱 𝗿𝗲𝘂𝘀𝗮𝗯𝗹𝗲: The code is well-organized with equations grouped within a class for easy integration into other projects.

 𝗘𝘅𝗮𝗺𝗽𝗹𝗲 𝗮𝗻𝗱 𝘁𝗲𝘀𝘁𝗶𝗻𝗴 𝗰𝗼𝗱𝗲: Additional code snippets are included in a separate module for demonstration and testing purposes.

𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻𝗮𝗹𝗶𝘁𝘆 𝗮𝗻𝗱 𝗡𝗲𝘅𝘁 𝗦𝘁𝗲𝗽𝘀

This code is functional but not optimized. Further cleanup is planned. While initially developed for embedded software, the core functionality is also available in VBA. For those less comfortable with C/C++, I can provide guidance on adapting this code to Python.


Comments

Popular posts from this blog

The Rise of the "Human Data Farms": A Satirical Look at the Future of AI

Understanding Plant Water Status: A Deeper Dive into VPD and Canopy Temperature

Leveraging Microclimate Data, Proximal Canopy Sensing, and Machine Learning for Precise Soil Water Potential Prediction