Changeset 2044
- Timestamp:
- Nov 11, 2015 10:30:39 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/imports/G2img_1TIF.py
r2043 r2044 22 22 import GSASIIpath 23 23 import numpy as np 24 DEBUG = False 24 25 GSASIIpath.SetVersionNumber("$Revision: $") 25 26 class TIF_ReaderClass(G2IO.ImportImage): … … 111 112 Tag,Type = st.unpack(byteOrd+'Hh',File.read(4)) 112 113 nVal = st.unpack(byteOrd+'i',File.read(4))[0] 113 #if DEBUG: print 'Try:',Tag,Type,nVal114 if DEBUG: print 'Try:',Tag,Type,nVal 114 115 if Type == 1: 115 116 Value = st.unpack(byteOrd+nVal*'b',File.read(nVal)) … … 129 130 Value = st.unpack(byteOrd+nVal*'f',File.read(nVal*4)) 130 131 IFD[Tag] = [Type,nVal,Value] 131 #if DEBUG: print Tag,IFD[Tag]132 if DEBUG: print Tag,IFD[Tag] 132 133 sizexy = [IFD[256][2][0],IFD[257][2][0]] 133 134 [nx,ny] = sizexy
Note: See TracChangeset
for help on using the changeset viewer.