I’m working with analysing sets of data which involves measuring collimated x-rays from an indirect dosimeter. The data is eventually readout as a two dimensional map of the piece of glass, which acts as a dosimeter, and then the beam is rotated until it is vertical and then the map is averaged into a one dimensional profile.
I’ve managed to play around with the directionality plugin for orienting the beam, but my next problem is involving how to remove any outliers from the averaging that may result from imperfections in the glass, such as scratches and bubbles. Is there some way to correct for this problem using a plugin? I’ve considered writing a macro that would compare the centre point of the FWHM of each profile against a line that would fit down the centre of the beam, but I’m not exactly sure how to go about doing this.
Any help would be tremendous. I’ve attached an example of the profile that I’m typically working with, although the widths and shape of the beams can vary by quite a bit.