elphick.mass_composition.mc_xarray.mc_aggregate

elphick.mass_composition.mc_xarray.mc_aggregate(xr_ds)[source]

A standalone function to aggregate

Sum the mass vars and weight average the chem vars by the mass_dry.

Parameters:

xr_ds (Dataset) – A MassComposition compliant xr.Dataset

Return type:

Dataset

Returns: