Repository navigation
|
sorry if i dont describe my problem clearly, i can had details if you need. So I want to move each background windows individualy to get the best approximation of the background noise for each of my 6 xray line. I m doing it with estimate_background_windows() for every line. But when i try to visualize it with the plot() function I dont know how to see it. Either i idividualy set them and I can't manage to see them, Thank you in advance ! |
Replies: 1 comment
|
If you follow the background subtraction example from the user guide. You can change the background windows manually by changing its value ( Did you try to use fitting? By default, |
If you follow the background subtraction example from the user guide. You can change the background windows manually by changing its value (
bwin the example) before passing it to theget_lines_intensity. It is a bit tedious to do it manually.Did you try to use fitting? By default,
create_modelwill use a polynomial of order 6 for the background. It may be more convenient as you don't have to specified the background windows and it will works much better with overlapping lines. Depending on your data, you may need to crop the low energy part of your spectrum to get the polynomial to describe well you background.