You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This causes the two grid to be off by one pixel. For example, when the two grids are added together:
Traceback (most recent call last):
File "/mnt/aurora-r0/vbrancat/codes/COMPASS/src/compass/s1_cslc.py", line 54, in <module>
main()
File "/mnt/aurora-r0/vbrancat/codes/COMPASS/src/compass/s1_cslc.py", line 49, in main
run(parser.run_config_path, parser.args.grid_type)
File "/mnt/aurora-r0/vbrancat/codes/COMPASS/src/compass/s1_cslc.py", line 43, in run
s1_geocode_slc.run(cfg)
File "/mnt/aurora-r0/vbrancat/codes/miniconda3/envs/compass/lib/python3.11/site-packages/compass/s1_geocode_slc.py", line 82, in run
rg_lut, az_lut = cumulative_correction_luts(burst,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/aurora-r0/vbrancat/codes/miniconda3/envs/compass/lib/python3.11/site-packages/compass/utils/lut.py", line 60, in cumulative_correction_luts
az_lut_data = -(bistatic_delay.data + az_fm_mismatch.data)
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
ValueError: operands could not be broadcast together with shapes (110,408) (109,407)
What did you expect?
I expected the dimensions of all the correction grid contained in the repository to be consistent
Reproducible steps
No response
Environment
No response
The text was updated successfully, but these errors were encountered:
Now that the function `self.as_isce3_radargrid` has parameters for step sizes, we dont need to redo the logic to compute the coordinates.
This should fixisce-framework#105 where the differing logic causes different coordinates.
It also allows us to remove redundant error checking that happens in the `as_isce3_radaragrid` function
* use radargrid step parameters to simplify `_steps_to_vecs`
Now that the function `self.as_isce3_radargrid` has parameters for step sizes, we dont need to redo the logic to compute the coordinates.
This should fix#105 where the differing logic causes different coordinates.
It also allows us to remove redundant error checking that happens in the `as_isce3_radaragrid` function
* fix param name to be rg_
Checked for duplicates
Yes - I've already checked
Describe the bug
Some correction grids within the s1-reader (e.g. bistatic delay and azimuth FM-rate mismatch) may have inconsistent dimensions.
For example the correction grid of the azimuth FM-rate mismatch may be computed using the decimation function of the radar grid reported here https://github.com/opera-adt/s1-reader/blob/0e0c7816a9b22b057a769519d302cd62e0a4e346/src/s1reader/s1_burst_slc.py#L267.
However, the correction grid for the bistatic delay is computed using the function reported here https://github.com/opera-adt/s1-reader/blob/0e0c7816a9b22b057a769519d302cd62e0a4e346/src/s1reader/s1_burst_slc.py#L531. The difference between the two function is using
np.ceil
when computing the dimension in both slant range and azimuth directions.This causes the two grid to be off by one pixel. For example, when the two grids are added together:
What did you expect?
I expected the dimensions of all the correction grid contained in the repository to be consistent
Reproducible steps
No response
Environment
No response
The text was updated successfully, but these errors were encountered: