Search PSI mSR runs database

The SearchDB.cgi CGI script helps the user search through the mSR runs database for specific phrases in the run title, comments, field and temperature. It is a very basic search, which means it looks through text based database files rather than through the mSR data files themselves. The advantage of this approach is speed, with the disadvantage that it is not thorough or detailed.

Another use for this script is “of the fly” downloading and converting data files to your local disk. This utility can be very useful for users who want to use their own programs or computer to analyze the data or make a backup of the data in your home institute.

Please do not abuse this utility by trying to download a huge number of data files. Such activity will be monitored and if needed action will be taken.

Finally, this script is integrated with the musrfit.cgi which allows you to plot and fit selected runs easily and quickly online using any web browser.

Thank you for using this script. Please contact Zaher Salman <zaher.salman “at”> if you have any problems, suggestions or comments.


Searching for phrases

The SearchDB.cgi script can be reached using any web browser, also from outside PSI, by following this link

You will then see the following html form:

In what follows we will explain the meaning and use of the different fields,

You may also reset the search limits and phrases by pressing on the “Reset” button. Once the search limits and phrases are give, press the “Search” button to run the script. The search results will be displayed in the following format:

Depending on the spectrometer, LEM or bulk, the displayed information may vary due to the different structure of the database files.

Downloading data files

Note that at the top of the results page you will have a “Download” button. This button provides an easy and quick utility to download the data files of a selected number of runs. Next to each search result line there is a check box, which can be used to select any number of runs. Once selected, the user can choose his preferred data format (depending on the user's analysis program etc.). The formats available currently are:

The user may also choose to re-bin the histograms in the data file to reduce the size of the files or to obtain a suitable number of bins as required by a specific analysis software. The re-binning factor is optional and can be provided in the “Bin by:” field. Once you have selected the runs, data format, and binning factor, press on the “Download” button. The script will then prepare the data files as a compressed archive and serve it to the user as shown here:

Plotting selected runs

The selected runs from the search results can be also plotted and fit immediately using your browser. This can be simply done by selecting the runs (be gentle, a few 10s of runs are too many for our poor web server) and then pressing on the “Plot Selected” button at the top of the results page. This will redirect you to another script, the musrfit.cgi, which will allow you to plot and fit the data:

The SearchDB.cgi script sets the run parameters for the fit/plot correctly, i.e. you should not change any field above the “Choose type of fitting function” line.

Please read the musrfit.cgi documentation for more details.