The results from fits and integrations can be saved to a file. As with
the peaksearch one can decide to save the data as binary or
asciitext. Again data can be loaded from binaryfiles only.
To save data to the binaryfile spectrumname.fit the following
command
tv fit write
will be used or the hotkey Sf. To read data from this file the following commands can be used:
tv fit read bin {position first last next previous index}
tv fit read fit {first last next previous}
tv fit read integration {first last next previous}
tv fit read record {first last next previous}
The first command scans the file spectrumname.fit for saved fits and loads them. A fit can be loaded for a certain position given by the cursorposition or a channelnumber. To load the first set of information one will usually use the option first (hotkey Rff). The options first and last load all entries from the file ``energetically'' sorted. If one wants to load a certain fit and knows the position in the file, one can use the option index and give the according number as an argument. Besides the markers and parameters for the selected fit, the positions for all saved fits and integrations are read and displayed in the graphic window by their bin markers at the upper frame. Using these bins further fits can be loaded easily with the following command:
tv fit read bin position cursor
For this operation the hotkey Rbc can be used
either.
The command tv fit read fit ... is intended to load fits only,
but it doesn't offer the easy way with the bins.
The third command does the same with integrations.
To load fits and integrations the latter command ca be used. With this
command the entries are read from the file in the order they were
saved.
All hotkeys for saving and loading fits and integrations are given in table 4.9.
Rbc | tv fit read bin position cursor; | Reads the fit at the cursorposition. |
---|---|---|
Rbf | tv fit read bin first; | Reads the first fit from the fitfile. |
Rbn | tv fit read bin next; | Reads the next fit from the fitfile. |
Rbp | tv fit read bin position cursor; | Reads the fit at the cursorposition. |
Rff | tv fit read fit first; | Reads the first fit from the fitfile. |
Rfn | tv fit read fit next; | Reads the next fit from the fitfile. |
Rif | tv fit read integration first; | Reads the first integration from the fitfile. |
Rin | tv fit read integration next; | Reads the next integration from the fitfile. |
Sf | tv fit write; | Writes a fit or integration to the fitfile. |
To write the results from a fit or integration as asciitext to a protocolfile, the file must be opened first with one of the commands:
tv fit result-file open resultfile
tv fit result-file append-open resultfile
The results are saved with the command
tv fit print
After writing all results, the file can be closed with the command
tv fit result-file close
or it will be closed automatically at leaving TV.