|
|
|
Pour utiliser sur le web | Pour imprimer en haute résolution |
|---|---|
Télécharger PNG | Télécharger TIF |
Télécharger JPG | Télécharger EPS |
The Time-of-flight and High-Resolution (TOF-HR) group of the ILL operates three distinct kinds of instruments that measure the atomic, molecular and crystal motions of samples in powder, glass or liquid form.

LAMP BasicsReading DataData reading is controlled from the DATA COLLECTOR area at the top of the main LAMP interface. LAMP looks at the system on which it is running and tries to set the best default values for the instrument and data-base. Normally the correct instrument and data-base will already be set. Selecting Instrument. If the instrument button does not indicate the desired instrument then press this button. A pull-down menu of instrument-groups appears. Select the desired group then the desired instrument. Selecting the Data-Base. The button to the right of the instrument-button contains the name of the data base. Press this button and a pull-down menu appears which normally offers:
Selecting a Workspace. The workspace selector is at the far-right of the DATA COLLECTOR area. At start-up w1 will be selected. You may change this by pressing the "<" and ">" buttons on the interface. Selecting and reading a Run. Enter the desired run number in the "Read" field. To read in and sum several consecutive runs, use the ">" symbol, e.g. 1234>1237. Click "Read".
|
| x1: x-axis values |
| y1: y-axis values |
| e1: error bars (usually the standard deviation) |
| n1: beam monitors |
| p1: instrument parameters. Can be seen and edited by pressing the "Data Params" button. |
| captions: x_tit(1), y_tit(1), z_tit(1), w_tit(1)and other_tit(1) with the obvious meanings. other_tit contains a record of all workspace manipulations performed using the TOF functions. |
In order to add, subtract, etc. workspaces, commands are entered in the "MANIPULATIONS" area. The main scrollable formula entry is the easiest place to enter new commands. These are executed when carriage return is pressed.
Adding, Subtracting, etc. Workspaces.
To add two runs which are in workspaces w1 and w2 simply type:
w3 = w1 + w2 |
in the "MANIPULATIONS" window. Subtraction, multiplication etc. are similar. In these operations LAMP will transfer the parameters, axes values, titles (and monitors) of the first workspace after the "=" sign into the new workspace. Effectively, "w3 = w1 + w2" invokes:
p3 = p1 |
which is what you would expect. However, it also invokes
n3 = n1 |
which is not at all what you expect.
There are two very important points here, which are often a source of error:
1) If you are adding together raw (un-normalised) data, you should always explicitly add the monitors, i.e.
n3 = n1 + n2 |
in the above example
2) You should always explicitly perform the error bar calculation when manipulating workspaces, i.e.
e3 = sqrt(e1^2 + e2^2) |
in the above example. Note that you do not need to do this when the manipulation is done by an existing TOF function, e.g.
w2=normalise(w1) |
automatically gets the error bars right.
When multiplying or dividing two workspaces by a number, always remember to perform the error bar calculation explicitly, e.g.
w2 = w1/1.87 & e2 = e1/1.87 |
When dividing two workspaces by each other, a divide function has been written to automatically work out the appropriate error bars, in order to save tediously working out the expression every time, i.e.
w3 = divide(w1,w2) |
does not require an explicit error bar calculation.
To extract spectra 20 to 30 from w1 into w2:
w2=w1(*,19:29) |
In this example the "*" implies all channels. If you were only interested in channels 300 to 400 for spectra 20 to 30:
w2=w1(299:399,19:29) |
LAMP ensures that parameters, axes etc. are transferred correctly but it does not update the values for the number of spectra and number of channels in the new parameters. These can be edited with the "data params" button.
If the sum of spectra collected at all different scattering angles is required:
w2=total(w1,2) |
Here the "2" means sum over the second dimension i.e.. spectra. A sum of a range of spectra, say spectrum 50 to spectrum 100 can be made:
w2=total(w1(*,49:99),2) |
Getting s(Q)
A sum of all channels (for s(Q)):
w2=total(w1,1) |
If only elastic s(Q) is required and the elastic-peak position is known to be from say 200 to 220:
w2=total(w1(199:219,*),1) |
Tips:1. Use the history to cut out previous commands and paste them into "MANIPULATIONS" for reuse.
2. The programmable buttons are often easier to use than the "MANIPULATIONS"
3. Simple error messages appear between the "MANIPULATIONS" and history windows.
4. General warning and error messages appear in the winterm window from which LAMP was launched. Keep this window in view.