pint.utils.convert_dispersion_measure
- pint.utils.convert_dispersion_measure(dm: Quantity, dmconst: Quantity | None = None) Quantity [source]
Convert dispersion measure to a different value of the DM constant.
- Parameters:
dm (astropy.units.Quantity) – DM measured according to the conventional value of the DM constant
dmconst (astropy.units.Quantity) – Value of the DM constant. Default value is computed from CODATA physical constants.
- Returns:
dm – DM measured according to the value of the DM constant computed from the latest values of the physical constants
- Return type:
Notes
See https://nanograv-pint.readthedocs.io/en/latest/explanation.html#dispersion-measure for an explanation.