1 Introduction

Carbon dioxide (CO\(_2\)) and water vapour (H\(_2\)O) fluxes are currently measured through several networks of eddy-covariance (EC) stations around the world Baldocchi et al. (2001). The EC technique is based on high-frequency (10–20 Hz) measurements of wind velocity as well as CO\(_2\) and H\(_2\)O concentrations at a point over the canopy using a three-axis sonic anemometer and a fast response infrared gas analyzer. Assuming perfect turbulent mixing, these measurements are typically averaged over periods of 0.5–1 h, forming the basis of calculating carbon and water balances from daily to annual time scales.

For the purpose of ecosystem studies and modelling, the calculated fluxes from EC data need to be partitioned into their main components: evaporation and transpiration for water vapour and photosynthesis and respiration for carbon dioxide. There are several methods to reach this target (see Reichstein et al. 2012 for more details and references). The standard approaches (i.e. those used in FLUXNET) are based on the use of only filtered nighttime data to directly measure the respiration flux (Reichstein et al. 2005). Other methods use both daytime and nighttime data or only daytime data, using light response curves (Lasslop et al. 2010). Both methods are combined to obtain the partition of net ecosystem exchange of CO\(_2\) (NEE) into gross primary production (GPP) and ecosystem respiration (\(R_\mathrm{eco}\)).

A challenge in partitioning is the estimate of assimilation and respiration using only high-frequency EC measurements as proposed recently by Scanlon and Sahu (2008) (hereafter called SS08) and Scanlon and Kustas (2010). This approach is based on the argument that the high-frequency flux data contain more information about the source of fluxes and assimilation respiration dynamics than is commonly acknowledged. SS08 applied flux-variance Monin-Obukhov similarity theory (MOST) separately to the stomatal (i.e. photosynthesis and transpiration) and non-stomatal processes. They provided an analytical expression based on the leaf-level water-use efficiency (\(W\)) for a given crop to partition both carbon dioxide (\(F_\mathrm{c}\)) and water vapour (\(F_q\)) fluxes. Therefore, it should be sufficient to measure CO\(_2\) and H\(_2\)O concentrations in order to have the partitioned fluxes at the same time scale.

To our knowledge, despite this method seeming very promising, it has been scarcely used for practical application up to now (Reichstein et al. 2012). The reasons may be related to the computational complexity or to the awkwardness of some mathematical steps in its realization. In this note we report a critical revision of the method proposed by SS08 in order to stress the critical points and to increase the practical applicability of the method.

2 The Proposal of Scanlon and Sahu (2008)

Let us start with several definitions: the fluctuations of the water vapour (\(q^{\prime }\)) and carbon dioxide (\(c^{\prime }\)) scalar atmospheric concentrations measured over the crop can be partitioned into transpiration (\(q^{\prime }_\mathrm{t}\)), evaporation (\(q^{\prime }_\mathrm{e}\)), photosynthesis (\(c^{\prime }_\mathrm{p}\)) and respiration (\(c^{\prime }_\mathrm{r}\)) components resulting in the following

$$\begin{aligned} c^{\prime }= c^{\prime }_\mathrm{p} + c^{\prime }_\mathrm{r}, \end{aligned}$$
(1)
$$\begin{aligned} q^{\prime }= q^{\prime }_\mathrm{t} + q^{\prime }_\mathrm{e}. \end{aligned}$$
(2)

The \(q^{\prime }_\mathrm{t}\) and \(c^{\prime }_\mathrm{p}\) components are linked to the water-use efficiency (\(W\)) of the crop under examination by

$$\begin{aligned} c^{\prime }_\mathrm{p} = W \,q^{\prime }_\mathrm{t}. \end{aligned}$$
(3)

Notice that with this definition we have \(W<0\). Let \(\sigma _{q^{\prime }_\mathrm{t}}\), \(\sigma _{q^{\prime }_\mathrm{e}}\), \(\sigma _{c^{\prime }_\mathrm{p}}\), \(\sigma _{c^{\prime }_\mathrm{r}}\) be the associated standard deviations given by \(\sigma _{q^{\prime }_\mathrm{e}} = \langle q^{\prime 2}_\mathrm{e} \rangle ^{1/2}, \sigma _{c^{\prime }_\mathrm{r}} = \langle c^{\prime 2}_\mathrm{r} \rangle ^{1/2}\), \(\sigma _{q^{\prime }_\mathrm{t}} = \langle q^{\prime 2}_\mathrm{t} \rangle ^{1/2}, \sigma _{c^{\prime }_\mathrm{p}} = \langle c^{\prime 2}_\mathrm{p} \rangle ^{1/2}\), where \(\langle \cdot \rangle \) denotes the time averaging over a time interval of 0.5–1 h. Then we have

$$\begin{aligned} \sigma _{c^{\prime }_\mathrm{p}}&= - W\,\sigma _{q^{\prime }_\mathrm{t}}, \end{aligned}$$
(4)
$$\begin{aligned} \quad \sigma ^2_{c^{\prime }_\mathrm{p}}&= W^2 \sigma ^2_{q^{\prime }_\mathrm{t}} . \end{aligned}$$
(5)

The same approach can be used to partition turbulent fluxes (without the density terms)

$$\begin{aligned} F_q&= \langle w^{\prime } q^{\prime }\rangle = \langle w^{\prime } q^{\prime }_\mathrm{t} \rangle + \langle w^{\prime } q^{\prime }_\mathrm{e} \rangle ,\end{aligned}$$
(6)
$$\begin{aligned} F_\mathrm{c}&= \langle w^{\prime } c^{\prime }\rangle = \langle w^{\prime } c^{\prime }_\mathrm{p} \rangle + \langle w^{\prime } c^{\prime }_\mathrm{r} \rangle = W \langle w^{\prime } q^{\prime }_\mathrm{t} \rangle + \langle w^{\prime } c^{\prime }_\mathrm{r} \rangle , \end{aligned}$$
(7)

where \(w^{\prime }\) is the vertical velocity fluctuation and, as before, \(\langle \cdot \rangle \) stands for the time-averaging procedure over a time interval of 0.5–1 h.

At this point, SS08 introduced the main approximations of the whole method, namely

$$\begin{aligned} \rho _{q^{\prime }_\mathrm{t}, q^{\prime }_\mathrm{e}} \equiv \frac{\langle q^{\prime }_\mathrm{t} q^{\prime }_\mathrm{e}\rangle }{ \sigma _{q^{\prime }_\mathrm{t}} \sigma _{q^{\prime }_\mathrm{e}}} \simeq \frac{\rho _{w^{\prime }, q^{\prime }_\mathrm{e}}}{\rho _{w^{\prime }, q^{\prime }_\mathrm{t}}} = \frac{\langle w^{\prime } q^{\prime }_\mathrm{e}\rangle }{\langle w^{\prime } q^{\prime }_\mathrm{t}\rangle } \frac{\sigma _{q^{\prime }_\mathrm{t}}}{\sigma _{q^{\prime }_\mathrm{e}}} ,\end{aligned}$$
(8)
$$\begin{aligned} \rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}} \equiv \frac{\langle c^{\prime }_\mathrm{p} c^{\prime }_\mathrm{r}\rangle }{ \sigma _{c^{\prime }_\mathrm{p}} \sigma _{c^{\prime }_\mathrm{r}}} \simeq \frac{\rho _{w^{\prime }, c^{\prime }_\mathrm{r}}}{\rho _{w^{\prime }, c^{\prime }_\mathrm{p}}} = \frac{\langle w^{\prime } c^{\prime }_\mathrm{r}\rangle }{\langle w^{\prime } c^{\prime }_\mathrm{p}\rangle } \frac{\sigma _{c^{\prime }_\mathrm{p}}}{\sigma _{c^{\prime }_\mathrm{r}}} . \end{aligned}$$
(9)

These approximations are proposed and discussed in Katul et al. (1995, 1996) and Bink and Meesters (1997).

The physical mechanism underlying the definition of the different fluxes allows us to obtain the correlation between their components, namely

$$\begin{aligned} \rho _{q^{\prime }_\mathrm{t}, c^{\prime }_\mathrm{p}} = -1,\end{aligned}$$
(10)
$$\begin{aligned} \rho _{q^{\prime }_\mathrm{e}, c^{\prime }_\mathrm{r}} = +1, \end{aligned}$$
(11)
$$\begin{aligned} \rho _{q^{\prime }_\mathrm{t}, q^{\prime }_\mathrm{e}} = -\rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}}. \end{aligned}$$
(12)

Following SS08, the variances of \(q^{\prime }\) and \(c^{\prime }\) are defined as

$$\begin{aligned} \sigma _{q^{\prime }}^2 = \sigma _{q^{\prime }_\mathrm{t}}^2 + \sigma _{q^{\prime }_\mathrm{e}}^2 + 2 \rho _{q^{\prime }_\mathrm{t}, q^{\prime }_\mathrm{e}} \sigma _{q^{\prime }_\mathrm{t}} \sigma _{q^{\prime }_\mathrm{e}},\end{aligned}$$
(13)
$$\begin{aligned} \sigma _{c^{\prime }}^2 = \sigma _{c^{\prime }_\mathrm{p}}^2 + \sigma _{c^{\prime }_\mathrm{r}}^2 + 2 \rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}} \sigma _{c^{\prime }_\mathrm{p}} \sigma _{c^{\prime }_\mathrm{r}}, \end{aligned}$$
(14)

which, by substituting from Eqs. 5, 8 and 9, become

$$\begin{aligned} \sigma _{q^{\prime }}^2&= \frac{1}{ W^2} \sigma _{c^{\prime }_\mathrm{p}}^2 + \left[ \frac{\langle w^{\prime } q^{\prime }_\mathrm{e} \rangle }{\langle w^{\prime } q^{\prime }_\mathrm{t} \rangle } \right] ^2 \frac{\sigma _{c^{\prime }_\mathrm{p}}^2}{ W^2 \rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}}^2} + 2 \frac{\sigma _{c^{\prime }_\mathrm{p}}^2}{W^2} \frac{\langle w^{\prime } q^{\prime }_\mathrm{e} \rangle }{\langle w^{\prime } q^{\prime }_\mathrm{t} \rangle }, \end{aligned}$$
(15)
$$\begin{aligned} \sigma _{c^{\prime }}^2&= \sigma _{c^{\prime }_\mathrm{p}}^2 + \left[ \frac{\langle w^{\prime } c^{\prime }_\mathrm{r} \rangle }{\langle w^{\prime } c^{\prime }_\mathrm{p} \rangle } \right] ^2 \frac{\sigma _{c^{\prime }_\mathrm{p}}^2}{\rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}}^2} + 2 \sigma _{c^{\prime }_\mathrm{p}}^2 \frac{\langle w^{\prime } c^{\prime }_\mathrm{r} \rangle }{\langle w^{\prime } c^{\prime }_\mathrm{p} \rangle }. \end{aligned}$$
(16)

Defining \(\tilde{q} \equiv \frac{\langle w^{\prime } q^{\prime }_\mathrm{e} \rangle }{ \langle w^{\prime } q^{\prime }_\mathrm{t} \rangle }\) and \( \tilde{c} \equiv \frac{\langle w^{\prime } c^{\prime }_\mathrm{r} \rangle }{ \langle w^{\prime } c^{\prime }_\mathrm{p} \rangle }\), Eqs. 15 and 16 can be written, respectively, as

$$\begin{aligned} \frac{\tilde{q}^2}{\rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}}^2} + 2 \tilde{q} + 1 - \left( \frac{\sigma _{q^{\prime }} W}{\sigma _{c^{\prime }_\mathrm{p}}} \right) ^2 = 0, \end{aligned}$$
(17)
$$\begin{aligned} \frac{\tilde{c}^2}{\rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}}^2} + 2 \tilde{c} + 1 - \left( \frac{\sigma _{c^{\prime }}}{\sigma _{c^{\prime }_\mathrm{p}}} \right) ^2 = 0, \end{aligned}$$
(18)

which are both in quadratic form. By rearranging Eqs. 6 and 7, we obtain respectively

$$\begin{aligned} \langle w^{\prime } q^{\prime }_\mathrm{t}\rangle = \frac{\langle w^{\prime } q^{\prime }\rangle }{1 + \tilde{q}_\pm }, \end{aligned}$$
(19)
$$\begin{aligned} \langle w^{\prime } c^{\prime }_\mathrm{p}\rangle = \frac{\langle w^{\prime } c^{\prime }\rangle }{1 + \tilde{c}_\pm }, \end{aligned}$$
(20)

where the subscript \(\pm \) denotes one of the two possible solutions resulting from the quadratic forms. Since \(W = \frac{\langle w^{\prime } c^{\prime }_\mathrm{p} \rangle }{\langle w^{\prime } q^{\prime }_\mathrm{t}\rangle }\), by substituting from Eqs. 19 and 20 we obtain

$$\begin{aligned} W = \frac{\langle w^{\prime } c^{\prime }\rangle }{\langle w^{\prime } q^{\prime }\rangle } \frac{1 +\tilde{q}_\pm }{1 + \tilde{c}_\pm }, \end{aligned}$$
(21)

which is equivalent to Eq. 15 reported in SS08, and where \(W\), \(\rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}}\) and \(\sigma _{c^{\prime }_\mathrm{p}}\) are the only variables that are not directly measured by eddy correlation. By Eq. 21, given an estimate of the \(W\), we are able to establish the relationships between \(\rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}}\) and \(\sigma _{c^{\prime }_\mathrm{p}}\), in particular confining \(\rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}}\) to the physically meaningful range \(-1 \le \rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}} \le 0\). For each pair of values, it is therefore possible to solve Eqs. 17 and 18 and to find the individual flux components from Eqs. 19 and 20. Only physically meaningful values of these components are considered (i.e. \(\langle w^{\prime } q^{\prime }_\mathrm{t}\rangle \ge 0, \langle w^{\prime } q^{\prime }_\mathrm{e}\rangle \ge 0, \langle w^{\prime } c^{\prime }_\mathrm{p}\rangle \le 0, \langle w^{\prime } c^{\prime }_\mathrm{r}\rangle \ge 0\)).

Since Eq. 21 has two unknowns, to solve the system another equation is needed. This can be obtained by requiring that the calculated correlation between \(q^{\prime }\) and \(c^{\prime }\) scalars, \(\rho _{q^{\prime },c^{\prime }}\), is equal to the correlation obtained from the experimental data \(\rho _{q^{\prime },c^{\prime }}^\mathrm{obs}\). We thus have

$$\begin{aligned} \rho _{q^{\prime },c^{\prime }}^{\mathrm {obs}} = \frac{1}{\sigma _{c^{\prime }} \sigma _{q^{\prime }}} \left\{ \frac{\sigma _{c^{\prime }_\mathrm{p}}^2}{W} + \rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}} \sigma _{c^{\prime }_\mathrm{p}}\sigma _{c^{\prime }_\mathrm{r}} \left( \frac{1}{W} + \frac{\langle w^{\prime } q^{\prime }_\mathrm{e} \rangle }{\langle w^{\prime } c^{\prime }_\mathrm{r} \rangle } \right) + \sigma _{c^{\prime }_\mathrm{r}}^2 \frac{\langle w^{\prime } q^{\prime }_\mathrm{e} \rangle }{\langle w^{\prime } c^{\prime }_\mathrm{r} \rangle } \right\} \end{aligned}$$
(22)

where \(\sigma _{c^{\prime }_\mathrm{r}}\) can be estimated from Eq. 9 as a function of \(\sigma _{c^{\prime }_\mathrm{p}}\) and \(\rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}}\). When \(\rho _{q^{\prime },c^{\prime }}^\mathrm{obs}\) does not match \(\rho _{q^{\prime },c^{\prime }}\), SS08 proposed a wavelet filtering procedure in order to remove large-scale factors such as entrainment or non-stationarity that potentially influence the time series statistics (see SS08 for more details).

3 Solution Methods

Equations 21 and 22 constitute a closed system in two unknowns parameters \(\rho _{c^{\prime }_\mathrm{p},c^{\prime }_\mathrm{r}}\) and \(\sigma _{c^{\prime }_\mathrm{p}}\) to be solved, constrained to the conditions

$$\begin{aligned} -1 \le \rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}} \le 0, \end{aligned}$$
(23a)
$$\begin{aligned} \quad \sigma _{c^{\prime }_\mathrm{p}} \ge 0. \end{aligned}$$
(23b)

3.1 Specific Constraints for Eq. 17

Let us start with the constraint related to the discriminant (\(\Delta \)) of the quadratic Eq. 17 given by

$$\begin{aligned} \Delta _{(17)} \ge 0 \quad \Longleftrightarrow \quad \sigma _{c^{\prime }_\mathrm{p}} \le - \frac{\sigma _{q^{\prime }} W}{\sqrt{1 - \rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}}^2}}. \end{aligned}$$
(24)

Since we expect that the evaporation and transpiration water fluxes have the same sign, we are interested in the solutions fulfilling the condition \(\tilde{q} \ge 0\). Making use of the Descartes’ rule of sign, the only condition is that Eq. 17 should have one permanence and one variation (so a negative and a positive root respectively). This condition is verified only if

$$\begin{aligned} \sigma _{c^{\prime }_\mathrm{p}} \le \sigma _{q^{\prime }} \cdot |W| = - \sigma _{q^{\prime }} W, \end{aligned}$$
(25)

which is more restrictive than the \(\Delta _{(17)}\) constraint. Thus, the condition \(\tilde{q} \ge 0\) forces us to search for only one of the solutions of Eq. 17. In particular, looking for the positive one, we obtain

$$\begin{aligned} \tilde{q}_+ = \rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}}^2 \left\{ -1 + \sqrt{1 - \frac{1}{\rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}}^{2}} \left[ 1 - \left( \frac{\sigma _{q^{\prime }} W}{\sigma _{c^{\prime }_\mathrm{p}}} \right) ^2 \right] } \right\} . \end{aligned}$$
(26)

3.2 Specific Constraints for Eq. 18

Since we expect that the related photosynthesis and respiration fluxes are of opposite sign, we are looking for \(\tilde{c} \le 0\). In this case the Descartes’ rule of sign method does not help us to find physically meaningful solutions. In fact Eq. 18 could have two permanences (so two negative roots) if \(\sigma _{c^{\prime }_\mathrm{p}} \ge \sigma _{c}\) or one permanence and one variation (so only one negative root) if \(\sigma _{c^{\prime }_\mathrm{p}} \le \sigma _{c}\). This implies solving (18) searching for both the solutions, that is

$$\begin{aligned} \tilde{c}_\pm = \rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}}^2 \left\{ -1 \pm \sqrt{1 - \frac{1}{\rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}}^2} \left[ 1 - \left( \frac{\sigma _{c^{\prime }}}{\sigma _{c^{\prime }_\mathrm{p}}} \right) ^2 \right] } \right\} . \end{aligned}$$
(27)

Thus, the constraint related to (18) is the only one associated to its discriminant, namely

$$\begin{aligned} \Delta _{(18)} \ge 0 \quad \Longleftrightarrow \quad \sigma _{c^{\prime }_\mathrm{p}} \le \frac{\sigma _{c^{\prime }}}{\sqrt{1 - \rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}}^2}} \end{aligned}$$
(28)

3.3 General Constraints for Eq. 21

Given the specific constraints illustrated in the previous two sections, we can re-write Eq. 21 as

$$\begin{aligned} W = \frac{\langle w^{\prime } c^{\prime }\rangle }{\langle w^{\prime } q^{\prime }\rangle } \frac{1 + \tilde{q}_+}{1 + \tilde{c}_\pm }, \end{aligned}$$
(29)

which can be solved subject to the constraints

$$\begin{aligned} -1 \le \rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}} \le 0, \end{aligned}$$
(30a)
$$\begin{aligned} \quad 0 \le \sigma _{c^{\prime }_\mathrm{p}} \le \min \left[ -\sigma _{q^{\prime }} W, \quad \frac{\sigma _{c^{\prime }}}{\sqrt{1 - \rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}}^2}} \right] . \end{aligned}$$
(30b)

3.4 The Numerical Scheme

Before showing details of the numerical implementation we now summarize the inputs and the outputs of the whole procedure. We start from the following measured or estimated inputs:

  • \(\sigma _{q^{\prime }}\): the standard deviation of the water vapour concentration.

  • \(\sigma _{c^{\prime }}\): the standard deviation of the CO\(_2\) concentration.

  • \(\langle w^{\prime } q^{\prime }\rangle \): the eddy-covariance flux for water vapour.

  • \(\langle w^{\prime } c^{\prime }\rangle \): the eddy-covariance flux for CO\(_2\).

  • \(\langle q^{\prime }c^{\prime }\rangle \): the eddy-covariance between water vapour and CO\(_2\) concentration.

  • \(W\): the estimated water-use efficiency.

The numerical algorithm leads to the following main covariances:

  • \(\langle w^{\prime } q^{\prime }_\mathrm{e}\rangle \): the flux of evaporated water vapour.

  • \(\langle w^{\prime } q^{\prime }_\mathrm{t}\rangle \): the flux of transpired water vapour.

  • \(\langle w^{\prime } c^{\prime }_\mathrm{p}\rangle \): the flux of photosynthetic CO\(_2\).

  • \(\langle w^{\prime } c^{\prime }_\mathrm{r}\rangle \): the flux of respirated CO\(_2\).

In order to solve the non-linear system given by Eqs. 22 and 29 we propose a method slightly different from that proposed by SS08. As stated in Press et al. (1992), there are no good, general methods for solving systems of more than one non-linear equation. Of course this does not mean that the problem is not solvable, but that caution is needed when running numerical routines with different sets of parameters. The first problem is that the domain in the space \((\sigma _{c^{\prime }_\mathrm{p}}, \rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}})\) is not simply connected because all the constraints given in the previous sub-sections divide the domain into allowed and disallowed regions.

As explained in detail below, the routine we use to solve the nonlinear set of equations is based on the evaluation of the gradient of the mismatch between the two sides of the equations to be solved. Iterating the routine considered makes the consecutive estimates of the solution \(\mathbf {x}\) moving in the plane \((\sigma _{c^{\prime }_\mathrm{p}}, \rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}})\) (like the red points in Fig. 1). This “trajectory” should converge to the solution point. This procedure becomes very difficult if some regions of the plane are forbidden due to the constraint given above. For this reason a non-connected domain (in other words a \((\sigma _{c^{\prime }_\mathrm{p}}, \rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}})\) plane with holes) represents a difficult problem for our algorithm. To this purpose we modify Eqs. 22 and 29 substituting the \(\Delta _{(17)}\) and \(\Delta _{(18)}\) with their absolute values and we neglect all the other constraints. We use the routine named newt and described as globally convergent Newton’s method in Press et al. (1992). This routine is very fast and gives a very precise solution after less than ten steps. After the routine comes to convergence, we verify all the constraints on the solution obtained and if they are all fulfilled the solution is accepted.

Here we briefly outline the algorithm implemented in the routine newt given in Press et al. (1992). Solving a set of two non-linear equations with two unknowns \(x_1\) and \(x_2\) can be formally put in the form

$$\begin{aligned} F_i(\mathbf {x}) = 0, \end{aligned}$$
(31)

where \(i=1,2\) and \(\mathbf {x} = (x_1, x_2)\). In the neighbourhood of \(\mathbf {x}\), each of the functions \(F_i\) can be expanded in a Taylor series

$$\begin{aligned} F_i(\mathbf {x} + \delta \mathbf {x}) = F_i(\mathbf {x}) + \sum \limits _{j=1}^2 J_{ij} \delta x_j + O(\delta \mathbf {x}^2), \end{aligned}$$
(32)

where the Jacobian matrix \(\mathbf {J}\), with elements \(J_{ij}\), is given by

$$\begin{aligned} J_{ij} = \frac{\partial F_i}{\partial x_j}. \end{aligned}$$
(33)

In matrix notation we have

$$\begin{aligned} \mathbf {F}(\mathbf {x} + \delta \mathbf {x}) = \mathbf {F}(\mathbf {x}) + \mathbf {J} \delta \mathbf {x} + O(\delta \mathbf {x}^2) \end{aligned}$$
(34)

and by neglecting terms of order \(\delta \mathbf {x}^2\) and higher, and by setting \(F(\mathbf {x} + \delta \mathbf {x}) = 0\), we obtain a set of linear equations for the corrections \(\delta \mathbf {x}\) that move each function closer to zero simultaneously, namely

$$\begin{aligned} \mathbf {J} \cdot \delta \mathbf {x} = - F. \end{aligned}$$
(35)

This equation is then solved using the LU decomposition Press et al. (1992). The corrections \(\delta \mathbf {x}\) are then added to the solution vector

$$\begin{aligned} \mathbf {x}_\mathrm{new} = \mathbf {x}_\mathrm{old} + \delta \mathbf {x}, \end{aligned}$$
(36)

and the process is iterated to convergence. In our case \(\mathbf {J}\) is computed by a finite difference method.

Fig. 1
figure 1

Elaboration of the EC data obtained on April 7 2010 from 1300 to 1400 local time. The red points indicate the five iterations of the newt routine, the blue and black points represent one branch of the solutions of Eqs. 22 and 29, respectively

Despite its efficiency the Newton method for solving non-linear equations has an unfortunate tendency to wander off if the initial guess is not sufficiently close to the root. A global method is one that converges to a solution from almost any starting point. The global algorithm newt is a modification of the bare Newton method according to the following procedure. If one defines the function

$$\begin{aligned} f \equiv \frac{1}{2} \mathbf {FF} \end{aligned}$$
(37)

then the algorithm changes the value of the \(\mathbf {x}\) estimate according to

$$\begin{aligned} \mathbf {x}_\mathrm{new} = \mathbf {x}_\mathrm{old} + \lambda \delta \mathbf {x}, \, 0<\lambda <1, \end{aligned}$$
(38)

where \(\delta \mathbf {x}\) is the same as given by Eq. 35. The routine first checks whether the value of \(\mathbf {x}_\mathrm{new}\) obtained with \(\lambda =1\) decreases the value of \(f(\mathbf {x})\). If it occurs the algorithm goes to the next step, otherwise it tries using the values that fulfill \(0<\lambda <1\). If the new value of \(\mathbf {x}_\mathrm{new}\) for some value of \(\lambda \) leads to a lower value of \(f(\mathbf {x})\) then this new estimate of \(\mathbf {x}_\mathrm{new}\) is chosen. This procedure is referred to as backtracking. The technical details on the procedure of choice for \(\lambda \) are explained in Dennis and Schnabel (1983) and Press et al. (1992), and are outside the scope of the present paper.

4 A Note on Parameter Stability

4.1 Eddy-Covariance Measurements

The test of the calculation presented in this note has been carried out over a biomass crop (Cardoon, Cynara cardunculus L.) that demonstrated a great potential as a renewable energy source in the Mediterranean region (see Raccuia and Melilli 2007, among others). The crop was seeded on November 2009 in an experimental farm in Rutigliano southern Italy, 40\(^{\circ }\)59\(^{\prime }\)N, 17\(^{\circ }\)01\(^{\prime }\)E, altitude 147 m a.s.l. The 2-ha surface cardoon field was irrigated only by 20 mm of water to facilitate emergence and settlement. For the remaining growing season (up to August 2010) only precipitation supplied water to the crop.

Fluxes of energy (sensible heat and latent heat), CO\(_2\) and H\(_2\)O were measured using a three-dimensional sonic anemometer (USA-1, Metek GmbH, Germany) positioned at 1 m above the canopy. Atmospheric CO\(_2\) and water vapour concentrations were measured with a fast-responding open-path infrared gas analyzer (IRGA, LI-7500, Li-COR Inc., Lincoln NE, USA). The sonic anemometer was mounted to ensure complete exposure in all directions. The input parameters refer to EC data obtained on April 5 2010, from 1100 to 1200 local time, and on April 7 2010, from 1300 to 1400 local time (see Table 1). At that moment the crop partially covered the soil (about 80 %) and was 0.70 m in height. All fluxes and variances are calculated with time averaging over an interval of 1 h. \(W\) was evaluated by using Eq. 39 below. In Table 2 the resulting output parameters are reported.

Table 1 Input parameters directly calculated from high-frequency EC raw data
Table 2 Output parameters resulting from the newt routine run

We decided to report several digits in the value of the algorithm inputs because, as shown in the next sections, a slight change in their value can lead to a condition without physical solution. For this reason we retained all the digits shown in Table 1 and then we explicitly study the sensitivity error with respect to the \(W\) and CO\(_2\) flux \(\langle w^{\prime } c^{\prime }\rangle \) uncertainties. When reporting the numerical results in Table 2, we maintain several digits in order to permit a precise check of our results compared with other solution algorithms. Of course one should always remember that the measurements and the propagated error are obviously much larger than the value implied by the number of digits reported.

As described before, the newt algorithm iterates the estimates solution in the plane \((\sigma _{c^{\prime }_\mathrm{p}}, \rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}})\). These iterations are shown by the red points in Fig. 1, which also shows the loci of points fulfilling Eqs. 22 (blue points) and 29 (black points), separately. The solution of the system of equations we are looking for are the intersection of the blue and black curves. We see that the “trajectory” followed by the newt iterations is quickly reached after only five iterations.

4.2 Water-Use Efficiency

Following SS08, water-use efficiency \(W\) (mg g\(^{-1}\)) can be estimated as

$$\begin{aligned} W = 0.7 \frac{\overline{c}_\mathrm{s} - \overline{c}_i}{\overline{q}_\mathrm{s} - \overline{q}_i} \le 0 \end{aligned}$$
(39)

where the coefficient 0.7 accounts for the differences in diffusion and convection between water vapour and carbon dioxide through the stomatal aperture, and the subscripts \(s\) and \(i\) relate to surface and interstomatal values, respectively, of \(q\) and \(c\). In Appendix A of SS08, \(W\) was calculated with an inter-stomatal carbon concentration equal to 0.44 times the within-canopy carbon concentration, following Kim et al. (2006). The relationship between intra-stomatal and within-canopy CO\(_2\) concentrations was experimentally demonstrated, but with a large standard error (up to 30 \(\%\) as reported in Bacon , 2004). Concerning the internal concentration of \(q\), SS08 suggest to estimate it on the basis of 100 \(\%\) relative humidity at foliage temperature (\(T_\mathrm{L}\)), where the last is approximated to be within \(\pm 2^{\circ }\)C of the measured air temperature (\(T_\mathrm{A}\)), providing some flexibility for \(W\).

In relation to the \(W\) range obtained from this flexibility, there is an important point that deserves some discussion. We have the “physical” condition that

$$\begin{aligned} |W| = \frac{|\langle w^{\prime } c^{\prime }_\mathrm{p}\rangle | }{|\langle w^{\prime } q^{\prime }_\mathrm{t} \rangle |} \ge \frac{|\langle w^{\prime } c^{\prime }_\mathrm{p}\rangle | }{|\langle w^{\prime } q^{\prime }\rangle |} \ge \frac{|\langle w^{\prime } c^{\prime }\rangle | }{|\langle w^{\prime } q^{\prime }\rangle |}, \end{aligned}$$
(40)

which, being \(W \le 0\) and \(\langle w^{\prime } c^{\prime }_\mathrm{p}\rangle \le 0\), means

$$\begin{aligned} W \le \frac{\langle w^{\prime } c^{\prime }\rangle }{\langle w^{\prime } q^{\prime }\rangle } \equiv W_0 . \end{aligned}$$
(41)

This implies that for \(W > W_0\) no “physical” admissible solution exists. Consequently, it could be possible that some values in the \(W\) range do not obey the constraint defined in Eq. 41.

In Fig. 2 the value of the ratio between evaporated and transpirated water fluxes as a function of \(W\) is reported. The larger central point refers to the value of \(W\) obtained from the experimental measurements with \(T_\mathrm{L}=T_\mathrm{A}\), while the others span in the range defined as \(T_\mathrm{L}=T_\mathrm{A} \pm 2^{\circ } \mathrm {C}\).

Fig. 2
figure 2

Elaboration of the EC data obtained on April 7 2010 from 1300 to 1400, varying the \(W\) parameter. The threshold value \(W_0\) value equals \(-14.24\) mg g\(^{-1}\)

4.3 Carbon Dioxide Flux

A last remark should be made on another reason that makes the solution of the SS08 algorithm unphysical. Very often in the data used, the solution should be discarded due to the fact that the algorithm leads to \(\langle w^{\prime } c^{\prime }_\mathrm{r}\rangle < 0\), which is of course a non-realistic condition. Nevertheless we note that the absolute value of \(\langle w^{\prime }c^{\prime }_\mathrm{r}\rangle < 0\) is very close to zero. Changing the \(W\) value in the range defined in Sect. 4.2 allows \(\langle w^{\prime }c^{\prime }_\mathrm{r}\rangle < 0\).

At this point, we vary the value of \(\langle w^{\prime }c^{\prime }\rangle \) in the range of \(\pm \)10 %, which is a reasonable estimate of the experimental error associated with these measurements. The results are reported in Fig. 3 where we show how the realistic condition can be recovered for a higher than measured value of \(\langle w^{\prime }c^{\prime }\rangle \). We also plot the evaporation/transpiration ratio to show how the main result of the partition algorithm is influenced by the value of \(\langle w^{\prime }c^{\prime }\rangle \). Thus we conclude that also during the period when the SS08 algorithm leads to an unphysical condition, a deeper analysis of the variability of the input measurements helps to extract the correct solution from the data.

Fig. 3
figure 3

Elaboration of the EC data obtained on April 5 2010 from 1100 to 1200 local time, varying the \(\langle w^{\prime } c^{\prime }\rangle \) parameter in a range of \(\pm \)10 %. Results lead to a remarkable effect on the change of the sign of \(\langle w^{\prime } c^{\prime }_\mathrm{r} \rangle \) turning a non-physical solution into an acceptable one. The change in the evaporation/transpiration ratio as a function of \(\langle w^{\prime } c^{\prime }\rangle \) was also reported

5 Conclusions

This note shows that the method proposed in SS08 is reliable in giving good results in partitioning fluxes directly from high-frequency EC measurements only if it is used with some precautions. First of all one branch of solution can be neglected thanks to the Descartes’ rule. Here we stress the fact that Eq. 21, with both values of the sign, may lead to more than one solution. As is apparent in Fig. 1, for the choice \(+\), there are two \(\sigma _{c^{\prime }_\mathrm{p}}\) values fulfilling Eq. 29 at fixed \(\rho _{c^{\prime }_\mathrm{p}, c^{\prime }_\mathrm{r}}\). From a numerical point of view we think that our approach, based on Newton’s method in two dimensions, is much faster, and consequently more applicable to a large dataset, if compared with the approach based on the substitution proposed by SS08.

In any case, we wish to stress the extreme instability of the results with respect to the estimated value of \(W\). The parameter \(W\) is crucial for the calculations presented in SS08 and it is sufficient to allow the value of \(W\) to vary in the range given by its experimental uncertainty to ensure the system given by Eqs. 22 and 29 is not solvable.

For these reasons, we suggest to take into account the results reported in this note when the SS08 method is applied in flux partitioning derived from high-frequency EC measurements, or simply for further research aimed at improving the method.