Changeset 396


Ignore:
Timestamp:
Oct 20, 2011 11:38:12 AM (10 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

Location:
trunk
Files:
2 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)
  • trunk/GSASIIplot.py

    r392 r396  
    19271927            x,y = np.hsplit(ring,2)
    19281928            tth,azm = G2img.GetTthAzm(x,y,Data)
    1929             azm = np.where(azm < 0.,azm+360,azm)
     1929#            azm = np.where(azm < 0.,azm+360,azm)
    19301930            Plot.plot(tth,azm,'b,')
    19311931    if not newPlot:
Note: See TracChangeset for help on using the changeset viewer.