SAR
SAR image generation and plotting (stripmap and spotlight modes).
Provides the :func:gen entry point that simulates a full synthetic aperture —
transmitting pulses along a straight flight path, injecting point-target
returns, range-compressing, and azimuth-focusing to produce a SAR image.
Spotlight mode is activated by setting scene_center and beamwidth
on the :class:~rad_lab.sar_radar.SarRadar instance.
gen(sar_radar, waveform, target_list, seed=0, plot=True, debug=False, window='chebyshev', window_kwargs=None, beam_pattern=None)
Generate a focused SAR image from point-target returns.
Simulates a SAR collection over a straight, level flight path. For each aperture position the function computes range and phase to every target, injects the waveform, then processes the datacube through range compression, azimuth windowing, and azimuth matched-filter focusing.
Stripmap mode (default): leave sar_radar.scene_center as
None. Optionally set sar_radar.beamwidth to apply
broadside beam-pattern weighting (body-fixed antenna).
Spotlight mode: set both fields on the :class:SarRadar instance.
The antenna beam is steered toward scene_center each pulse, and
target amplitudes are weighted by a two-way Gaussian beam pattern.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sar_radar
|
SarRadar
|
SAR system parameters.
See :class: |
required |
waveform
|
WaveformSample
|
WaveformSample created by a factory function
(e.g. :func: |
required |
target_list
|
list[SarTarget]
|
List of :class: |
required |
seed
|
int
|
Random number generator seed for reproducibility. |
0
|
plot
|
bool
|
If True, plots the focused SAR image. |
True
|
debug
|
bool
|
If True, plots intermediate processing steps (raw data, range-compressed data). |
False
|
window
|
str
|
Window function applied along the azimuth dimension before
focusing. One of |
'chebyshev'
|
window_kwargs
|
dict | None
|
Optional dict forwarded to the window function.
See :func: |
None
|
beam_pattern
|
Callable[[ndarray], ndarray] | None
|
Optional callable that maps off-boresight angles
[rad] to amplitude weights. Overrides the default Gaussian
in spotlight mode. See
:func: |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
tuple |
tuple[ndarray, ndarray, ndarray, ndarray]
|
|
Source code in src/rad_lab/sar.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | |
plot_sar_image(cross_range_axis, r_axis, data, title, cbar_min=-40)
Plots a focused SAR image in dB.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cross_range_axis
|
ndarray
|
1-D cross-range axis [m]. |
required |
r_axis
|
ndarray
|
1-D slant-range axis [m] (converted to km for display). |
required |
data
|
ndarray
|
2-D complex SAR image. |
required |
title
|
str
|
Plot title. |
required |
cbar_min
|
float
|
Minimum colorbar value [dB]. |
-40
|
Returns:
| Type | Description |
|---|---|
tuple[Figure, Axes]
|
The figure and axes objects. |
Source code in src/rad_lab/sar.py
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | |