esmtools.carbon.spco2_decomposition_index

esmtools.carbon.spco2_decomposition_index(ds_terms, index, detrend=True, order=1, deseasonalize=False, plot=False, sliding_window=10, **plot_kwargs)[source]

Decompose oceanic surface pco2 in a first order Taylor-expansion.

Parameters:
  • ds (xr.Dataset) – containing cmorized variables: spco2 [ppm]: ocean pCO2 at surface talkos[mmol m-3]: Alkalinity at ocean surface dissicos[mmol m-3]: DIC at ocean surface tos [C] : temperature at ocean surface sos [psu] : salinity at ocean surface
  • index (xarray object) – Climate index to regress onto.
  • detrend (bool) – Whether to detrend time series prior to regression. Defaults to a linear (order 1) regression.
  • order (int) – If detrend is True, what order polynomial to remove.
  • deseasonalize (bool) – Whether to deseasonalize time series prior to regression.
  • plot (bool) – quick plot. Defaults to False.
  • sliding_window (int) – Number of years to apply sliding window to for calculation. Defaults to 10.
  • **plot_kwargs (type) – **plot_kwargs.
Returns:

terms of spco2 decomposition,

if not plot

Return type:

terms_in_pCO2_units (xr.Dataset)

References

  • Lovenduski, Nicole S., Nicolas Gruber, Scott C. Doney, and Ivan D. Lima. “Enhanced CO2 Outgassing in the Southern Ocean from a Positive Phase of the Southern Annular Mode.” Global Biogeochemical Cycles 21, no. 2 (2007). https://doi.org/10/fpv2wt.
  • Brady, Riley X., et al. “On the role of climate modes in modulating the air–sea CO 2 fluxes in eastern boundary upwelling systems.” Biogeosciences 16.2 (2019): 329-346.