Changeset 267 for trunk/GSASIIimage.py
- Timestamp:
- Apr 20, 2011 1:09:53 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIimage.py
r265 r267 293 293 LRazim = data['LRazimuth'] 294 294 azmthoff = data['azmthOff'] 295 azmRot = data['azmthRotate']296 Full = data['fullIntegrate']297 295 dx = np.array(x-cent[0],dtype=np.float32) 298 296 dy = np.array(y-cent[1],dtype=np.float32) … … 303 301 dsp = wave/(2.*npsind(tth/2.)) 304 302 azm = (npatan2d(dx,-dy)+azmthoff+720.)%360. 305 if Full: 306 azm = (azm+azmRot+720.)%360. 307 else: 308 azm = np.where(azm<LRazim[0],azm+360.,azm) 303 azm = np.where(azm<LRazim[0],azm+360.,azm) 309 304 return tth,azm,dsp 310 305 … … 565 560 numAzms = data['outAzimuths'] 566 561 numChans = data['outChannels'] 567 azmRot = data['azmthRotate']568 Full = data['fullIntegrate']569 562 Dtth = (LUtth[1]-LUtth[0])/numChans 570 563 Dazm = (LRazm[1]-LRazm[0])/numAzms … … 611 604 if Dazm: 612 605 H1 = np.array([azm for azm in np.linspace(LRazm[0],LRazm[1],numAzms+1)]) 613 if Full:614 H1 = H1+azmRot615 606 else: 616 607 H1 = LRazm
Note: See TracChangeset
for help on using the changeset viewer.