Changeset 4820 for trunk/GSASIIimgGUI.py
- Timestamp:
- Feb 17, 2021 3:05:30 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIimgGUI.py
r4796 r4820 171 171 G2frame.Integrate = G2img.ImageIntegrate(sumImg,Data,masks,blkSize) 172 172 Iy,azms,Ix = G2frame.Integrate[:3] 173 GainMap = G2img.MakeGainMap(sumImg,Ix,Iy,Data, masks,blkSize)*1000.173 GainMap = G2img.MakeGainMap(sumImg,Ix,Iy,Data,blkSize)*1000. 174 174 Npix,imagefile,imagetag = G2IO.GetCheckImageFile(G2frame,G2frame.Image) 175 175 pth = os.path.split(os.path.abspath(imagefile))[0] … … 181 181 newimagefile = G2IO.FileDlgFixExt(dlg,newimagefile) 182 182 Data['formatName'] = 'GSAS-II image' 183 Data['range'] = [( 800,1200),[800,1200]]184 GainMap = np.where(GainMap > 1200,1 000,GainMap)185 GainMap = np.where(GainMap < 800, 1000,GainMap)183 Data['range'] = [(500,2000),[800,1200]] 184 GainMap = np.where(GainMap > 1200,1200,GainMap) 185 GainMap = np.where(GainMap < 800,800,GainMap) 186 186 G2IO.PutG2Image(newimagefile,[],data,Npix,GainMap) 187 187 GMname = 'IMG '+os.path.split(newimagefile)[1]
Note: See TracChangeset
for help on using the changeset viewer.