SasView / sasview

Code for the SasView application.
BSD 3-Clause "New" or "Revised" License
51 stars 41 forks source link

Add corrected intensities to Save Extrapolation output in Corfunc #2138

Open smk78 opened 2 years ago

smk78 commented 2 years ago

In Corfunc, 'Save Extrapolated' currently writes a 2-column CSV file of Q vs Intensity. However, the intensity values are those on the same value scale as the experimental input data.

Prior to extrapolation, and subsequent transformation of the I(Q), a (flat) background level is determined and subtracted.

Describe the solution you'd like Please could we add a 3rd column to the Save Extrapolate output - the intensity minus the background value.

butlerpd commented 2 years ago

Questions for @smk78 -- the two column q,I sounds like a file that would be read by SasView ASCII reader and interpreted correctly? If so the solution proposed may not be ideal since that would mean that SasView would slurp it in happily as q, I, uncertainty on I rather than a different I? if the file is not one that would SasView could interpret as data this concern goes away of course.

smk78 commented 2 years ago

Ah ha. Good point @butlerpd . In which case maybe writing two files with _uncorrected and _corrected in the filename? Having SasView able to read these files is, of course, potentially useful!