You can define ranges in:
with the class Range. The ranges defined are used to specfity the region of the spectra to be taken into account in the computation of the \(\chi^{2}\).
Note that Range must be imported before it is used:
from Range import Range
In order to specify the unit you must explicitly set it.
Example: Set a frequency range between 550.90 and 551 GHz:
Range.unit = "GHz"
f1 = Range(550.90, 551.0)
Example: Set a velocity range between 0 and 15 km/s:
Range.unit = "km/s"
v1 = Range(0, 15)
Example: Set a wavelength range between 0.54 and 0.55 micrometer:
Range.unit = "micrometer"
l1 = Range(0.54, 0.55)
Example: Set a wavenumber range between 18.33 and 18.34 cm-1:
Range.unit = "cm-1"
n1 = Range(18.33, 18.34)
There is no restriction when you use Range. This class doesn’t know anything about your data. You can decide to select a whole spectrum even if you don’t know exactly its bounds:
f = Range("*", "*")
Once the computation is run, the LineAnalysisScripting will look up the frequency in the data and set the range to its min and its max.