Skip to content
Snippets Groups Projects
Commit 035ccacc authored by David Fairbrother's avatar David Fairbrother
Browse files

Re #17098 Tidied docs for engg diff interface

parent 9c9e5185
No related branches found
No related tags found
No related merge requests found
...@@ -6,11 +6,10 @@ Engineering Diffraction ...@@ -6,11 +6,10 @@ Engineering Diffraction
Overview Overview
-------- --------
This custom interface integrates several tasks related to engineering This custom interface integrates several tasks related to engineering
diffraction. It provides functionality for calibration, focusing, and diffraction. It provides functionality for calibration, focusing, and
pre-processing of event mode data. Further extensions can be expected pre-processing of event mode data. Further extensions can be expected
for next releases as it is under active development. Feedback is very for future releases as it is under active development. Feedback is very
much welcome. The following sections describe the different tabs or much welcome. The following sections describe the different tabs or
functionality areas of the interface. functionality areas of the interface.
...@@ -55,27 +54,30 @@ visualize them. ...@@ -55,27 +54,30 @@ visualize them.
It is possible to: It is possible to:
- generate a new calibration file (which becomes the new current - Generate a new calibration file (which becomes the new current
calibration) calibration)
- load an existing calibration from a GSAS instrument - Load an existing calibration from a GSAS instrument
parameters file previously generated parameters file previously generated
For the current calibration, the following parameters are displayed: For the current calibration, the following parameters are displayed:
the vanadium run number, the calibration sample run number, and the
path to the output calibration file. This output calibration file is a - The vanadium run number
GSAS instrument parameters file (IPARM/PAR/PRM). The interface - The calibration sample run number
produces a "all_banks" calibration file and in addition a calibration - The path to the output calibration file.
file for every individual bank. All the calibration files are writen
This calibration file output is a GSAS instrument parameters file (IPARM/PAR/PRM). The interface
produces a calibration file containing all banks and in addition a calibration
file for every individual bank. All the calibration files are written
in the same directory. in the same directory.
With the help of Cropped Calibration user can also calibrate according With the help of Cropped Calibration user can also calibrate according
to bank or by setting the Spectrum Numbers once the Cropped Calibration group to specific banks or by setting the Spectrum Numbers once the Cropped Calibration group
box has been enabled. box has been enabled.
The plot Calibrated Workspace check-box will enable user to plot The plot Calibrated Workspace check-box will enable user to plot
vanadium curves and Ceria peaks. For Ceria peaks there will be two vanadium curves and Ceria peaks. For Ceria peaks there will be two
workspace generated and plotted, one for each bank, whereas for workspace generated and plotted, one for each bank, whereas for a
cropped calibration there will only be only one workspace generate cropped calibration there will only be only one workspace generated
and plotted, depending on the selected bank or provided Spectrum and plotted, depending on the selected bank or provided Spectrum
IDs. The workspace contains difc and tzero data which is then IDs. The workspace contains difc and tzero data which is then
utilised to plot the Ceria peaks per bank, the graph will plot Peaks utilised to plot the Ceria peaks per bank, the graph will plot Peaks
...@@ -85,12 +87,19 @@ regarding the fit peaks can be found on the ...@@ -85,12 +87,19 @@ regarding the fit peaks can be found on the
The calibration files are written into two different output The calibration files are written into two different output
directories. First, they are written to a user specific directory directories. First, they are written to a user specific directory
which for the ENGIN-X instrument on Windows systems is which for the ENGIN-X instrument on Windows systems is:
`C:/EnginX_Mantid/User/<RBNumber>/Calibration`. On other platforms
this is found under the home directory rather than `C:`. They are also `C:/EnginX_Mantid/<Username>/<RBNumber>/Calibration`
copied into a general (all) output directory:
On UNIX based platforms this path is:
`~/EnginX_Mantid/<Username>/<RBNumber>/Calibration`
They are also copied into a general (all) output directory:
`C:/EnginX_Mantid/Calibration` on Windows or `C:/EnginX_Mantid/Calibration` on Windows or
`~/EnginX_Mantid/Calibration` on other platforms.
`~/EnginX_Mantid/Calibration` on UNIX platforms.
The calibration parameters for each bank are made available for user The calibration parameters for each bank are made available for user
inspection in a workspace named inspection in a workspace named
...@@ -113,13 +122,12 @@ Calibration sample # ...@@ -113,13 +122,12 @@ Calibration sample #
Bank Name: Bank Name:
This parameter is only required when Cropped Calibration is being This parameter is only required when Cropped Calibration is being
carried out. The bank name can be selected from a drop down list with carried out. The bank name can be selected from a drop down list with
option of "North" and "South", which are equivalently to 1 and 2 option of "North" and "South", which are equivalent to 1 and 2
respectively. However the Bank Name drop down list is set to respectively.
"Enable Spectrum-Nos" by default. This option cannot be used together Custom bank mappings can be created by setting the Bank Name option
with Spectrum Nos, as they overlap. For the convenience of users, the to `Use spectrum numbers`. By specifying a range or list of
GUI will only enable Spectrum Numbers and Customise Bank Name text-fields spectra to use a new custom bank can be created and subsequently named.
when Bank Name drop down list is set to "Enable Spectrum-Nos"
Spectrum Numbers: Spectrum Numbers:
This parameter is only required when Cropped Calibration is being This parameter is only required when Cropped Calibration is being
carried out, the parameter will set the spectrum numbers of the carried out, the parameter will set the spectrum numbers of the
...@@ -131,13 +139,12 @@ Spectrum Numbers: ...@@ -131,13 +139,12 @@ Spectrum Numbers:
Customise Bank Name: Customise Bank Name:
This parameter is only required when Cropped Calibration is being This parameter is only required when Cropped Calibration is being
carried out with Spectrum Numbers, the parameter will set the workspace carried out with Spectrum Numbers, the parameter will set the workspace
and .his file name according to this Bank Name provided by the user. and `.his` file name according to this Bank Name provided by the user.
However if the user does not provide a personalised name, the However if the user does not provide a personalised name, the
interface will use "cropped" as a default bank name. interface will use "cropped" as a default bank name.
The calibration process depends on several additional parameters and The calibration process depends on several additional parameters and
settings which can be modified in the *Settings* section (tab), see settings which can be modified in the *Settings* tab, see :ref:`setting-Engineering_Diffraction-ref` for details.
below for details.
.. _focus-Engineering_Diffraction-ref: .. _focus-Engineering_Diffraction-ref:
...@@ -168,18 +175,23 @@ Three focusing alternatives are provided: ...@@ -168,18 +175,23 @@ Three focusing alternatives are provided:
in a Detector Grouping File. in a Detector Grouping File.
Depending on the alternative chosen, the focusing operation will Depending on the alternative chosen, the focusing operation will
include different banks and/or combinations of spectra (detectors). In include different banks and/or combinations of spectra (detectors).
the firs option, normal focusing, all the selected banks and all the The behavior for each option is as follows:
spectra present in the input runs are considered. In the second
alternative, cropped focusing, all the banks are considered in 1. *Normal focusing* - All the selected banks and spectra present
in the input runs are considered. The output focused workspace will take
suffixes such as *_bank_1, _bank_2*, and so on
2. *Cropped Focusing* - All the banks are considered in
principle but only a list of spectra provided manually are principle but only a list of spectra provided manually are
processed. In the third option, *texture focusing*, the banks are processed. The output focused workspace will take the
defined by a user-defined list of banks and corresponding spectrum Nos *_cropped* suffix.
provided in a file. For these alternatives, the output focused
workspace will take different suffixes: *_bank_1, _bank_2*, and so on 3. *Texture Focusing* - The banks are selected by a user-defined
for normal focusing, *_cropped* for cropped focusing, and list of banks and corresponding spectrum numbers provided in a file.
*_texture_bank_1, _texture_bank_2*, and so on for texture focusing The output workspace will take suffixes such as *_texture_bank_1,
(using the bank IDs given in the detector grouping file). _texture_bank_2*, and so on. These suffixes are determined by the
bank IDs given in the detector grouping file.
Cropped focusing and Texture focusing have been disabled by default to Cropped focusing and Texture focusing have been disabled by default to
declutter the interface, but each section can be enabled simply by declutter the interface, but each section can be enabled simply by
...@@ -208,7 +220,7 @@ files). That is the files are written into ...@@ -208,7 +220,7 @@ files). That is the files are written into
`C:/EnginX_Mantid/User/<RBNumber>/Calibration` and `C:/EnginX_Mantid/User/<RBNumber>/Calibration` and
`C:/EnginX_Mantid/Calibration` on Windows, or `C:/EnginX_Mantid/Calibration` on Windows, or
`~/EnginX_Mantid/User/<RBNumber>/Calibration` and `~/EnginX_Mantid/User/<RBNumber>/Calibration` and
`~/EnginX_Mantid/Calibration` on other platforms. See below for `~/EnginX_Mantid/Calibration` on UNIX platforms. See below for
additional, optional outputs. additional, optional outputs.
Run Number Run Number
...@@ -234,31 +246,38 @@ Output ...@@ -234,31 +246,38 @@ Output
^^^^^^ ^^^^^^
Under the output section, the user is provided with an option of Under the output section, the user is provided with an option of
plotting data in three different formats. One Window - Replacing plotting data in three different formats.
Plots: will replace the previous graph and plot a new graph on top.
One Window - Waterfall: will plot all the generated focused - One Window - Replacing Plots: will replace the previous graph and plot a new graph on top.
workspace graphs in one window which can be useful while comparing
various graphs. The Multiple Windows: will plot graph in - One Window - Waterfall: will plot all the generated focused workspace graphs in one window
separate windows. However, user may also change the Plot Data which can be useful while comparing various graphs.
Representation drop-down box while a run is being carried out. This
will update the interface and plot workspace according to the new - Multiple Windows - will plot graph in separate windows.
given input. For example, if a user has selected One Window -
Replacing Plots and then decides to change it to One Window - However, user may also change the Plot Data representation drop-down box while a run is being carried out. This
Waterfall during a run, the interface will carry on by plotting will update the interface and plot workspace according to the new given input.
For example, if a user has selected *One Window - Replacing Plots* and then decides to change it to *One Window -
Waterfall* during a run, the interface will carry on by plotting
Waterfall within the same window. Waterfall within the same window.
The user also has an option of saving GSS, XYE and OpenGenie formatted The user also has an option of saving GSS, XYE and OpenGenie formatted
file by clicking the Output Files checkbox. This will generate three files by clicking the Output Files checkbox. This will generate three
different files for each focused output workspace in Mantid. These different files for each focused output workspace in Mantid. These
files can be found with appropriate name at location: files can be found with appropriate name within:
`C:\EnginX_Mantid\User\<RBNumber>\Focus` on Windows, the `EnginX_Mantid`
folder can be found on the home directory on other platforms. The `C:\EnginX_Mantid\<User>\<RBNumber>\Focus` on Windows or
files are also copied to the general (all) output directory, that is
`C:\EnginX_Mantid\Focus` on Windows and `EnginX_Mantid\Focus` under `~/EnginX_Mantid/Foxus` on UNIX systems.
the user home on other platforms.
The files are also copied to the general (all) output directory which is
The Multiple Runs Focus Mode combo-box enables two alternative
focus mode. `Focus Individual Run Files Separately` is the default `C:\EnginX_Mantid\Focus` on Windows
`~/EnginX_Mantid/Focus` under on UNIX systems
`The Multiple Runs Focus Mode` combo-box enables two alternative
focus modes. `Focus Individual Run Files Separately` is the default
option set, which allows user to run focus with multi-run files. option set, which allows user to run focus with multi-run files.
Whereas the `Focus Sum Of Files` option merges all the multi-run Whereas the `Focus Sum Of Files` option merges all the multi-run
number files together and applies the Focus Process to the merged number files together and applies the Focus Process to the merged
...@@ -300,7 +319,7 @@ convention: ...@@ -300,7 +319,7 @@ convention:
- *engggui_preproc_by_pulse_time_ws* - *engggui_preproc_by_pulse_time_ws*
This tab uses the algorithms :ref:`Rebin <algm-Rebin>` and :ref:`Rebin Focussing uses the algorithms :ref:`Rebin <algm-Rebin>` and :ref:`Rebin
<algm-RebinByPulseTimes>` to bin the data in different ways when <algm-RebinByPulseTimes>` to bin the data in different ways when
converting event data into histogram data. converting event data into histogram data.
...@@ -310,11 +329,14 @@ Fitting ...@@ -310,11 +329,14 @@ Fitting
.. warning:: This is a new capability that is currently in a very .. warning:: This is a new capability that is currently in a very
early stage of definition and implementation. Not all early stage of definition and implementation. Not all
options may be supported and/or consistent at the moment. options may be supported and/or consistent at the moment.
.. warning:: The input workspace must be converted into a focussed file
first. The steps to complete this are found here: :ref:`focus-Engineering_Diffraction-ref`
The Fitting tab provides a graphical interface which fits an expected The Fitting tab provides a graphical interface which fits an expected
diffraction pattern and visualises them. The pastern is specified by diffraction pattern and visualises them. The pattern is specified by
providing a list of dSpacing values where Bragg peaks are expected. providing a list of dSpacing values where Bragg peaks are expected.
The algorithm :ref:`EnggFitPeaks<algm-EnggFitPeaks>` used in the The algorithm :ref:`EnggFitPeaks<algm-EnggFitPeaks>` is used to
background fit peaks in those areas using a peak fitting function. background fit peaks in those areas using a peak fitting function.
To use the Fitting tab, user is required to provide: To use the Fitting tab, user is required to provide:
...@@ -332,15 +354,17 @@ Parameters ...@@ -332,15 +354,17 @@ Parameters
These parameters are required to process Fitting successfully: These parameters are required to process Fitting successfully:
Focused Run #: Focused Run #:
Focused workspace directory or selected with the help of browse button. Focused workspace directory or selected using the browse button.
User may also select the file/s by simply entering the file run number Users may also select the file/s by simply entering the file run number
or a range of consecutive run number separated by dash (`-`), for or a range of consecutive run number separated by dash (`-`), for
example: "194547-194550" or "241391-241399". It is compulsory for example: "194547-194550" or "241391-241399".
these file/s to be located within the focused output directory.
It is compulsory for these file/s to be located within the focused output directory.
Focused workspace can be generated with the help of Focused workspace can be generated with the help of
:ref:`focus-Engineering_Diffraction-ref` tab, the output folder :ref:`focus-Engineering_Diffraction-ref` tab, the output folder
directory can be set in the :ref:`setting-Engineering_Diffraction-ref` directory can be set in the :ref:`setting-Engineering_Diffraction-ref`
tab under the *Focusing settings* section. tab under the *Focusing settings* section.
When a valid range of consecutive run numbers is given, the interface will When a valid range of consecutive run numbers is given, the interface will
automatically import and add the run number/s to the list on the right side automatically import and add the run number/s to the list on the right side
of the graph, from where each run number can be selected from by click on it. of the graph, from where each run number can be selected from by click on it.
...@@ -361,15 +385,15 @@ Plot Bank/Bank List: ...@@ -361,15 +385,15 @@ Plot Bank/Bank List:
Output Output
^^^^^^ ^^^^^^
Once the Fit button has been clicked, wait until the Fitting process has Once the Fit button has been clicked Mantid will process the data. Please wait
completed and upon completion you should be able to view on the Fitting until the Fitting process has completed. Upon completion you should be able to
tab: view on the Fitting tab which will contain:
- The focused workspace plotted in the background in gray crosses. - The focused workspace plotted in the background in gray crosses.
- The expected peaks plotted in various colours over lapping the - The expected peaks plotted in various colours over lapping the
focused workspace peaks. focused workspace peaks.
Within the :ref:`Preview-Engineering_Diffraction-ref` section user is Within the :ref:`Preview-Engineering_Diffraction-ref` section a user is
able to zoom-in or zoom-out as well as select, add and save peaks. able to zoom-in or zoom-out as well as select, add and save peaks.
The interface will also generate workspaces that can be inspected in the The interface will also generate workspaces that can be inspected in the
...@@ -379,7 +403,7 @@ workspaces window: ...@@ -379,7 +403,7 @@ workspaces window:
with the parameters of the peaks found and fitted. with the parameters of the peaks found and fitted.
2. The *engggui_fitting_focused_ws* Focused workspace also loaded 2. The *engggui_fitting_focused_ws* Focused workspace also loaded
so the fitted data can be compared with focused data so the fitted data can be compared with focused data
3. The *engggui_fitting_single_peaks* workspace within each workspace 3. The *engggui_fitting_single_peaks* workspace with each workspace
index representing individual expected peak. index representing individual expected peak.
In the plots, the x or abscissa axis is in d-spacing units, which are In the plots, the x or abscissa axis is in d-spacing units, which are
...@@ -401,8 +425,8 @@ calculated by the algorithm :ref:`AlignDetectors ...@@ -401,8 +425,8 @@ calculated by the algorithm :ref:`AlignDetectors
Preview Preview
^^^^^^^ ^^^^^^^
Once the fitting process has completed and you are able to view a Once the fitting process has completed and you are able to view a
focused workspace with listed expected peaks on the data plot, Select focused workspace with listed expected peaks on the data plot, the *Select
Peak button should should also be enabled. If the fitting fails with Peak* button should also be enabled. If the fitting fails with
the given peaks then the focused workspace will still be plotted so the given peaks then the focused workspace will still be plotted so
that user can select peaks manually. that user can select peaks manually.
...@@ -412,8 +436,8 @@ near the peak's center. ...@@ -412,8 +436,8 @@ near the peak's center.
To get help selecting the center of the peak, you may set the peak To get help selecting the center of the peak, you may set the peak
width by left-click and drag horizontally, while holding *Ctrl* key width by left-click and drag horizontally, while holding *Ctrl* key
as well. User may also zoom-in to the graph by holding left-click as well. Users may also zoom-in to the graph by holding left-click
and dragging on the plot, whereas zoom-out by simple left-click on and dragging a box on the plot, and zoom-out by left-clicking on
the plot. the plot.
When user is satisfied with the center position of the peak, you may When user is satisfied with the center position of the peak, you may
...@@ -489,7 +513,7 @@ prefix *Engg*). This includes :ref:`EnggCalibrate ...@@ -489,7 +513,7 @@ prefix *Engg*). This includes :ref:`EnggCalibrate
<algm-EnggCalibrateFull>`, :ref:`EnggVanadiumCorrections <algm-EnggCalibrateFull>`, :ref:`EnggVanadiumCorrections
<algm-EnggVanadiumCorrections>`, :ref:`EnggFocus <algm-EnggFocus>`, <algm-EnggVanadiumCorrections>`, :ref:`EnggFocus <algm-EnggFocus>`,
:ref:`EnggFitPeaks<algm-EnggFitPeaks>` :ref:`EnggFitPeaks<algm-EnggFitPeaks>`
and several other algorithms, explained in detail in the Mantid and several other algorithms, explained in detail in the following Mantid
algorithms documentation. algorithms documentation pages.
.. categories:: Interfaces Diffraction .. categories:: Interfaces Diffraction
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment