Exemple #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)
def lambda2omega(lambda_):
    """Convert wavelength to omega."""
    from scipy.constants import lambda2nu
    from math import pi
    return 2 * pi * lambda2nu(lambda_)
Exemple #5
0
def test_lambda_to_nu():
    assert_equal(sc.lambda2nu([sc.speed_of_light, 1]), [1, sc.speed_of_light])
Exemple #6
0
def lambda2wn(lam):
    return nu2wn(lambda2nu(lam))