Simulation grid problem when not square shape
|Status:||Archived||Start date:||02 Aug 2012|
When the simulation grid in the python GISASExperiment class is set using setDetectorParameters and the number of points in x and y differ the resulting image is mixed up.
This seems to be an index issue where x and y columns/lines are mixed up.
#3 Updated by a.glavic almost 8 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Was only a problem with the mesh grid creation in the python script as the output matrix of GISASFW is transposed to what numpy expects.
To resolve replace:
Y,X = pylab.meshgrid(y,x)
pylab.pcolormesh(X,Y,output, norm=LogNorm(0.1, 1e+05) )
X,Y = pylab.meshgrid(x,y)
pylab.pcolormesh(Y,X,output, norm=LogNorm(0.1, 1e+05) )