Changeset 2041 for trunk/GSASIIIO.py


Ignore:
Timestamp:
Nov 9, 2015 1:20:47 PM (6 years ago)
Author:
vondreele
Message:

enter space group (R -3 c) for Alumina image calibrant - gives better set of lines
some revision to SS derivatives
add ImageJ format (both big & little endian) to tiff importer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r2035 r2041  
    945945            if not imageOnly:
    946946                print 'Read 11-ID-C tiff file: ',filename
    947             image = np.array(ar.array('H',File.read(2*Npix)),dtype=np.int32)           
     947            image = np.array(ar.array('H',File.read(2*Npix)),dtype=np.int32)
     948        elif IFD[273][2][0] == 168:
     949            tifType = 'ImageJ'
     950            dataType = 0
     951            pixy = [200,200]
     952            File.seek(IFD[273][2][0])
     953            if not imageOnly:
     954                print 'Read ImageJ tiff file: ',filename
     955            image = ar.array('H',File.read(2*Npix))
     956            if '>' in byteOrd:
     957                image.byteswap()
     958            image = np.array(np.asarray(image,dtype='H'),dtype=np.int32)           
     959                   
    948960    elif sizexy == [4096,4096]:
    949961        if IFD[273][2][0] == 8:
Note: See TracChangeset for help on using the changeset viewer.