Ignore:
Timestamp:
Dec 6, 2017 11:14:29 AM (5 years ago)
Author:
vondreele
Message:

Add A centered monoclinics to super symmetry ptssdict
Add import of Dexela detector tif images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/imports/G2img_1TIF.py

    r3160 r3176  
    214214        else:
    215215            if IFD[258][2][0] == 16:
    216                 tifType = 'GE'
    217                 pixy = [200.,200.]
    218                 File.seek(8)
    219                 print ('Read GE-detector tiff file: '+filename)
     216                if sizexy == [3888,3072]:
     217                    tifType = 'Dexela'
     218                    pixy = [74.8,74.8]
     219                    print ('Read Dexela detector tiff file: '+filename)
     220                else:
     221                    tifType = 'GE'
     222                    pixy = [200.,200.]
     223                    print ('Read GE-detector tiff file: '+filename)
     224                File.seek(8)
    220225                image = np.array(np.frombuffer(File.read(2*Npix),dtype=np.uint16),dtype=np.int32)
    221226#                image = np.fromfile(File,dtype=np.int16,count=2*Npix)[:Npix]
Note: See TracChangeset for help on using the changeset viewer.