|
The Radware Plugin
|
|
SpecTcl Home General Information User Guide SpecTcl Plugin Guide
Obtaining and Installing
This page describes a plugin that allows SpecTcl to read and write
spectra in Radware format. Radware is a gamma ray data analysis package
written by David Radford of Oak Ridge National Laboratory. The plugin
incorporates the spectrum I/O code from Radware with the permission of the author.
Using the plugin
The plugin is installed in $SpecTclHome/lib. To incorporate the plugin in SpecTcl
3.2 or later:
load $SpecTclHome/libradwareio.so
The plugin adds two commands to SpecTcl:
- rwwrite writes a spectrum to file in radware format
- rwread reads a spectrum from file in radware format
The usage for these commands (see however "Scope and restrictions below) is:
rwwrite
rwwrite spectrum file
Where:
- spectrum is the name of the SpecTcl spectrum to write to file.
- file Is the name of the file to which the spectrum will be written.
If the file already exists it will be overwritten.
rwread
rwread ?-maxchans n? filename
Where:
- -maxchans n allows you to specify that the maximum number of channels in the file
is n. By default, this is 8192. Note this parameter is needed because, Radware files
have no mechanism to determine the number of channels in a spectrum file without reading the file.
-
filename is the name of the file to read
- The name of the spectrum will be generated from the information in the file header
- Radware spectrum files do not provide sufficient information to reconnect them to their
parameters, therefore this command creates a snapshot spectrum
Top
SpecTcl Plugin Guide
Programmer's Guide
Scope and restrictions.
There are some restrictions associated with this plugin:
- Only 1-d spectra can be written and read (not matrices).
- Only one spectrum per file
- Spectra read in cannot be reconnected to the analysis
Top
SpecTcl Plugin Guide
Programmer's Guide
fox@nscl.msu.edu
Last modified: Sun Apr 8 19:39:00 EDT 2007