Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@falkamelung
Copy link
Contributor

@falkamelung falkamelung commented Jul 25, 2024

Description of proposed changes
This PR addresses this issue:

#1232

Reminders

  • Fix Support of --lat --lon for subsetting files in radar coordinates #1232
  • Pass Pre-commit check (green)
  • Pass Codacy code review (green)
  • Pass Circle CI test (green)
  • Make sure that your code follows our style. Use the other functions/files as a basis.
  • If modifying functionality, describe changes to function behavior and arguments in a comment below the function declaration.
  • If adding new functionality, add a detailed description to the documentation and/or an example.

Falk Amelung and others added 4 commits July 25, 2024 18:39
+ `coord.geo2radar()`: use smaller search range (x/y_factor) for more accurate conversion. Tests based on Sentinel-1 miaplpy dataset show this change brings the conversion accuracy to the sub-pixel level.

+ `subset`: support subsetting radar-coded files using lat/lon
   - revert the change in `subset_input_dict2box()` to remain its simplicity as described in the comment.
   - `read_aux_subset2inps()`: add the code body to to convert bbox in lat/lon to bbox in y/x for radar-coded files

+ `cli/subset`: add usage example for radar-coded files
@yunjunz yunjunz changed the title subset.py: support of --lat --lon in radar coordinates subset.py: support --lat/lon in radar coordinates Jun 2, 2025
@yunjunz yunjunz self-requested a review June 2, 2025 06:30
Copy link
Member

@yunjunz yunjunz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @falkamelung for the PR. Your test on the buffer at #1232 is also very helpful. I modified your code a little bit to make them more compact. The changes look all good to me now.

@ditafaith
Copy link

Thank you @falkamelung for the PR. Your test on the buffer at #1232 is also very helpful. I modified your code a little bit to make them more compact. The changes look all good to me now.

It seems good. Do I need to update the current version?

@yunjunz yunjunz merged commit 8198dda into insarlab:main Jun 2, 2025
8 checks passed
@yunjunz
Copy link
Member

yunjunz commented Jun 2, 2025

Thank you @falkamelung for the PR. Your test on the buffer at #1232 is also very helpful. I modified your code a little bit to make them more compact. The changes look all good to me now.

It seems good. Do I need to update the current version?

If you would like to use this new functionality, yes, I recommend updating your installation to this latest development version.

yunjunz added a commit to yunjunz/MintPy that referenced this pull request Jun 10, 2025
+ objects.coord.coordinate._get_lookup_row_col(): if the given y/x_factor is too small, resulting in no overlap area, then iterate with larger y/x_factor values. This fixes the bug introduced in insarlab#1238, which reduced the default y/x_factor from 10 to 4.

+ tropo_pyaps3: fix a bug introduced by insarlab#1364

+ prep_aria: remove the print out msg for a more informative print out msg, which was duplicated.
@yunjunz yunjunz mentioned this pull request Jun 10, 2025
5 tasks
yunjunz added a commit that referenced this pull request Jun 10, 2025
+ `objects.coord.coordinate._get_lookup_row_col()`: if the given `y/x_factor` is too small, resulting in no overlap area, then iterate with larger `y/x_factor` values. This fixes the bug introduced in #1238, which reduced the default y/x_factor from 10 to 4.

+ `tropo_pyaps3`: fix a bug introduced by #1364, which did not specify the full path to the `~/.netrc` file.

+ `prep_aria`: remove the redundant print out msg for a nicer print out msg.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support of --lat --lon for subsetting files in radar coordinates

3 participants