a non-linear least squares cell refinement program with regression diagnostics
UnitCell is a program which runs on Macintosh computers and under Windows. It refines cell parameters from powder diffraction data. Unlike most existing cell refinement programs it does not require initial estimates for cell constants; it uses a non-linear least squares method, which allows the refinement to be carried out on the actual observed data (e.g. two- theta in the case of angle-dispersive monochromatic diffraction, energy in the case of energy-dispersive diffraction). Furthermore, the program incorporates regression diagnostics, particularly deletion diagnostics, to aid in the detection of outliers and influential data which could be deleterious to the regressed results. These diagnostic tools are particularly valuable in assessing the sensitivity of the calculated results to the observations of individual Bragg peaks.
The method and implementation are described in the following paper:
UnitCell provides a graphical interface by which various options and modes of operation may be easily selected, with data input via standard text files.
Earlier versions of the program used unweighted least squares, generating uncertainties from the residuals in the data. However, when the reflections had 2thetas which happened to match the calculated results too well, the resulting cell parameter uncertainties were unreasonably small. This can also happen when there are too few indexed reflections. So a minimum error on 2theta is now assumed. If the user judges that this is too small he/she can scale the errors directly (see info file). It is now the user's responsibility to manage the uncertainties.
The program now weights each hkl reflection, so that regressing with 2theta, energy, d-spacing or Q gives essentially the same result. However, a minimum default uncertainty of sigma(2theta) = 0.005 deg is now assumed as the weighting. This value is transformed into energy, dspacing or Q for regressions involving minimising those quantities.
The executables, sample input files, and an info file explaining the use of the program and the deletion diagnostics are available here:
download: mac OSX version
download: Windows version (64-bit version also available)
download: Linux version