summaryrefslogtreecommitdiff
path: root/pint/default_en.txt
diff options
context:
space:
mode:
authorGerrit Holl <g.holl@reading.ac.uk>2016-01-06 11:00:56 +0000
committerHernan Grecco <hernan.grecco@gmail.com>2016-08-03 21:21:31 -0300
commit9ddac07901fb327d6807e84c06b360cc339abcc4 (patch)
tree69c352d30bd7ed140f6174d6e553f14949594c80 /pint/default_en.txt
parent9069f3f1da3dd95812a3d932845c010dc735e3d4 (diff)
downloadpint-9ddac07901fb327d6807e84c06b360cc339abcc4.tar.gz
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.
Diffstat (limited to 'pint/default_en.txt')
-rw-r--r--pint/default_en.txt2
1 files changed, 2 insertions, 0 deletions
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