skultrafast.dv
¶
Module Contents¶
Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Given wavelengths and data it bins the data into n-wavelenths. |
|
Given wavelengths and data it bins the data into n-wavelenths. |
|
Given a value, it finds the index of the nearest value in the array. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Calculates the error from a leastsq fit infodict. |
|
|
Converts a wavelength to a RGB color. |
|
|
|
Finds the first value of an 1d-array where the difference betweeen |
|
|
Resizes a 2d array by averaging or repeating elements, |
|
Doing evolving factor analyis. |
|
|
|
Given the rise time of the pertuabed |
|
|
|
|
|
|
|
|
|
|
|
Attributes¶
- skultrafast.dv.weighted_binner(n, wl, dat, std)[source]¶
Given wavelengths and data it bins the data into n-wavelenths. Returns bdata and bwl
- skultrafast.dv.binner(n, wl, dat, func=np.mean)[source]¶
Given wavelengths and data it bins the data into n-wavelenths. Returns bdata and bwl
- skultrafast.dv.fi(w: numpy.ndarray, x: float) int [source]¶
- skultrafast.dv.fi(w: numpy.ndarray, x: List[float]) List[int]
Given a value, it finds the index of the nearest value in the array.
- skultrafast.dv.find_linear_part(t)[source]¶
Finds the first value of an 1d-array where the difference betweeen consecutively values varys.
- skultrafast.dv.rebin(a, new_shape)[source]¶
Resizes a 2d array by averaging or repeating elements, new dimensions must be integral factors of original dimensions
- Parameters:
- Returns:
rebinned_array (ndarray)
If the new shape is smaller of the input array, the data are averaged,
if the new shape is bigger array elements are repeated
See also
resize
Return a new array with the specified shape.
Examples
>>> a = np.array([[0, 1], [2, 3]]) >>> b = rebin(a, (4, 6)) #upsize >>> b array([[0, 0, 0, 1, 1, 1], [0, 0, 0, 1, 1, 1], [2, 2, 2, 3, 3, 3], [2, 2, 2, 3, 3, 3]])
>>> c = rebin(b, (2, 3)) #downsize >>> c array([[ 0. , 0.5, 1. ], [ 2. , 2.5, 3. ]])
- skultrafast.dv.pfid_tau_to_w(tau)[source]¶
Given the rise time of the pertuabed free induction decay, calculate the corresponding spectral width in cm-^1.