flux_calc function

calculates ecosystem gas fluxes