get_complex_fieldmap_rad#
- mrinufft.extras.field_map.get_complex_fieldmap_rad(b0_map, r2star_map=None)[source]#
Create a complex-valued field-map in rad/s.
- Parameters:
b0_map (NDArray) – If complex-valued, returned as is. If real valued, it is the off-resonance field map in Hz.
r2star_map (NDArray, optional) – \(R_2^*\) mapping, in Hz
- Returns:
The complex valued field-map in radian, \(-\Delta=R_2^* + 2j\pi\Delta f\), in [rad/s]. This is used in the inhomogeneity term \(\exp(\Delta(\boldsymbol{r})t)\exp(2j\pi\boldsymbol{r}\boldsymbol{k}(t))\)
- Return type:
NDArray
See also
Note
This function uses
numpy
for all CPU arrays, andcupy
for all on-gpu array. It will convert all its array argument to the respective array library. The outputs will be converted back to the original array module and device.