31 - SAR imaging¶
Use SAR to simulate a radar image of a finite forest plot. A side-looking acquisition records complex echoes along the flight path. Focusing combines their amplitudes and phases into an image on a specified grid. Forest applications include comparing canopy moisture and structure, modelling woodland edges, and testing how the ground and trunks affect the return. The same workflow also works for built scenes and shorelines.
1. Describe the forest plot¶
| Part of the plot | LESS representation | Inputs to measure or prescribe |
|---|---|---|
| Terrain and soil | Terrain with a SAR surface property |
Elevation, dielectric response, and roughness if needed |
| Trunks | Mesh with MicrowaveTrunk |
Positions, diameter, height, moisture and dry density |
| Crowns | TurbidBoundary with MicrowaveVegetation |
Crown geometry, leaf and branch dimensions, number density, moisture and orientation |
Define a finite scene with scene.repetitive=False. Include nearby trees that can shadow the plot or contribute echoes. Keep the area to be analysed inside that scene. Assign microwave properties to the tree components. If trees need different properties, use separate tree objects or classes and place each at its measured positions.
2. Acquire and focus a small forest scene¶
This example uses six 4 m trees over a flat dielectric ground surface and a single-platform L-band HH acquisition. It runs on the Embree CPU backend. The sparse crown densities and acquisition samples are for a quick example. Use measured distributions and check convergence for a quantitative study.
from pathlib import Path
import less
output = Path("forest-sar")
output.mkdir(exist_ok=True)
scene = less.Scene(backend="embree")
scene.size = 32.0
scene.repetitive = False
scene.terrain = less.Terrain(property=less.RadarSurface(
mode="mirror", direct_return=True, relative_permittivity=4., dielectric_loss=.2,
))
asset = less.asset_path("tutorial_tree.obj")
tree = less.Object("tree")
tree.add_component("crown", less.TurbidBoundary(asset, group="crown"))
tree.add_component("trunk", less.Mesh(asset, group="trunk"))
tree.set_property("trunk", less.MicrowaveTrunk(moisture=.45, dry_density=.45))
tree.set_property("crown", less.MicrowaveVegetation(components=[
less.MicrowaveDisc(radius=.025, thickness=.0002, density=.5,
moisture=.55, scattering_model="physical_optics"),
less.MicrowaveCylinder(radius=.015, length=.5, density=.25,
moisture=.45, scattering_model="infinite_cylinder"),
]))
scene.add(tree, positions=[(9., 10., 0.), (16., 10., 0.), (23., 10., 0.),
(9., 20., 0.), (16., 20., 0.), (23., 20., 0.)])
sensor = less.SAR(
less.SARFlightLine((-16., -300., 400.), (48., -300., 400.), speed=32.),
look_side="right", look_angle=38.3, polarization="HH",
frequency=1.25e9, bandwidth=100e6, prf=8., frequency_samples=17,
image_size=(24, 24), pixel_spacing=(1.25, 1.25),
ground_grid=less.SARGroundGrid((16., 16.), 90.),
vegetation_seed=19, scattering_samples=128, max_surface_reflections=1,
)
slc = scene.simulate(sensor)
slc.save(output / "forest-hh.npz")
slc.save(output / "forest-hh.png")
The output has 24 azimuth by 24 ground-range samples. The NPZ retains the complex image and coordinates. The PNG is an intensity preview. With a 100 MHz bandwidth, the nominal slant-range resolution is about 1.5 m. Pixel spacing describes the output grid. Check convergence by increasing pulse and frequency sampling separately, especially before interpreting sidelobes or comparing plots.
3. Compare canopy and ground contributions¶
The default vegetation_returns="coherent" includes crown attenuation and propagation phase along with the coherent echoes of the leaves and branches. Change to "transmission" to keep the crown's effect on other paths while omitting its own particle echoes. Existing trunk and ground echoes still contribute.
from dataclasses import replace
through_crown = scene.simulate(replace(sensor, vegetation_returns="transmission"))
more_paths = scene.simulate(replace(sensor, max_surface_reflections=2))
Order 1 includes direct returns and occlusion. Order 2 also includes paths with one mirror reflection, for example between a trunk and a reflecting ground surface when the geometry supports it. Compare cases on the same acquisition grid with the same vegetation_seed. For thinning, retain each remaining tree's position and identity. Average powers on the linear scale before converting to dB. Coherent echoes can interfere, so the difference of the two intensity images includes interference terms.
To study polarisation, rerun with replace(sensor, polarization="VV") or
"HV" while holding the plot, acquisition geometry and seed fixed. The
letters specify transmit and receive polarisation in that order.
4. Choose a product¶
Start with the complex SLC to examine amplitude and phase. For an intensity image, request output="intensity". The example below averages linear power over 3 × 3 source pixels and saves both the averaged image and its original SLC.
from dataclasses import replace
intensity = scene.simulate(replace(sensor, output="intensity", looks=(3, 3)))
intensity.save(output / "forest-hh-intensity.npz")
For calibrated comparisons over forest areas, configure radiometry and area normalization to obtain sigma0. For the full product map, calibration, archive formats and viewer controls, see 31.1 - SAR acquisition and products.
5. Configure the acquisition¶
| Parameter | Meaning |
|---|---|
SARFlightLine(start, end, speed) |
Straight track in scene coordinates, in metres and m/s. |
SARSampledTrajectory(positions, pulse_times) |
Explicit antenna positions and pulse times; georeferenced positions use ECEF. |
SAROrbit(...) |
Interpolated orbital positions and velocities at pulse times, with WGS84 georeferencing. |
look_side, look_angle |
Left/right look and off-nadir angle in degrees. |
frequency, bandwidth, frequency_samples |
Center frequency, bandwidth and frequency sample count; frequencies are in Hz. |
prf |
Pulse repetition frequency for a flight line, in Hz. Explicit pulse trajectories use their supplied times. |
beamwidth |
Gaussian one-way half-power widths in azimuth and elevation, in degrees. |
antenna_pattern |
Complex antenna voltage response supplied by SARAntennaPattern. |
SARChirp |
Linear frequency-modulated waveform and receive window, with optional I/Q echo and range-compression recording. |
SARGroundGrid |
Common ground-grid center and heading; image_size and pixel_spacing follow azimuth, range order. |
Reduce visibility_spacing or increase visibility_refinement to check
geometry and shadow boundaries. Increase pulse and frequency sampling separately
until target positions, intensity and sidelobes stabilize. Smaller output pixel
spacing provides a denser focusing grid.
Orbital TOPS acquisitions use bursts and swaths, retaining their burst
images in a SARTOPSProduct. See the API reference.
Other scene types¶
The street example uses a wall, road, building and three crowns. These settings also apply to mixed built and vegetated scenes.
from less.examples.sar_street import make_scene, make_sensor
scene, street = make_scene()
sensor = make_sensor()
Run python -m less.examples sar_street --batch --output-dir sar-output to save a street image and its data. On the default 129 × 129 source grid, 3 × 3 averaging gives a 43 × 43 intensity image.
Scene properties¶
For a surface that should redirect a path without contributing its own
echo, use RadarSurface(mode="mirror"). For example, a road with this
property can contribute to the return from a nearby wall or crown. The
surface still blocks rays that hit it.
Soil shores and a finite water surface¶
The lakeside example combines soil, a finite water surface, buildings and three crowns in a 32 m scene. Smooth surface meshes carry separate soil and water properties. Buildings contribute both direct echoes and paths reflected by the ground or water.
import less
from less.examples.sar_lakeside import make_scene, make_sensor
scene, shore = make_scene()
image = scene.simulate(make_sensor())
image.show()
# Compare fresh and saline water with the same geometry.
shore.set_property("water", less.WaterMicrowave(temperature=298.15, salinity=35))
saltwater = scene.simulate(make_sensor())
The road component of shore is soil and its water component is the water
surface. Their footprints meet at the shoreline. Temperature is in K and
salinity in ppt. A fixed vegetation_seed preserves branch and leaf positions
between material updates, allowing comparisons of complex echoes and images.
Assign surface properties¶
Explicit surfaces use less.Mesh and less.RadarSurface. Assign one property
to a whole OBJ, or use groups where physical properties differ. Wall, roof and
road labels are not needed to find reflection paths:
building = less.Object("building", mesh="building.obj")
building.set_property(less.RadarSurface(relative_permittivity=4., dielectric_loss=0.1))
scene.add(building, positions=[(16., 16., 0.)])
| Property | Purpose |
|---|---|
RadarSurface() |
Perfect-conductor echoes and specular connections. |
RadarSurface(relative_permittivity=4., dielectric_loss=0.1) |
Smooth opaque dielectric echoes and specular connections; permittivity is constant over the acquisition bandwidth. |
RadarSurface(mode="pec"), RadarSurface(mode="dielectric", relative_permittivity=4.) |
Scattering targets that do not act as mirrors for other targets. |
RadarSurface(mode="mirror") |
Finite mirror connecting reflected surface or particle paths. Add direct_return=True for its own direct echo. |
RadarSurface(mode="occluder") |
Geometric occlusion. |
SARGaussianRoughness(rms_height=..., correlation_length=..., seed=...) |
Gaussian height phase screen on a PEC or dielectric scattering surface; dimensions are metres, using a small-slope model. |
For example, change the example wall to a dielectric:
import less
street.set_property("wall", less.RadarSurface(
relative_permittivity=4., dielectric_loss=0.1))
image = scene.simulate(sensor)
The sensor's max_surface_reflections sets the reflection order for smooth
surfaces. For a Gaussian height phase screen in automatic mode, choose order
one; rough reflected paths are not supported.
Smooth soil and water surfaces can use the existing microwave properties on a mesh component or terrain:
street.remove_property("road", "sar")
street.set_property("road", less.MicrowaveSoil(
surface_model="specular", rms_height_cm=0,
soil_moisture=0.25, clay_fraction=0.2, sand_fraction=0.6))
# Change the same mesh to smooth water
street.set_property("road", less.WaterMicrowave(temperature=293.15, salinity=0))
Permittivity is evaluated at every acquisition frequency for both the surface
echo and reflected surface/particle paths. Soil offers mironov, dobson and
hallikainen; water uses Klein–Swift, with temperature in K and salinity in ppt.
An explicit WaterMicrowave(permittivity=4+0.8j) keeps that complex value across
the bandwidth. Update temperature, salinity or moisture and simulate again.
Conducting objects above a dielectric plane¶
Use SARDielectricGround to study how flat, uniform ground changes the
complex echo from small conducting objects. The ground affects both the
incident field and the field that travels from the object to the receiver.
The result is the object's echo with ground coupling.
from dataclasses import replace
import less
# Start with smooth RadarSurface() conductors and an uncalibrated SLC sensor.
scene.terrain = None
ground = less.SARDielectricGround(
height_m=0.0, relative_permittivity=5.0, dielectric_loss=0.5)
image = scene.simulate(replace(sensor, dielectric_ground=ground))
Set height_m in scene coordinates. The relative permittivity and dielectric
loss are dimensionless and constant across the acquisition band. Use a static
scene, uniform antenna response and SLC output with this model.