Example #1
0
    def test_radianc2rayleighjeansTb(self):
        """Test conversion between spectral radiance and Rayleigh-Jeans Tb."""
        f = np.linspace(100, 80e12, 100)
        r = physics.rayleighjeans(f, 300)

        tb = physics.radiance2rayleighjeansTb(f, r)

        assert np.allclose(tb, 300)
Example #2
0
 def test_rayleighjeans(self):
     """Test calculation Rayleigh-Jeans black body radiation."""
     x = physics.rayleighjeans(183e9, 273.15)
     assert np.allclose(x, 2.810445098218606e-15)