|
|
|
Pour utiliser sur le web | Pour imprimer en haute résolution |
|---|---|
Télécharger PNG | Télécharger TIF |
Télécharger JPG | Télécharger EPS |
The Computing for Science (CS) group supports ILL scientists, students and visitors in a number of activities including data analysis, instrument simulation and sample simulation.

Clickfit - Interactive data fitting
for Fitfun version 7.0 onwards, R. Ghosh, ILL, August 2006 Summary This graphical controlling program allows a diverse set of programs for fitting data to be constructed easily. The fitting engine uses the fitfun library which incorporates Powell's resilient minimisation routine VA05A, calculating numerical derivatives. This can be applied to a large range of problems. Apart from controlling fits two aspects of major interest in the present version are:
The User's View of ClickfitThere are two versions of the program, Clickfit for treating one or sequences of individual datasets. Clickfit_m is adapted to treat the case of controlling simultaneous fitting of several datasets, where more selective control of fitting parameters is required. The programs use a number of common components; to simplify relocating onto other computers the fields here contain the important placement of the graphics package PGPLOT and the current default program directory. The latter would normally contain the executable programs and their clickfit configuration files and variants, and thus make it simple to re-install the set on another computer with a different directory structure. Once selected these options may be edited. Clicking on ACCEPT starts the selected program, passing to an optional PRELUDE page. The PreludeTo allow programmers a wide choice of additional options before entering the principal part of the fitting program there is a configurable prelude section where values can be entered for later use. Here a number of options for wetlay are shown: After any edition pass to the next step with the ACCEPT button. Functions offered by ClickfitEssentially the same GUI interface routines can control either single data fits (using library fitfun v7.0) or simultaneous fitting of several sets (fitfun_m v7.1) This section offers most of the original features of the fitfun command line. Menu optionsFile Buttons Data treatment proceeds through the stages of READ/Trial/Iterate../(SAVE)/EXIT SequencesBefore a sequence can be treated an initial dataset must be fitted to set the initial parameters to approximate values for the sequence. The information for each member of the sequence is read from a control file; a simple example follows: Fileseq.fsq... When (typically) only a filename is used for each set of data to be treated the Make sequence button will bring up a window to create a control file automatically, which is then used to treat the (filtered) filenames therein: The filter allows an initial set of files to be chosen; this leads to the next window to allow a selection and order to be completed with the panel allowing single/multiple selects etc., and the fits performed. Installation and Use The program scripts may be found at: PC and WindowsThe program is started as a batch file (.bat) It is assumed that the program is run using the prop package and this contains all the prerequisites. The two files clickfit.bat and clickfit_m.bat are simply copied to the project program directory and (if necessary) added to the program selector. Unix/Linux/OSXThe plotting environment variable PGPLOT_DIR should be set to find the PGPLOT xserver program and fonts. The clickfit.tcl and clickfit_m.tcl files may require editing on the first line to use the local version of wish, alternatively they may be started with the command % wish clickfit.tcl Applications AcknowledgementsThe routines have been tested with the suite of programs for neutron reflectivity data analysis programs and the encouragement of the author, Professor A. Rennie who has made them available for use at the ILL, is gratefully acknowledged here. |