radis.test.spectrum.test_rescale moduleΒΆ

SummaryΒΆ

Test Spectrum rescaling methods


test_astropy_units(verbose=True, warnings=True, *args, **kwargs)[source]ΒΆ

This test is to assert the use of astropy units in rescale function, by comparing the absorbance of a spectrum rescaled with astropy units (in this test we use u.km) with the absorbance of original spectrum

test_compression(verbose=True, warnings=True, *args, **kwargs)[source]ΒΆ

Test that redundant quantities are properly inferred from already known spectral quantities

test_get_recompute(verbose=True, *args, **kwargs)[source]ΒΆ

Make sure get_recompute() works as expected

Here, we check which quantities are needed to recompute radiance_noslit

test_recompute_equilibrium(verbose=True, warnings=True, plot=True, *args, **kwargs)[source]ΒΆ

Test that spectral quantities recomputed under equilibrium assumption yields the same output as with non equilibrium routines when Tvib = Trot

test_rescale_all_quantities(verbose=True, warnings=True, *args, **kwargs)[source]ΒΆ
test_rescale_vs_direct_computation(verbose=True, *args, **kwargs)[source]ΒΆ

Compare spectral arrays initially computed with recomputed spectral arrays

Notes

Use verbose=2 to get DEBUG_MODE output

test_update_transmittance(verbose=True, warnings=True, *args, **kwargs)[source]ΒΆ

Test that update can correctly recompute missing quantities

test_xsections(*args, **kwargs)[source]ΒΆ

Test that we do have

\[exp(-\sigma \cdot N_x \cdot L) = exp(- k \cdot L)\]

Therefore

\[k = \sigma \cdot \frac{x p}{k T}\]

With p total pressure and x the mole fraction.