h5analysis.simplemath.grid_data2d

h5analysis.simplemath.grid_data2d(x_data, y_data, detector, grid_x=[None, None, None], grid_y=[None, None, None])

Internal function to apply specified grid or ensure otherwise that axes are evenly spaced as this is required to plot an image.

Parameters:
  • x_data (numpy array)

  • y_data (numpy array)

  • detector (numpy array)

  • kwargs

    grid_x: list

    [start,stop,delta]

    grid_y: list

    [start,stop,delta]

Returns:

  • new_x (numpy array)

  • new_y (numpy array)

  • new_z (numpy array)