Changeset 396 for trunk/GSASIIimage.py


Ignore:
Timestamp:
Oct 20, 2011 11:38:12 AM (12 years ago)
Author:
vondreele
Message:

make image calibration 0-360 (not -180-180) to match usual integration range
shift bins to center from corner - fixes "wiggle" in integration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimage.py

    r347 r396  
    214214    sphi = sind(phi)
    215215    ring = []
    216     amin = 180
    217     amax = -180
    218     for a in range(-180,180,1):
     216    amin = 0
     217    amax = 360
     218    for a in range(0,360,1):
    219219        x = radii[0]*cosd(a)
    220220        y = radii[1]*sind(a)
     
    337337    dsp = wave/(2.*npsind(tth/2.))
    338338    azm = (npatan2d(dx,-dy)+azmthoff+720.)%360.
    339     azm = np.where(azm>180,azm-360.,azm)
    340339    return tth,azm,dsp
    341340   
     
    568567    scaley = pixelSize[1]/1000.
    569568   
    570 #    tay,tax = np.mgrid[iLim[0]+0.5:iLim[1]+.5,jLim[0]+.5:jLim[1]+.5]         #bin centers not corners
    571     tay,tax = np.mgrid[iLim[0]:iLim[1],jLim[0]:jLim[1]]         #bin corners
     569    tay,tax = np.mgrid[iLim[0]+0.5:iLim[1]+.5,jLim[0]+.5:jLim[1]+.5]         #bin centers not corners
    572570    tax = np.asfarray(tax*scalex,dtype=np.float32)
    573571    tay = np.asfarray(tay*scaley,dtype=np.float32)
Note: See TracChangeset for help on using the changeset viewer.