AdvancedPhotonSource / pyXpcsViewer

A python-based interactive visualization tool to view XPCS dataset
Other
8 stars 2 forks source link

Background subtraction for xpcs_viewer like pySAXSE #17

Closed qzhang234 closed 2 years ago

qzhang234 commented 2 years ago

image

qzhang234 commented 2 years ago

A difference between 8-ID-I SAXS data and 12-ID-B data is that the 8-ID-I SAXS is not normalized by the transmission coefficient. The transmission coefficient can be calculated from TransmissionMonitor/I0Monitor. I would also add normalization to the full flux in case people use attenuations, which is 300k per second on the upstream ion chamber (I0Monitor).

So what I'm thinking is, maybe add two more boxes (visualization options) to 1D SAXS, one normalized by the transmission and flux (in case there is attenuation) and the other as absolute cross-section (normalized 1D SAXS from sample subtracted by normalized 1D SAXS from background. The background measurement will be specified by the user). Then if we could incorporate this in the script mode so that users can export the 1D SAXS array for publication figures, that would be a home-run.

Thank you!

image

qzhang234 commented 2 years ago

Also per Xiaobing's suggestion, maybe add the option to display both the SAXS 1D before and after background subtraction?

qzhang234 commented 2 years ago

Moving the discussion thread to another repo