Ticket #1066 (closed: fixed)
Allow cropping of ragged workspaces
Reported by: | Russell Taylor | Owned by: | Russell Taylor |
---|---|---|---|
Priority: | major | Milestone: | Iteration 21 |
Component: | Keywords: | ||
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description
From Laurent:
Can we please have a version of CropWorkspace that crop even if the range in X is different for each spectra. At the moment the algorithm is not very useful as you can only crop in TOF or if you have rebinned your data to a common grid, which usually means loosing resolution.
Crop could keep the same X values and simply turn the Y and E values outside the cropping range to zeros.
Change History
comment:1 Changed 11 years ago by Nick Draper
- Owner set to Russell Taylor
- Status changed from new to assigned
comment:3 Changed 11 years ago by Russell Taylor
(In [3648]) Enhance CropWorkspace so that it can operate on so-called 'ragged' workspaces. Previously, these would fail validation, now any data+error values that fall outside the X range given are set to zero. So note that in this case you get back a workspace that has the same number of bins, whereas with a workspace with common binning you would get one with fewer bins as the output. Re #1066.
comment:5 Changed 11 years ago by Russell Taylor
- Status changed from accepted to testing
- Resolution set to fixed