Click on image to view larger version.

Fig. 3. Flow-chart of the program. The initial values of soil parameters are given to the program. Then values of measured ambient air CO2 concentration, soil temperature and soil moisture of each soil layer are imported from the data file. First, the CO2 flux between the layers is calculated. Next the respiration of each soil layer is calculated. Then new values for CO2 concentrations in each layer are obtained using calculated respiration and flux values. New ambient air CO2 concentration, temperature, and moisture values are imported from the data file until the end of the file has been reached.