; file: constants_cgs.idl = physics constants in cgs units
; init: Oct  2 2013  Rob Rutten  Deil
; last: Nov 15 2016  Rob Rutten  Deil
; note: http://en.wikipedia.org/wiki/Centimetre%E2%80%93gram%E2%80%93second_system_of_units 

; physics constants in cgs (all double precision)
hcgs=6.626068D-27         ; Planck constant (erg s)
ccgs=2.99792458D10        ; velocity of light (cm/s)
kcgs=1.380650D-16         ; Boltzmann constant (erg/deg)
kev=8.61734D-5            ; Boltzmann constant (eV/deg)
hckcgs=hcgs*ccgs/kcgs     ; hc/k in cgs
matom=1.660539D-24        ; atomic mass unit (gram)
massH=matom*1.0080        ; hydrogen mass cgs atomic units (gram)
mproton=1.67262178D-24    ; proton mass (gram)
melectron=9.109382D-28    ; electron mass (gram)
eelectron=4.803204D-10    ; electron charge (ESU, Gaussian)
bohrradiuscgs=5.291772D-9 ; Bohr radius (cm)
gcgs=6.67428D-8           ; gravitational constant (cm3/g s2)
rydbergcm=1.0973731568D5  ; Rydberg constant (1/cm)
rydbergaa=1.0973731568D-3 ; Rydberg constant (1/AA)
rydbergev=13.605963       ; Wikipedia Nov 15 2016; used to be 13.596 OOPS?
rydbergcgs=2.1798741D-11  ; Rydberg unit (erg)

; unit conversions
ergperev=1.60217657E-12   ; erg per electronvolt
ergperjoule=1.E-7         ; erg per Joule
ergpercmwav=1.98649E-16   ; erg per cm-1 wave number
aapercm=1.E8              ; angstrom per centimeter
cmperaa=1.E-8             ; cm per angstrom
aapernm=10.               ; angstrom per nanometer
aapermicron=1.E4          ; angstrom per micron
evperaa=1.239842E4        ; divide this by vacuum wavelength in AA to get eV
evpercmwav=ergpercmwav/ergperev ; eV per cm wave number
