h5analysis.data_2d.load_2d

h5analysis.data_2d.load_2d(config, file, x_stream, detector, *args, norm=False, xoffset=None, xcoffset=None, yoffset=None, ycoffset=None, grid_x=[None, None, None], grid_y=[None, None, None], norm_by=None, binsize_x=None, binsize_y=None)

Internal function to load 2d MCA data

Parameters:
  • config (dict) – h5 configuration

  • file (string) – filename

  • x_stream (string) – h5 sca key or alias of the x-stream

  • detector (string) – alias of the MCA detector

  • *args (ints) – scan numbers

  • **kwargs

    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:

data

Return type:

dict