Skip to content

Commit dbaebb7

Browse files
committed
apply parallax correction to line scan plots - now about same scale as integrated powder pattern
1 parent 8c69874 commit dbaebb7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

GSASII/GSASIIimage.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,10 @@ def GetLineScan(image,data):
771771
Ypix = ma.masked_outside(xy[0],0,Nx-1)
772772
xpix = Xpix[~(Xpix.mask+Ypix.mask)].compressed()
773773
ypix = Ypix[~(Xpix.mask+Ypix.mask)].compressed()
774-
Ty = image[xpix,ypix]
774+
Ty = np.array(image[xpix,ypix],dtype=float)
775775
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
776778
return [Tx,Ty]
777779

778780
def EdgeFinder(image,data):

0 commit comments

Comments
 (0)