Changeset 396 for trunk/GSASIIimage.py
- Timestamp:
- Oct 20, 2011 11:38:12 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIimage.py
r347 r396 214 214 sphi = sind(phi) 215 215 ring = [] 216 amin = 180217 amax = -180218 for a in range( -180,180,1):216 amin = 0 217 amax = 360 218 for a in range(0,360,1): 219 219 x = radii[0]*cosd(a) 220 220 y = radii[1]*sind(a) … … 337 337 dsp = wave/(2.*npsind(tth/2.)) 338 338 azm = (npatan2d(dx,-dy)+azmthoff+720.)%360. 339 azm = np.where(azm>180,azm-360.,azm)340 339 return tth,azm,dsp 341 340 … … 568 567 scaley = pixelSize[1]/1000. 569 568 570 # tay,tax = np.mgrid[iLim[0]+0.5:iLim[1]+.5,jLim[0]+.5:jLim[1]+.5] #bin centers not corners 571 tay,tax = np.mgrid[iLim[0]:iLim[1],jLim[0]:jLim[1]] #bin corners 569 tay,tax = np.mgrid[iLim[0]+0.5:iLim[1]+.5,jLim[0]+.5:jLim[1]+.5] #bin centers not corners 572 570 tax = np.asfarray(tax*scalex,dtype=np.float32) 573 571 tay = np.asfarray(tay*scaley,dtype=np.float32)
Note: See TracChangeset
for help on using the changeset viewer.