Changeset 1694 for trunk/GSASIIimage.py
 Timestamp:
 Mar 10, 2015 11:35:24 AM (7 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/GSASIIimage.py
r1665 r1694 49 49 npatand = lambda x: 180.*np.arctan(x)/np.pi 50 50 npatan2d = lambda y,x: 180.*np.arctan2(y,x)/np.pi 51 52 51 debug = False 53 52 … … 428 427 'Give azimuth value for detector x,y position; calibration info in data' 429 428 return GetTthAzmDsp(x,y,data)[1] 429 430 def meanAzm(a,b): 431 AZM = lambda a,b: npacosd(0.5*(npsind(2.*b)npsind(2.*a))/(np.pi*(ba)/180.))/2. 432 azm = AZM(a,b) 433 quad = int((a+b)/180.) 434 if quad == 1: 435 azm = 180.azm 436 elif quad == 2: 437 azm += 180. 438 elif quad == 3: 439 azm = 360azm 440 return azm 430 441 431 442 def ImageCompress(image,scale):
Note: See TracChangeset
for help on using the changeset viewer.