hexrd.projections.polar module

class hexrd.projections.polar.PolarView(plane_data, instrument, eta_min=0.0, eta_max=360.0, pixel_size=(0.1, 0.25))[source]

Bases: object

Create (two-theta, eta) plot of detector images.

property angular_grid
property chi
property detectors
property eta_max
property eta_min
property eta_pixel_size
property eta_range
property extent
property instrument
property neta
property ntth
property shape
property tth_max
property tth_min
property tth_pixel_size
property tth_range
tth_to_pixel(tth)[source]

convert two-theta value to pixel value (float) along two-theta axis

property tvec
warp_image(image_dict, pad_with_nans=False, do_interpolation=True)[source]

Performs the polar mapping of the input images.

Parameters

image_dictdict

DIctionary of image arrays, 1 per detector.

Returns

wimgnumpy.ndarray

The composite polar mapping of the detector images. Dimensions are self.shape

Notes

Tested ouput using Maud.