Carbon-budget and trace-gas modeling