h5analysis.data_2d.apply_kwargs_2d

h5analysis.data_2d.apply_kwargs_2d(x_data, y_data, detector, norm, xoffset, xcoffset, yoffset, ycoffset, binsize_x, binsize_y)

Internal function to apply math operations as specified in key-word arguments

Parameters:
  • x_stream (array) – x-data

  • y_stream (array) – y-data

  • detector (2d-array) – Matrix data

  • norm (boolean) – normalization to maximum True or False, if None intepreted as False

  • xoffset (list of tuples) – fitted offset (x-stream)

  • xcoffset (float) – constant offset (x-stream)

  • yoffset (list of tuples) – fitted offset (y-stream)

  • ycoffset (float) – constant offset (y-stream)

  • grid_x (list) – grid equally spaced in x with [start, stop, delta]

  • grid_y (list) – grid equally spaced in y with [start, stop, delta]

  • norm_by (string) – norm MCA by defined h5 key or SCA alias

  • binsize_x (int) – puts data in bins of specified size in the horizontal direction

  • binsize (int) – puts data in bins of specified size in the vertical direction

Returns:

  • x_stream (array) – Adjusted x-stream

  • y_stream (array) – Adjusted y-stream

  • detector (2d-array) – Matrix data