-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add unit test for shapes of correction LUTs
- Loading branch information
1 parent
44cd2c2
commit 491ff9f
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
def test_correction_shapes(bursts, test_paths): | ||
az_step, rg_step = 0.25, 200 | ||
|
||
for burst in bursts: | ||
az_fm_mismatch = burst.az_fm_rate_mismatch_mitigation( | ||
test_paths.dem_file, range_step=rg_step, az_step=az_step | ||
) | ||
shape = (az_fm_mismatch.length, az_fm_mismatch.width) | ||
|
||
# Make sure the other two corrections have the same shape | ||
geometrical_steering_doppler = burst.doppler_induced_range_shift( | ||
range_step=rg_step, az_step=az_step | ||
) | ||
assert shape == ( | ||
geometrical_steering_doppler.length, | ||
geometrical_steering_doppler.width, | ||
) | ||
|
||
bistatic_delay = burst.bistatic_delay(range_step=rg_step, az_step=az_step) | ||
assert shape == (bistatic_delay.length, bistatic_delay.width) |