Denis (from ISS beamline) requested a new schema be added to the postprocessing operations for aligning energy grids from multiple spectra. Currently there is a StandardizeGrid UnaryOperator, which operates on single spectrum and standardizes the energy grid to a uniformly spaced values (i.e., new_grid = np.linspace(self.x0, self.xf, self.nx)).
However XAS spectra are often not sampled on uniformly spaced grids because there is more information at different regions of the spectrum.
This new schema will work in the following way:
- operates on a group of spectra (
MimoOperator)
- select one "master energy grid" from the group (this could be the first spectrum passed by default)
- align all spectra in group to "master grid" via
InterpolatedUnivariateSpline
Denis (from ISS beamline) requested a new schema be added to the postprocessing operations for aligning energy grids from multiple spectra. Currently there is a
StandardizeGridUnaryOperator, which operates on single spectrum and standardizes the energy grid to a uniformly spaced values (i.e.,new_grid = np.linspace(self.x0, self.xf, self.nx)).However XAS spectra are often not sampled on uniformly spaced grids because there is more information at different regions of the spectrum.
This new schema will work in the following way:
MimoOperator)InterpolatedUnivariateSpline