xarray.DataArray.kspace.estimate_resolution¶
- DataArray.kspace.estimate_resolution(self, axis, lims=None, from_numpoints=False)[source]¶
Estimate target grid spacing for a momentum axis.
The returned value controls interpolation sampling. It is not an estimate of the instrumental momentum resolution.
- Parameters:
axis (
Literal['kx','ky','kz']) – Momentum axis for which to estimate the spacing.lims (
tuple[float,float] |None, default:None) – Lower and upper axis bounds in Å⁻¹, used whenfrom_numpointsisTrue. If omitted,estimate_bounds()supplies the bounds.from_numpoints (
bool, default:False) – IfTrue, estimate the spacing from the number of points in the relevant measured axis. IfFalse, estimate it from the angular resolution or, forkz, the photoelectron inelastic mean free path. Default isFalse.
- Returns:
float– Estimated target grid spacing in Å⁻¹.- Raises:
ValueError – If no photon energy axis is found in data for axis
'kz'.- Return type: