Changeset 2425 for trunk/GSASIIimage.py
 Timestamp:
 Aug 15, 2016 1:21:20 PM (5 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/GSASIIimage.py
r2421 r2425 379 379 tilt = data['tilt'] 380 380 dist = data['distance']/cosd(tilt) 381 x0 = d ata['distance']*tand(tilt)381 x0 = dist*tand(tilt) 382 382 phi = data['rotation'] 383 383 dep = data['DetDepth'] 384 LRazim = data['LRazimuth']385 384 azmthoff = data['azmthOff'] 386 385 dx = np.array(xcent[0],dtype=np.float32) 387 386 dy = np.array(ycent[1],dtype=np.float32) 388 D = ((dxx0)**2+dy**2+d ata['distance']**2) #sample to pixel distance387 D = ((dxx0)**2+dy**2+dist**2) #sample to pixel distance 389 388 X = np.array(([dx,dy,np.zeros_like(dx)]),dtype=np.float32).T 390 389 X = np.dot(X,makeMat(phi,2)) … … 397 396 dsp = wave/(2.*npsind(tth/2.)) 398 397 azm = (npatan2d(dy,dx)+azmthoff+720.)%360. 399 G = D/d ata['distance']**2 #for geometric correction = 1/cos(2theta)^2 if tilt=0.398 G = D/dist**2 #for geometric correction = 1/cos(2theta)^2 if tilt=0. 400 399 return np.array([tth,azm,G,dsp]) 401 400
Note: See TracChangeset
for help on using the changeset viewer.