Changeset 396
 Timestamp:
 Oct 20, 2011 11:38:12 AM (12 years ago)
 Location:
 trunk
 Files:

 2 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,azm360.,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) 
trunk/GSASIIplot.py
r392 r396 1927 1927 x,y = np.hsplit(ring,2) 1928 1928 tth,azm = G2img.GetTthAzm(x,y,Data) 1929 azm = np.where(azm < 0.,azm+360,azm)1929 # azm = np.where(azm < 0.,azm+360,azm) 1930 1930 Plot.plot(tth,azm,'b,') 1931 1931 if not newPlot:
Note: See TracChangeset
for help on using the changeset viewer.