olm.general.mgL_to_molL

olm.general.mgL_to_molL(mgL, ion)[source]

Converts concentrations from mg/L to mol/L.

Parameters:

mgL : float or array

concentration in mg/L

ion : str

name of ion

Returns:

molL : float or array

concentration in mol/L