The class UserInputs is the main class for defining your inputs. It can be seen as a list storing all the inputs to be used throughout the different operations performed by the script:
UserInputs(input1=value1, ..., inputN=valueN)
These inputs are the specific parameters necessary for the computation of the \(\chi^{2}\) in the LineAnalysis model.
The arguments of the class UserInputs are the different parameters necessary for LineAnalysis. They can be defined in any order as long as they respect the notation:
input = value
where input and value are described below. Note that some inputs are mandatory in order to complete the computation successfully. If they are not satisfied an exception will be raised by the script and a message will explain you what you should do.
telescope: | The name of the telescope file if a single telescope is provided or a dictionary of ranges of lines on which different telescopes are applied if there are many telescopes.
|
---|
Warning
If you specify the lines on which the telescopes are applied make sure the lines correspond to the lines you choose for selectedLines, rmsLines and calLines
tuningRange: | The frequency range to be used (in GHz)
|
---|
moltags: | The list of molecular tags.
|
---|
inputFile: | The full path to the input file
|
---|
selectedLines: | A dictionary defining the indexes of the spectra and the range to be taken into account in the computation of the \(\chi^{2}\). The index corresponds to the number of the line that appears in the Line analysis panel after you display your spectrum.
where f1, f2, f3 are ranges of physical units amongst:
(cf section Define ranges for physical magnitudes) |
---|
rmsLines: | A dictionary defining the indexes of the spectra and the rms values for these spectra. The index corresponds to the number of the line that appears in the Line analysis panel after you display your spectrum.
|
---|
calLines: | A dictionary defining the indexes of the spectra and the calibration values for these spectra. The index corresponds to the number of the line that appears in the Line analysis panel after you display your spectrum.
|
---|
Note
selectedLines, rmsLines and calLines are interdependent. The spectra specified in these 3 inputs must be exactly the same:
selectedLines = {"1": [f1a, f1b], "2": [f2]}
rmsLines = {"1": [0.05, 0.01], "2": [0.01]}
calLines = {"1": [0.1, 0.4], "2": [0.3]}
tuningBand: | The width on which the spectra are taken (in km/s)
|
---|
aijMin: | The minimum value for the Einstein coefficient, Aij
|
---|
eup: | The minimum and maximum value of the Eup to be used
|
---|
jup: | The minimum and maximum value of the Jup to be used
|
---|
kup: | The minimum and maximum value of the Kup to be used
|
---|
lup: | The minimum and maximum value of the Lup to be used
|
---|
mup: | The minimum and maximum value of the Mup to be used
|
---|
template: | The template to be used for the molecules
|
---|
outputFile: | The path to the file in which the data will be written at the end of the computation
|
---|
plotTitle: | The title of the \(\chi^{2}\) contour plot
|
---|
tmb2ta: | Whether the data are in main beam temperature (False) or in antenna temperature (True)
|
---|
isoUnique: | Determine how the isotopic ratios parameters must be taken into account.
In a more formal way: let
|
---|
Default value: False
Example:
isoUnique = True
warning: | Allow the display of an option pane indicating the number of models to process and asking you whether the script should continue.
|
---|
Now you should be ready to create some components for your model.