Closed
Description
Executive summary
Normalise data by monitor counts
Context and background knowledge
This issue is an alternative to #30. In some cases users want to normalise detector data by a monitor. This can be either
- normalization by a wavelength spectrum of the monitor,
- normalization by an integrated monitor (single number).
The user needs to be able to pick one or the other.
Inputs
- Data array for detector counts in wavelength
- Data array for monitor counts
- In wavelength if normalising by wavelength spectrum.
- Arbitrary coordinate when normalising by integrated monitor.
Methodology
Normalisation by wavelength spectrum
Either histogram the monitor into the same bins as the detector data and then divide. Or use sc.lookup
to account for different binning. (See old WISH workflow.)
Normalisation by integrated monitor
Divide detector data by sc.sum(monitor)
.
Outputs
Normalised data array.
We should probably ensure that the data array has the same units regardless of which monitor normalisation was used.
Which interfaces are required?
Integrated into reduction workflow, Python module / function
Test cases
Dummy test data.
Comments
No response
Metadata
Metadata
Assignees
Type
Projects
Status
Done