- Timestamp:
- Jun 24, 2014 9:39:31 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIimage.py ΒΆ
r1392 r1393 371 371 dy = y-data['center'][1] 372 372 D = ((dx-x0)**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**2-Z**2)/(dist-Z)) 379 377 dxy = peneCorr(tth,data['DetDepth'],tilt,npatan2d(dy,dx))
Note: See TracChangeset
for help on using the changeset viewer.