We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c69874 commit dbaebb7Copy full SHA for dbaebb7
GSASII/GSASIIimage.py
@@ -771,8 +771,10 @@ def GetLineScan(image,data):
771
Ypix = ma.masked_outside(xy[0],0,Nx-1)
772
xpix = Xpix[~(Xpix.mask+Ypix.mask)].compressed()
773
ypix = Ypix[~(Xpix.mask+Ypix.mask)].compressed()
774
- Ty = image[xpix,ypix]
+ Ty = np.array(image[xpix,ypix],dtype=float)
775
Tx = ma.array(Tx,mask=Xpix.mask+Ypix.mask).compressed()
776
+ Ty /= npcosd(Tx)**2 #do parallax
777
+ # Ty *= (data['distance']/1000.)**2 #do dist correction
778
return [Tx,Ty]
779
780
def EdgeFinder(image,data):
0 commit comments