DAN-SANS: user-friendly approach for SANS data reduction
Vitaliy Pipich, 2007-2021
Probably, small angle neutron scattering (SANS) is one of “easiest” neutron-related-method to understand technique and to interpret obtained results for a not experienced user: adjustable pinhole collimator, sample, and 2D-detector. The user could have the same illusion about SANS also after measurement and data reduction: if sample scatters well, instrument works stably, and number of instrument configurations is limited to one… But, in order to measure a sample in the full Q-range at a classical non-TOF SANS instrument, number of instrument configurations should be higher than three. This increases in geometrical progression number of calibration files; and data reduction becomes already really painful.
The aim of SANS data reduction interface “DAN-SANS” developed within the cross-compiled software package QtiSAS [ www.qtisas.com ] to keep “illusion of simplicity” for a starter and “filling of full control” for a guru of small angle scattering. “Illusion of simplicity” is saved by step-by-step definition of two script tables, namely a table of configurations and sample table. It allows processing of all measured datasets within “5 minutes principle”; re-treatment with changed parameters will take only few seconds.
Run-time creation/configuration of data-reduction-algorithm allows to an instrument responsible to optimize data treatment procedure correspondingly to the current status of the instrument or experiment and to control data output at every step. Extraction of needed parameters from files is controlled by universal header-reader tool. The header-reader could read free-format ASCII files with known position of parameters; find parameters by a key sequence; extract data from encoded-data-formats like XML and YAML. It allows integrating most of SANS instruments and data-treatment-procedure looks similar for all of them. “Instrument-free” approach means “independence” from data format; and “dependence” on algorithms of data treatment.
Now, this software package is standard data-reduction-tool for two classical SANS instruments KWS-1 and KWS-2 as well as for Very-high resolution focusing SANS diffractometer KWS-3 of the Jülich Centre for Neutron Science (JCNS) at FRMII reactor in Garching (Germany). Behind current version there are many years of intensive user- and instrument operation as well as source evolution.
“Info” Page:
✔ Introductional Page of DAN.SANS;
✔ “Start New Session” button: new session could be started;
✔ “Load Saved Session”. button: existing session could be opened;
✔ Current Version of DAN.SANS is shown below.
“Options” Tab:
✔ Selection of the “SA(N)S Instrument & Mode” of Data Reduction
✔ Selection of the “Input Folder” (rawdata) & “Output Folder” (ASCII-folders will be created here)
✔ Parameters of the SA(N)S instrument is saved in the “Configuration” Tab. Could be modified in-situ.
✔ Parameters needed by DAN.SANS are pre-defined by the implemented algorithms. In this tab there is defined how to extract any needed parameter from a header. In the first drop-list the header type could be selected. Three types of headers are allowed:
— Free ASCII Format [standard]: there are several ways to find parameter in the header (line #position; by {string}; or could be “const”ant).
✔ Parameters needed by DAN.SANS are pre-defined by the implemented algorithms. In this tab there is defined how to extract any needed parameter from a header. In the first drop-list the header type could be selected. Three types of headers are allowed:
— Free ASCII Format [standard];
— XML format;
— YAML format : first column→ YAML-sequence to find a needed string; second column → how to extract needed info from the string