|
|
|
The Computing for Science (CS) group supports ILL scientists, students and visitors in a number of activities including data analysis, instrument simulation and sample simulation.

7. Other Display interfaces and "TOF legaciesFilling reciprocal spaceRepresention of a serie of scans during acquisition to survey different regions of the reciprocal space and identify complex features due to incommensurability or diffuse. Using the function MAKE_VOLUME we obtain a real 3D object which may assist during the mesurement to identify the observed intensities appearing outside Bragg positions. Syntax is: <code>w2=make_volume(w1,/hkl)</code> Magnetic scattering cross-section exampleUsing the program suite described in the TOF-Manual (linked in the FRONT page) here is an example of diffuse scattering in manganese oxide (MnO) from D7. George LayoutGEORGE (General Experiment Organisation, Response and Guidance Executive) allows on-line data analysis to be combined with any instrument control and data acquisition sequences. The macros written by the instrument scientist has a frequency property which determines how often information is sent to, or received from the instrument control system. Other properties when updated in the macro, allow George to display "live" texts, images, fit results etc... Mask & GroupThis interface allows the noisy or unwanted spectra in a workspace to be masked and the remaining spectra to be regrouped into a new workspace. At start-up a colour chart is displayed until a workspace is loaded using the Load W# button. MaskingBy default a log image of the data is shown. Normally this reveals the bad spectra as horizontal lines (shown above). Spectra are selected for masking by clicking on the image with the left mouse-button, and deselected by clicking on a previously selected spectrum. A range of spectra can be selected by clicking on the first with the left mouse-button, and on the last with the right mouse-button. To save a mask so that you can apply it to other runs click on one of the M1..M3 buttons. You can write the cleaned data to a new workspace by selecting a workspace and pressing Write to W#. N.B. Be sure that the Group spectra button is not selected if you do not want to group the output workspace. If you want to re-use a saved mask for another run use the Load mask buttons, otherwise you can define a new mask Grouping SpectraNormally it is best to filter out the unwanted spectra (masking) before grouping. Move the slider at the bottom of the window to select the number of groups to be generated. The marks on the right of the image will show which spectra will be grouped together. Remember to select the Group spectra button before writing to the new workspace. Tips This is one interface that it is worth keeping as an icon, otherwise you never know what the mask is. It is also best to treat as many runs as possible in one session with this interface. The TOF Manual which will help you to reduce Time-of-Flight data is linked to the FRONT pageDidLineA friendly way to inspect rapidly the Tof raw data. This command invokes an intermediate interface to specify essentials inputs. Convert to Energy (t2e)LAMP uses the function t2e (tee) to convert the x axis from time-of-flight (channels) to energy. Usually it is best to normalise, remove noisy spectra, subtract background etc. before using this transformation.
LAMP makes two simple checks on the input workspace before converting to energy.
If the input workspace is suitable, t2e will convert the energy scale and make the appropriate corrections to the intensity for changing from time-bins to energy-bins. The title of the x-axis is changed. A "shot" sound indicates success and a "crunch" sound signifies an error. Please report unexplained errors.
Rebinning Irregular Data (rbin)Data on an irregular energy-scale can be rebinned to a regular grid by typing rbin in the formula-entry window. A window opens in which the energy range and energy increment can be chosen for a given input and output workspace. If required this command can be entered directly in the formula-entry window as, eg. w2=ebin(w1,-0.7,7.0,0.05) Convert to s(Q,w)When time-of-flight versus angle data are transformed to energy versus momentum transfer (Q, Function sqwexample syntax: w2=sqw(w1,0.02,0.1,-1.0,1.0,0.1,2.0) Command sqwwinTyping sqwwin in the formula-entry area will bring up a special interface to set the arguments for the sqw function and then perform the calculation. Normalise to Vanadium (vnorm)The function vnorm will take the integral of a given spectral region in one workspace and then divide the corresponding spectra in a second workspace by this integral.
The limits are those of the elastic peak in the vanadium spectra and must be given in channels not energy. Normalise Backscattering Spectra (bsnorm)The function bsnorm is used to normalise backscattering spectra to the monitor spectrum eg. to normalise workspace,w1, and put the normalised workspace into w2, type w2=bsnorm(w1) Line-up Elastic Peaks (lineup)Because there are frequently small differences between the distance from the sample to individual detector-groups there can be slight differences in the time-of-flight channel in which the elastic peak arises. When keyword NOFIT is set, the function lineup first smoothes each spectrum and then estimates the position of the maximum. if NOFIT is not present then a gaussian fit is made for all spectra. An average of these positions is taken and then all spectra are shifted so that their elastic peaks are at the average position. Any peak which is more than 10 channels away from the elastic-peak channel given in the parameters is not shifted. The new average peak position is returned in elas but not entered in the parameters automatically.
The counting statistics in an individual spectrum need to be adequate to enable the elastic-peak to be found. Otherwise the routine does nothing.
|