Changeset 267 for trunk/GSASIIimage.py


Ignore:
Timestamp:
Apr 20, 2011 1:09:53 PM (11 years ago)
Author:
vondreele
Message:

removed azm rotation - didn't work
fix azimuthal polarization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimage.py

    r265 r267  
    293293    LRazim = data['LRazimuth']
    294294    azmthoff = data['azmthOff']
    295     azmRot = data['azmthRotate']
    296     Full = data['fullIntegrate']
    297295    dx = np.array(x-cent[0],dtype=np.float32)
    298296    dy = np.array(y-cent[1],dtype=np.float32)
     
    303301    dsp = wave/(2.*npsind(tth/2.))
    304302    azm = (npatan2d(dx,-dy)+azmthoff+720.)%360.
    305     if Full:
    306         azm = (azm+azmRot+720.)%360.
    307     else:
    308         azm = np.where(azm<LRazim[0],azm+360.,azm)
     303    azm = np.where(azm<LRazim[0],azm+360.,azm)
    309304    return tth,azm,dsp
    310305   
     
    565560    numAzms = data['outAzimuths']
    566561    numChans = data['outChannels']
    567     azmRot = data['azmthRotate']
    568     Full = data['fullIntegrate']
    569562    Dtth = (LUtth[1]-LUtth[0])/numChans
    570563    Dazm = (LRazm[1]-LRazm[0])/numAzms
     
    611604        if Dazm:       
    612605            H1 = np.array([azm for azm in np.linspace(LRazm[0],LRazm[1],numAzms+1)])
    613             if Full:
    614                 H1 = H1+azmRot
    615606        else:
    616607            H1 = LRazm
Note: See TracChangeset for help on using the changeset viewer.