def getQChi_UGLY(xCenter,yCenter,distance,energy,alpha,beta,rotation, xPixel,yPixel,pixelLength, pixelHeight, cos_beta = None, sin_beta = None, cos_alpha = None, sin_alpha = None, cos_rotation = None,sin_rotation = None): # call wrapped c code. if cos_beta == None or sin_beta == None or \ cos_alpha == None or sin_alpha == None or \ cos_rotation == None or sin_rotation == None: return DiffractionAnalysisWrap.getQChi(xCenter,yCenter,distance, energy,alpha,beta,rotation,xPixel,yPixel,pixelLength,pixelHeight) return DiffractionAnalysisWrap.getQChi(xCenter,yCenter,distance, energy,alpha,beta,rotation,xPixel,yPixel,pixelLength,pixelHeight, cos_beta,sin_beta,cos_alpha,sin_alpha,cos_rotation,sin_rotation)
def getQChi(calibrationData, xPixel, yPixel, cos_beta=None, sin_beta=None, cos_alpha=None, sin_alpha=None, cos_rotation=None, sin_rotation=None): """ calibrationData is a CalibrationData object holding the x and y center of the image in pixels, the distance from detector to sample, the energy of the incoming photons, and the alpha and beta tilt parameters of the experiment. It also holds pixelLength, the physical length of one pixel in micron units, and pixelheight, the physical length of one pixel in micron units (1 mm = 1000 microns). x,y are the coordinates to transform into Q and Chi values. Returns chi in units of degrees. """ # call wrapped c code. if cos_beta == None or sin_beta == None or \ cos_alpha == None or sin_alpha == None or \ cos_rotation == None or sin_rotation == None: return DiffractionAnalysisWrap.getQChi( calibrationData.getCenterX()['val'], calibrationData.getCenterY()['val'], calibrationData.getDistance()['val'], calibrationData.getEnergy()['val'], calibrationData.getAlpha()['val'], calibrationData.getBeta()['val'], calibrationData.getRotation()['val'], xPixel, yPixel, calibrationData.getPixelLength()['val'], calibrationData.getPixelHeight()['val']) return DiffractionAnalysisWrap.getQChi( calibrationData.getCenterX()['val'], calibrationData.getCenterY()['val'], calibrationData.getDistance()['val'], calibrationData.getEnergy()['val'], calibrationData.getAlpha()['val'], calibrationData.getBeta()['val'], calibrationData.getRotation()['val'], xPixel, yPixel, calibrationData.getPixelLength()['val'], calibrationData.getPixelHeight()['val'], cos_beta, sin_beta, cos_alpha, sin_alpha, cos_rotation, sin_rotation)
def getQChi(calibrationData,xPixel,yPixel,cos_beta=None, sin_beta=None, cos_alpha=None, sin_alpha=None, cos_rotation=None, sin_rotation=None): """ calibrationData is a CalibrationData object holding the x and y center of the image in pixels, the distance from detector to sample, the energy of the incoming photons, and the alpha and beta tilt parameters of the experiment. It also holds pixelLength, the physical length of one pixel in micron units, and pixelheight, the physical length of one pixel in micron units (1 mm = 1000 microns). x,y are the coordinates to transform into Q and Chi values. Returns chi in units of degrees. """ # call wrapped c code. if cos_beta == None or sin_beta == None or \ cos_alpha == None or sin_alpha == None or \ cos_rotation == None or sin_rotation == None: return DiffractionAnalysisWrap.getQChi( calibrationData.getCenterX()['val'], calibrationData.getCenterY()['val'], calibrationData.getDistance()['val'], calibrationData.getEnergy()['val'], calibrationData.getAlpha()['val'], calibrationData.getBeta()['val'], calibrationData.getRotation()['val'], xPixel,yPixel, calibrationData.getPixelLength()['val'], calibrationData.getPixelHeight()['val']) return DiffractionAnalysisWrap.getQChi( calibrationData.getCenterX()['val'], calibrationData.getCenterY()['val'], calibrationData.getDistance()['val'], calibrationData.getEnergy()['val'], calibrationData.getAlpha()['val'], calibrationData.getBeta()['val'], calibrationData.getRotation()['val'], xPixel,yPixel, calibrationData.getPixelLength()['val'], calibrationData.getPixelHeight()['val'], cos_beta,sin_beta, cos_alpha,sin_alpha, cos_rotation,sin_rotation)