-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Densification of sparse datasets #448
Conversation
Just naive question, do you really need a Could'nt it be part of the convert tool? You should know that the input is sparse and you can request an image format as output. |
Anyway, i think you should use |
I can check if it can be merged to the convert part ... reasonable idea. |
I use densify-Bragg sinc this tool is the symmetric of sparsify-Bragg found in pyFAI
I changed the name of the CLI tool to |
I will jump in here with a series of potentially silly questions ... I guess this is a project for another beamline and so I missed the earlier discussions :
Perhaps I am blinded by my own code which is using the sparse pixel values to replace images. I did not think of asking for this for fabio - it is more like a panda's (or arrow) dataframe with (i,j,k,intensity) entries. |
Obviously, I have no objection to any of this. I just didn't understand what it is meant for. |
Hi Jon, Here are your answers:
This is the densification of the sparse-format produced by pyFAI (as part of the work performed for SSX: they are paying for this development). The sparsifaction code is currently only available in OpenCL and only efficient on GPU. Also, incorrect results have been observed on AMD GPU. The densification code is part of FabIO since it aims at a wider distribution.
The reading of the sparse format works in memory (open the file with fabio.open, access to frame of interest, retrieve your FabioImage, copy it to the format you want. Of course the densification tool (CLI tool this PR is about) saves in HDF5 with LimaImage or EigerImage format (so far) for subsequent processing.
Nobody asks for data coming from a PRNG, except that the metric (R-factor) obtained on protein data after reduction with XDS is much worse without noise than with noise. To get "likely" data, one needs to add noise. In the future, this feature may be removed but first, one needs to develop direct addapters to Dials,XDS or CrystFEL. This is a short-cut to have the beamline in production by this summer. Noise remains optional (and now modulated).
The azimuthal mean and deviation have been obtained from a sigma-clipping as described in https://www.desy.de/~barty/cheetah/Cheetah/SFX_hitfinding.html (steps 1 to 3 of peakfinder8). The sigma-clipping enforces a normal distribution which makes the usage of the standard deviation valid. Median and MAD are nice tools, but too slow I need to process a frame within one millisecond !
This is possible but this was not asked by the client: they want to process those files in the same way as other MX beamline. |
Densification -> LimaImage
related to #443