DataObjects.UvData#

DataObjects.UvData.py

Copyright (c) 2025, SAXS Team, KEK-PF

class UvData(iv, jv, M, E)#

Bases: SsMatrixData

UvData class for UV matrix data.

copy(**kwargs)#
get_ipickvalues()#
get_icurve(pickat=280)#

Returns an i-curve from the UV matrix data.

Parameters:

pickat (float, optional) –

Specifies the value in ssd.qv where to pick an i-curve. The i-curve will be made from self.M[i,:] where the picking index i will be determined to satisfy

self.wv[i-1] <= pickat < self.vec.wv[i]

according to bisect_right.

Examples

>>> curve = uv_data.get_icurve()
get_flowchange_points()#

Returns a pair of flowchange points.

Parameters:
  • pickvalues (list) – specifies the pickvalues of icurves which are used to detect the flowchange points.

  • return_also_curves (bool) – If it is False, the method returns only a list of indeces of points. If it is True, the method returns a list indeces of points and a list of curves which were used to detect the points.

Examples

>>> i, j = uv.get_flowchange_points()
get_usable_wrange()#

Returns a pair of indeces which should be used as a slice for the spectral axis to trim away unusable UV data regions.

Parameters:

None

Examples

>>> i, j = uv.get_usable_wrange()
get_ibaseline(pickat=280, method=None, **kwargs)#

uv.get_uv_ibaseline(pickvalue=0.02)

Returns a baseline i-curve from the UV matrix data.

Parameters:

pickvalue (float, optional) – See uv.get_icurve().

Examples

>>> curve = uv.get_icurve()
>>> baseline = uv.get_ibaseline()
>>> corrected_curve = curve - baseline