[GSAS-II] Accessing image numpy array is gsas-ii scriptable

Gallington, Leighanne C. Gallington at anl.gov
Tue May 5 20:34:52 CDT 2020


Hi Bob and Brian,
I've been trying to incorporate GSAS-II scriptable into some python code I'm writing.  I've figured out how to get the 2theta map, mask, and and I/pola maps out, but I was never able to figure out how to retrieve the numpy.array for each image.  As a workaround, I read the images into my own code using the relevant bit of the tif reader code from GSAS-II (and I'm belatedly realizing as I write this email that I have could just modified Fill2thetaAziumthMap to output intensity in addition to intensity/pola), but it would be nice to be able to get that array by calling a function.  Also, it would be nice if the arrays from that function were output as masked 2048*2048 arrays instead of 4+M*1 compressed arrays.  Any thoughts?
Leighanne

--
Leighanne C. Gallington
Assistant Chemist
Advanced Photon Source (X-ray Science Division)
Argonne National Laboratory
Argonne, IL  60439
gallington at anl.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.aps.anl.gov/pipermail/gsas-ii/attachments/20200506/910799dd/attachment.html>


More information about the GSAS-II mailing list