Main Page

From Tobyfit

Jump to: navigation, search

Contents

Tobyfit: fitting of resolution broadened models to data from time-of-flight chopper spectrometers

Fit plot
Example plot of fit (red), data (green) and background (blue) from Tobyfit

Introduction

Tobyfit is a program for simulation and least squares fitting of single crystal neutron scattering data. The original single processor software provided its own command line driven interface. In this enhanced version a flexible Matlab based GUI interface is provided which allows easy display and selection of data and parameters to be fitted along analysis of the results. In addition it provides a job management layer to submit and run the fits on remote grid resources and local machines. The fitting code itself has been parallelised to exploit both multi-core local machines and large MPI based clusters. This allows fitting of complex models to the very large data sets that are being generated on newer instruments. For jobs submitted to grid resources the data is stored in the Storage Resources Broker (SRB) system which allows fast and reliable access to the data and results.

An example of the fitting output for a 1D cut is shown to the right.

Initial installation

Installation of the enhanced version of Tobyfit requires Matlab and access to grid resources to gain the full benefit of large scale computing. Without grid access it is still possible to use the software but only running on the local host.

System requirements

  • Operating system: Windows XP or Linux. Software has run on Mac OS X, using grid resources only, but not fully tested. Windows Vista and Windows 7 not tested, but should be compatible. Linux 32 and 64 bit supported. Windows 64 bit not tested.
  • Matlab version 7.1 or later with Java 1.5 or later. For Isis staff, Matlab software can be downloaded from the location \\ndainstall\installs\Applications\MATLAB. This is licensed software and requires either an individual licence file or access to a floating license.
  • For local host support on Windows: Intel Fortran V9 or later.
  • For local host support on Linux systems: Intel Fortran V9 or later.
  • Recommended hardware: Dual core Intel or AMD x86 or x86-64 processor with 2GByte memory, 500Mbytes free disk space.

Detailed installation instructions

The installation guide for Windows systems is available here: tobyfit windows install.

The Linux installation guide is available here: tobyfit linux install.

Updating an existing installation

If you have already installed Tobyfit recently and just wish to update to the latest version of the GUI you can follow the instructions tobyfit update page.

Running Tobyfit

Once the software has been installed it can be started by running Matlab and entering the command "tobyfit". Some simple examples of using Tobyfit are given here: tobyfit examples. For full details on running the program see the tobyfit userguide.

Benchmark tests for Tobyfit

A small set of test scripts have been defined. These can be run to test the server code when it is rebuilt with a new compiler or when changes are made to the code. These scripts also help demonstrate how the command line interface can be used to automate running simulation and fitting operations.

Details of these tests are in Reference test scripts.

Notes on recent changes

Notes on recent changes to Tobyfit are given in tobyfit developments.

FAQ

Common problems with installing and using Tobyfit are discussed in the following FAQ pages.

For developers

The Isis SVN server holds the latest version of the Matlab GUI software. You need to be a registered user to access this SVN repository.

To build a distribution version of Tobyfit you can extract the package tf_dist from the SVN. This is a set of directories and a Makefile which will build a zip from the current SVN version of the GUI. Note that this requires Gnu make and command line svn and zip. To build a clean version without unwanted .svn directories you should do "svn export https://svn.isis.rl.ac.uk/Tobyfit/trunk/tf_dist tf_dist". Then go into the new directory and do make default to build the latest version.

Personal tools