Beispiel #1
0
def lambda2omega(lambda_):
    """
    Convert wavelength to omega
    """
    from scipy.constants import lambda2nu
    from math import pi
    return 2 * pi * lambda2nu(lambda_)
def test_lambda_to_nu():
    assert_equal(sc.lambda2nu(sc.speed_of_light), 1)
def test_lambda_to_nu():
    assert_equal(sc.lambda2nu(sc.speed_of_light), 1)
Beispiel #4
0
def lambda2omega(lambda_):
    """Convert wavelength to omega."""
    from scipy.constants import lambda2nu
    from math import pi
    return 2 * pi * lambda2nu(lambda_)
Beispiel #5
0
def test_lambda_to_nu():
    assert_equal(sc.lambda2nu([sc.speed_of_light, 1]), [1, sc.speed_of_light])
Beispiel #6
0
def lambda2wn(lam):
    return nu2wn(lambda2nu(lam))