The fold command has three sub opterations that:
Fold a list of gamma spectra on a gamma gate.
Remove a fold from a gamma spectrum .
List the folded spectra (that match a glob pattern).
The URL below applies folds to spectra:
The gate query parameter specifies a gate
which must be a gamma gate. One or more spectrum
query parameters specify the spectra to be folded with that gate.
the spectcl/fold/apply URLs do not return anything useful other than the status.
The URL below lists folded spectra that match the pattern query parameter (treated as a glob pattern). If the pattern query parameter is not supplied, it defaults to *
It is important to note that the pattern matches spectra not gates. The detail part of the return data is an array of JSON objects. Each object has the following attributes:
Name of a folded spectrum.
Name of the gate used to fold the spectrum.
Spectra without folds will not be listed in the array.
The following URL is used to unfold a spectrum:
The spectrum query parameter specifies the name of the spectrum from which to remove the fold. Nothing useful other than the status attribute of the reply is returned on success.