Changeset 1834 for trunk/GSASIIIO.py


Ignore:
Timestamp:
May 4, 2015 9:10:23 AM (7 years ago)
Author:
vondreele
Message:

redefine azimuthal angle in Sample Parms as the center of the azimuthal bin; the azimuthat angle in Instrument parms is defined as the mean angle for polarization (only 0-90 & slightly different)
some cosmetic changes to GUI displays
fix imports/G2pwd_fxye.py to handle multi time-maps found in HIPPO data & the slightly screwy one in HIPD data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r1831 r1834  
    10371037    LRazm = data['LRazimuth']
    10381038    Azms = []
     1039    dazm = 0.
    10391040    if data['fullIntegrate'] and data['outAzimuths'] == 1:
    10401041        Azms = [45.0,]                              #a poor man's average?
     
    10451046            else:   
    10461047                Azms.append(G2img.meanAzm(azm,azms[i+1]))
     1048        dazm = np.min(np.abs(np.diff(azms)))/2.
    10471049    for i,azm in enumerate(azms[:-1]):
    1048         Aname = name+" Azm= %.2f"%(Azms[i])
     1050        Aname = name+" Azm= %.2f"%((azm+dazm)%360.)
    10491051        item, cookie = G2frame.PatternTree.GetFirstChild(G2frame.root)
    10501052        nOcc = 0
     
    10611063        Sample['Chi'] = data['GonioAngles'][1]
    10621064        Sample['Phi'] = data['GonioAngles'][2]
    1063         Sample['Azimuth'] = Azms[i]     #put here too
     1065        Sample['Azimuth'] = (azm+dazm)%360.    #put here as bin center
    10641066        if 'PWDR' in Aname:
    10651067            parms = ['PXC',data['wavelength'],0.0,0.99,1.0,-0.10,0.4,0.30,1.0,0.0001,Azms[i]]    #set polarization for synchrotron radiation!
Note: See TracChangeset for help on using the changeset viewer.