To be quite honest, I don't know very clearly what a background
subtraction is. I think that the intention of the "Dark Current" input
on the Calibration page which is grayed out is some sort of correction
that has to do with how much of a signal the detector would pick up
when the x-ray source was turned off. And I think this correction is
applied to the 2D diffraction data. But nobody could actually give me
any information on what the dark current file format is so I was not
able to actually implement the feature. If anybody could actually
explain to me how a Dark Current subtraction worked, I would be happy
to add it in.
I have never used or even opened up XRD-BS, But from my very hazy
understanding of what XRD-BS does, I think that it applies some sort
of correction to the 2D integrated data. I have no objection to
migrating XRD-BS into my code, but I am very ignorant at this point
about how to do it and we should probably discuss with Sam and Apurva
whether they would really like to see this done.
About using XRD-BS to do the analysis, I assume that this should work
fine. I really don't want to write into my code a compatibility
feature which makes my output look like Fit2Ds because it would
clutter up my program and only be needed temporarily.
If you want, I will be happy to write you a short python script that
can convert intensity integrated data that my code spits out into code
that XRD-BS can read in. Better yet would be to just make Sam update
his code to read in intensity integrated data the way I output it. He
seems to be pretty busy lately, though, so I am not sure how much he
would want to do this.
Josh