-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use radargrid step parameters to simplify _steps_to_vecs
#107
Conversation
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 isce-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
Just to record here how I made the 45 KB DEM:
(mapping) staniewi:s1-reader$ sardem --output-format GTiff --data cop --bbox -118.4623919679569 37.13399532964601 -115.2797133707291 39.09331696978008 -o tests/data/dummy_dem.tif
|
@LiangJYu I'm not sure why the test would be failing on circleCI: https://app.circleci.com/pipelines/github/opera-adt/s1-reader/337/workflows/f09e7192-4068-4d95-bfc7-5f95ceff991c/jobs/331
and the tests pass for me too... so maybe someone else can checkout this PR and run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Tested with COMPASS and had no issue with that. Just wondering about uploading test data in the repository. Can we have them on Zenodo? that is what we are doing with COMPASS.
tests/conftest.py
Outdated
@@ -12,6 +12,7 @@ def test_paths(): | |||
test_paths.safe = f"{test_path}/data/S1A_IW_SLC__1SDV_20200511T135117_20200511T135144_032518_03C421_7768.zip" | |||
test_paths.orbit_dir = f"{test_path}/data/orbits" | |||
test_paths.orbit_file = "S1A_OPER_AUX_POEORB_OPOD_20210318T120818_V20200510T225942_20200512T005942.EOF" | |||
test_paths.dem_file = f"{test_path}/data/dummy_dem.tif" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that our plan was not to add data to the GitHub repository but to have it be downloaded from Zenodo. Is that still the case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there's no meaningful data other than EPSG in the DEM file, perhaps it can generated on the fly in the conftest as a session fixture?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah that sounds like a good solution too
I'm breaking off the unit test to here #108 so that Virginia can proceed with COMPASS SET testing
491ff9f
to
44cd2c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@scottstanie thank you for the quick fix
I'm able to replicate you results above in ipython. Unable to replicate unit test fail... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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