Skip to content

Commit

Permalink
fix tif read for Sect36 images
Browse files Browse the repository at this point in the history
  • Loading branch information
vondreele committed Sep 19, 2024
1 parent 941a134 commit eaffdba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GSASII/imports/G2img_1TIF.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 234,10 @@ def GetTifData(filename):
image = np.array(np.frombuffer(image,dtype=byteOrd 'i4'),dtype=np.int32)
elif IFD[258][2][0] == 16:
image = File.read(2*Npix)
pixy = [109.92,109.92] #for LCLS ImageJ tif files
if sizexy == [400,250]:
pixy = [175.2,175.2] #for Sect36 ImageJ files
else:
pixy = [109.92,109.92] #for LCLS ImageJ tif files
image = np.array(np.frombuffer(image,dtype=byteOrd 'u2'),dtype=np.int32)
else: #gain map from 11-ID-C?
pixy = [200.,200.]
Expand Down

0 comments on commit eaffdba

Please sign in to comment.