Changeset 1393
 Timestamp:
 Jun 24, 2014 9:39:31 AM (7 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/GSASIIimage.py
r1392 r1393 371 371 dy = ydata['center'][1] 372 372 D = ((dxx0)**2+dy**2+data['distance']**2) #sample to pixel distance 373 X = np.dstack([dx,dy,np.zeros_like(dx)]) 374 M = makeMat(data['rotation'],2) 375 N = makeMat(tilt,0) 376 NM = np.inner(N,M) 377 Z = np.dot(X,NM).T[2] 373 X = np.dstack([dx.T,dy.T,np.zeros_like(dx.T)]) 374 MN = np.inner(makeMat(data['rotation'],2),makeMat(tilt,0)) 375 Z = np.dot(X,MN).T[2] 378 376 tth = npatand(np.sqrt(dx**2+dy**2Z**2)/(distZ)) 379 377 dxy = peneCorr(tth,data['DetDepth'],tilt,npatan2d(dy,dx))
Note: See TracChangeset
for help on using the changeset viewer.