xwr.rsp.numpy
¶
Radar Signal Processing in Numpy.
Tip
We use pyfftw
to perform FFTs, which wraps FFTW. In our
testing for computing 64x3x4x256 range-Doppler frames, this
provides a ~5x speedup over np.fft.fftn for single frames and a
~10x speedup for batches of 8 frames.
FFTW plans are also cached for efficiency: the first time a particular
shape and axes are requested from RSPNumpy.fft, a copy of the array
is provided to fftw to create a plan, which is saved by RSPNumpy.
Warning
This module is not automatically imported; you will need to explicitly import it:
xwr.rsp.numpy.AWR1642Boost
¶
Bases: RSPNumpy
Radar Signal Processing for the AWR1642 or AWR1843 with TX2 disabled.
Antenna Array
The TI AWR1642Boost (or AWR1843Boost with TX2 disabled) has a 1x8 linear MIMO array:
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
window
|
bool | Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], bool]
|
whether to apply a hanning window. If |
False
|
size
|
Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], int]
|
target size for each axis after zero-padding, specified by axis. If an axis is not spacified, it is not padded. |
{}
|
Source code in src/xwr/rsp/numpy/rsp.py
xwr.rsp.numpy.AWR1843AOP
¶
Bases: RSPNumpy
Radar Signal Processing for AWR1843AOP.
Antenna Array
In the TI AWR1843AOP, the MIMO virtual array is arranged in a 2D grid:
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
window
|
bool | Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], bool]
|
whether to apply a hanning window. If |
False
|
size
|
Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], int]
|
target size for each axis after zero-padding, specified by axis. If an axis is not specified, it is not padded. |
{}
|
Source code in src/xwr/rsp/numpy/rsp.py
xwr.rsp.numpy.AWR1843Boost
¶
Bases: RSPNumpy
Radar Signal Processing for AWR1843Boost.
Antenna Array
In the TI AWR1843Boost, the MIMO virtual array has resolution 2x8, with a single 1/2-wavelength elevated middle antenna element:
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
window
|
bool | Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], bool]
|
whether to apply a hanning window. If |
False
|
size
|
Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], int]
|
target size for each axis after zero-padding, specified by axis. If an axis is not spacified, it is not padded. |
{}
|
Source code in src/xwr/rsp/numpy/rsp.py
xwr.rsp.numpy.AWR2944EVM
¶
Bases: RSPNumpy
Radar Signal Processing for AWR2944EVM.
Antenna Array
The AWR2944EVM has a virtual array on a 2x12 grid:
The horizontal spacing is 1/2 wavelength, and the vertical spacing is 0.8 wavelength.Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
window
|
bool | Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], bool]
|
whether to apply a hanning window. If |
False
|
size
|
Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], int]
|
target size for each axis after zero-padding, specified by axis. If an axis is not spacified, it is not padded. |
{}
|
Source code in src/xwr/rsp/numpy/rsp.py
241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 | |
elevation_azimuth
¶
elevation_azimuth(
rd: Complex64[ndarray, "#batch doppler tx rx range"],
) -> Complex64[ndarray, "#batch doppler el az range"]
Calculate elevation-azimuth spectrum from range-doppler spectrum.
Warning
Special treatment is needed for the AWR2944EVM since the two rows of virtual elements are 0.8 wavelength apart instead of 0.5. We compute the DTFT along the elevation axis with the steering matrix corresponding to the 0.8 lambda spacing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rd
|
Complex64[ndarray, '#batch doppler tx rx range']
|
range-doppler spectrum. |
required |
Returns:
| Type | Description |
|---|---|
Complex64[ndarray, '#batch doppler el az range']
|
Computed elevation-azimuth spectrum, with windowing and padding if specified. |
Source code in src/xwr/rsp/numpy/rsp.py
xwr.rsp.numpy.AWRL6844EVM
¶
Bases: RSPNumpy
Radar Signal Processing for AWRL6844.
Antenna Array
The AWRL6844 has a 4x4 MIMO virtual array with λ/2 spacing:
TX Phase Relationship
TX1 and TX3 are in phase with each other. TX2 and TX4 are also in phase with each other, but are 180° out of phase with TX1 and TX3. Their contributions to the virtual array are negated accordingly.
Source: Table 3-1, EVM User's Guide: AWRL6844EVM IWRL6844EVM.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
window
|
bool | Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], bool]
|
whether to apply a hanning window. If |
False
|
size
|
Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], int]
|
target size for each axis after zero-padding, specified by axis. If an axis is not specified, it is not padded. |
{}
|
Source code in src/xwr/rsp/numpy/rsp.py
xwr.rsp.numpy.RSPNumpy
¶
Numpy Radar Signal Processing base class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
window
|
bool | Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], bool]
|
whether to apply a hanning window. If |
False
|
size
|
Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], int]
|
target size for each axis after zero-padding, specified by axis. If an axis is not spacified, it is not padded. |
{}
|