\(\renewcommand\AA{\unicode{x212B}}\)

RemoveSpectra v1

../_images/ImageNotFound.png

Enable screenshots using DOCS_SCREENSHOTS in CMake

Summary

Remove spectra from a given workspace, from a list, if spectra is masked, or if spectra has no detector.

See Also

ExtractSpectra

Properties

Name

Direction

Type

Default

Description

InputWorkspace

Input

MatrixWorkspace

Mandatory

OutputWorkspace

Output

MatrixWorkspace

Mandatory

WorkspaceIndices

Input

unsigned int list

A comma-separated list of individual workspace indices to remove

RemoveMaskedSpectra

Input

boolean

False

Whether or not to remove spectra that have been masked from the inputworkspace.

RemoveSpectraWithNoDetector

Input

boolean

False

Whether or not to remove spectra that have no attached detector.

Description

The RemoveSpectra algorithm allows for removing of a spectra from a given workspace, allowing specification of workspace indices, or multiple forms of detected removal.

This would work well for repairing “Bad Data” which for RemoveSpectraWithNoDetector or RemoveMaskedSpectra.

Categories: AlgorithmIndex | Transforms\Splitting

Source

C++ header: RemoveSpectra.h

C++ source: RemoveSpectra.cpp