Changeset 1131 for trunk/GSASIIIO.py


Ignore:
Timestamp:
Oct 30, 2013 4:00:33 PM (8 years ago)
Author:
vondreele
Message:

fix to read Chess A2 tiff files
add polarization correction to SASD type patterns (show as PWDR for now)
fix to polygon & frame selection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r1127 r1131  
    477477            image = ar.array('L',File.read(4*Npix))
    478478            image = np.array(np.asarray(image),dtype=np.int32)
     479        else:
     480            if IFD[258][2][0] == 16:
     481                print sizexy
     482                tifType = 'GE'
     483                pixy = (200,200)
     484                File.seek(8)
     485                if not imageOnly:
     486                    print 'Read GE-detector tiff file: ',filename
     487                image = np.array(ar.array('H',File.read(2*Npix)),dtype=np.int32)
     488           
    479489    elif 262 in IFD and IFD[262][2][0] > 4:
    480490        tifType = 'DND'
     
    503513                else:
    504514                    image = np.array(ar.array('I',File.read(4*Npix)),dtype=np.int32)
     515               
    505516        elif IFD[273][2][0] == 4096:
    506517            if sizexy[0] == 3072:
Note: See TracChangeset for help on using the changeset viewer.