From 9ddac07901fb327d6807e84c06b360cc339abcc4 Mon Sep 17 00:00:00 2001 From: Gerrit Holl Date: Wed, 6 Jan 2016 11:00:56 +0000 Subject: ENH: Add support for wavenumber/kayser in spectroscopy context In spectroscopy, it is (regrettably) common to express the wavelength in units of wavenumber (a.k.a. kayser) or cm^{-1}. This commit adds support to the default spectroscopy context, so that users can convert from frequency and wavelength directly to wavenumber units such as kayser. --- pint/default_en.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pint/default_en.txt') diff --git a/pint/default_en.txt b/pint/default_en.txt index e6a11a9..807d4ad 100644 --- a/pint/default_en.txt +++ b/pint/default_en.txt @@ -269,6 +269,8 @@ stere = meter ** 3 [length] <-> [frequency]: speed_of_light / n / value [frequency] -> [energy]: planck_constant * value [energy] -> [frequency]: value / planck_constant + # allow wavenumber / kayser + 1 / [length] <-> [length]: 1 / value @end @context boltzmann -- cgit v1.2.1