Quick guide to Quokka data reduction Katy Wood 2008-08-29 16:47 Note: Any data publication with quokka data reduced with the NIST macros should cite: Kline SR (2006) Reduction and analysis of SANS and USANS data using IGOR Pro. Journal of Applied Crystallography39: 895-900. The following is a ‘quick guide’ to treating quokka data. More detailled help about the macros is found in the ‘help’ buttons in Igor. Chose a workspace and copy across report files Data can be treated either on the instrument control PC, or the NBI PC on the left in cabin (DAV2-Quokka), or your own PC with Quokka Igor macros installed. If working on DAV2-Quokka, please work under D:\Quokka Users. Any old (pre- April 2012) reduced data is now under D:\NSVIS.backup. On DAV2-Quokka, your data can be copied across from J:\proposal\xxx where xxx is your proposal number. Report files are saved which associates the relevant transmission measurements with the scattering files – copy across the report files associated with your data to your working directory. These are under /data/current/reports on the Instrument control PC. J:\current\reports on the DAV2-quokka PC. Your local contact should give you the relevant sensitivity and mask files. Open Igor macros Open “Igor with Quokka macros”, then in the ‘Macros’ menu select ‘Load Quokka data reduction’. You should be able to see the following window:
Data Reduction Controls
Select working directoryOn the SANS Reduction controls, ‘Pick path’ (select path where all your data is), then ‘file catalogue’. A table with all data files + characteristics appears, this table takes some time to appear the first time, the small sign on the bottom left of Igor tells you it’s working....
Patch the data This step is only necessary on data taken prior to April 2011, later data does not need to be patched, unless advised by your local contact. Write correct λ and Δλ/λ to all files Select ‘patch’ on the ‘raw data’ tab. With a * in the ‘match string’ box, hit enter. The ‘files to patch’ drop down menu should then be populated with all the files in your working directory.
The wavelength and wavelength spread values have been measured experimentally and should be changed to 5.078 and 0.14, respectively. These values are for data collected on Quokka after October 2010. Enter these number into the ‘Wavelength’ and ‘Wavelength spread’ boxes, tick the boxes and click ‘Change All Headers in List’.
Determine beam centres for each configuration and write to file In the green ‘patch’ window, select the ‘SDD’ box under ‘Match String’.
Enter the SDD distance of the configuration you wish to treat in the ‘Match String’ box and hit enter. If the SDD=1.31531, writing 1.3* is enough. The drop down menu under ‘Files to patch’ should now only contain the files at the specified SDD distance. Select a transmission file for the first configuration you wish to treat by usinig the ‘Display raw data’ in the ‘raw data’ tab. Select the direct beam using the marquee, right click and ‘find beam centre’. The X and Y-centers will be displayed in the Igor ‘history’ window (cntrl +J will bring this window to the front if it is hidden). Copy and paste the beam centre values which are displayed in the Igor ‘history’ window into the ‘patch’ window. Then ‘change all headers in List’. By selecting ‘File catalog’ again, the table ‘Data File Catalog’ will be refreshed and the columns Xcenter and Ycenter should be filled. Repeat this step for the other configurations you wish to treat.
Calculating transmissions Read the report file & create table Select ‘transmission’ in the ‘raw data’ tab. ‘pick path’ then select the xml report generated by gumtree, then ‘List Files’. A table is then created with all the correct file associations. Calculate transmissions Select the ‘empty beam’ transmission file for the first configuration you want to treat by clicking on the appropriate box in the table (should appear in the column ‘EMP_Filenames’), and click ‘set BCENT file’ on the ‘calculate transmissions’ window (this sets this to beam centre). Click ‘Set XY Box’ and use the square to select the beam centre. Right click and select ‘SetXY box coords’. Then highlight the scattering files in the ‘scattering files table’ at the configuration for which you’ve just set the empty beam transmission, and click ‘calculate selected files’ in the Calculate transmissions window. The S_Transmission column in the ‘ScatteringFiles’ window should now be populated. Repeat this step for the other configuations. Click ‘done’ when finished with transmissions’. If you click ‘File catalog’ the data File catalog window will be updated, and you should be able to see the transmission values. These are ‘patched’ into the data files. If your report is incomplete (ie you have stopped a MSW early and the different files are now in different reports) you can easily modify the report by opening it in a text editor. Reduce data This section is not complete, but gives a quick overview. More info is available in the NIST help document. In the ‘reduction tab’ choose ‘build protocol’. The following appears:
Leaving ‘ask’ will mean that during the reduction Igor will prompt you to select the file you wish to use: ‘Sample’ will typically remain ‘ask’. ‘Background’ is a scan of the blocked beam. ‘Empty Cell’. If you are always subtracting the same empty cell/buffer run this can be set to the empty file by clicking on the appropriate ‘filename’ in the ‘Data File Catalog’ table, then clicking ‘set EMP file’ (or the filename can be copied and pasted in). (If you are using an empty cell from a previous run, you need to copy the file to the current directory – these will have different beam centres, unless obviously far off warnings about this can be ignored). ‘Sensitivity’. Take the sensitivity file in S:\Bragg\Quokka\Sensitivity and standards\ or one given by your local contact. Copy and paste the sensitivity file name or select it in the ‘data file catalog’, then ‘set DIV file’ on the data reduction window. ‘Absolute’ – for absolute scaling. Click ‘set ABS params’, then select method of absolute calibration ‘Empty Beam Flux’. Select the empty beam transmission file, and draw a box around the beam with the cursor, then click ‘continue’. ‘Mask’. Take the mask file in S:\Bragg\Quokka\Sensitivity and standards\ or one given by your local contact, or make up your own! ‘Average’ can be left as is for isotropic data. The data reduction protocol that you’ve now created can be saved ‘Save Protocol’. You can now reduce a file by selecting ‘Reduce a file’ directly in the blue ‘Data Reduction Protocol’ panel, or if you have saved the protocol, directly on the yellow ‘SANS Reduction Control’ panel. Via the ‘SANS Reduction Control’ panel you can then select the protocol (useful if you want to make multiple protocols). During the reduction, you’ll be prompted to select files to use. Each time Igor asks ‘Do you want to add another xxx file’? This is for if you wish to add multiple runs together, if you only have one run, select no. Reduced data are then saved in the file: QKK00xxx.ABS To merge several configurations together: 1D Ops, ‘sort’ button