flux_calc function

Calculates ecosystem gas fluxes