bradyrx / esmtools

:octopus: a toolbox for Earth System Model analysis :octopus:
https://esmtools.readthedocs.io/en/latest/
MIT License
27 stars 4 forks source link

Add salinity-normalize to carbon module #76

Open bradyrx opened 4 years ago

bradyrx commented 4 years ago

Really simple, but would like the convenience function to salinity-normalize in the carbon module.

From Sarmiento and Gruber 2006...

# var = 'DIC' or 'ALK'
ds['s' + var] = (ds[var]/salt['SALT'])*35