xarray.DataArray.kspace.convert_coords¶
- DataArray.kspace.convert_coords(self)[source]¶
Convert coordinates to momentum space.
Assign exact momentum coordinates without interpolating the intensity.
- Returns:
xarray.DataArray– A new array with the same dimensions, coordinate sampling, intensity values, name, and attributes as the input. The applicablekxandkycoordinates are added. For photon-energy-dependent data,kzis also added. All units for momentum are in Å⁻¹. The momentum coordinates can depend on more than one measured dimension. The input is not modified.- Return type: