Replies: 2 comments
|
There are really two separate issues here
There is also an extensive scripting interface associated with GSAS-II. There is a code example showing how to do integration in a way that reuses intermediate results to improve speed: https://gsas-ii-scripting.readthedocs.io/en/latest/GSASIIscriptable.html#optimized-image-integration and another somewhat more complex example that shows how to distribute the computation across multiple cores: https://gsas-ii-scripting.readthedocs.io/en/latest/GSASIIscriptable.html#multicore-image-integration. (It should also be possible to use a cluster with some package like DASK). All of these should handle "caking" (azimuthal binning) and for that matter PDF computation. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
While using GSAS-II, I encountered two issues that I believe may be potential areas for improvement, and I would greatly appreciate your advice.
First, when processing a single 2D diffraction image (e.g., TIFF or CBF) by integrating it over different azimuthal angles across 360° (for example, one pattern every 5°), I usually export the results using the stacked CSV file option. However, I noticed that the exported datasets are not strictly ordered by azimuthal angle. Instead of being sorted as 0°, 5°, 10°, …, 355°, the data appear in a mixed order (for example: 0°, 20°, 25°, 30°, …, 100°, 105°, …, then 5°, 10°, 15°, …, 355°). This makes subsequent plotting and further data processing quite inconvenient. I am not sure whether this behavior is intentional or a limitation of the current implementation.
Second, I would like to ask whether GSAS-II can support batch 2D integration in a way similar to FIT2D or pyFAI, i.e., performing azimuthal integration for multiple 2D images automatically and exporting the integrated results as 2D (or image-like) outputs, such as TIFF files. At present, although azimuthal integration can be performed, it does not seem possible to apply this procedure efficiently to a large number of images in batch mode. In addition, the azimuthal ordering issue mentioned above further complicates such workflows.
**Based on these two points, I was wondering whether future versions of GSAS-II might allow:
Automatic sorting of azimuthal slices by angle when exporting stacked CSV files; and
More flexible batch processing options for 2D azimuthal integration and export.**
Thank you very much for your time and for your continued efforts in developing and maintaining GSAS-II. I would be grateful for any guidance or comments you may have.
All reactions