-
Notifications
You must be signed in to change notification settings - Fork 273
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
geocode.py error #1323
Comments
👋 Thanks for opening your first issue here! Please filled out the template with as much details as possible. We appreciate that you took the time to contribute! |
Potential solutionThe solution to the bug involves implementing the missing functionality for the What is causing this bug?The bug is caused by the lack of implementation for the CodeTo address the bug, the following steps can be taken:
# Example code snippet for implementing geo2radar functionality
def prepare_geometry_definition_geo(self):
if self.operation == 'geo2radar':
# Implement logic for geo2radar transformation
# This may involve setting up the lookup table and performing coordinate transformations
pass
else:
# Existing radar2geo logic
pass
raise ValueError('geo2radar with lookup table in geo-coord is not supported yet. Please use radar2geo or consult documentation for alternatives.') How to replicate the bugTo replicate the bug, follow these steps:
geocode.py swbdLat_N26_N28_Lon_E119_E122.wbd -l geo/geo_geometryRadar.h5 -o waterMask.rdr --geo2radar
ConclusionThe root cause of the bug is the lack of support for Click here to create a Pull Request with the proposed solution Files used for this task: Changes on src/mintpy/objects/resample.pyThe issue reported by the user is related to the Key Points:
Conclusion:The root cause of the issue is the lack of support for Changes on src/mintpy/geocode.pyAnalysis of
|
geocode.py swbdLat_N26_N28_Lon_E119_E122.wbd -l geo/geo_geometryRadar.h5 -o waterMask.rdr --geo2radar
When using geocode.py to convert a file from the geographic coordinate system to the radar coordinate system, an error occurred. How can I resolve this issue?
number of processor to be used: 1
resampling software: pyresample
Traceback (most recent call last):
File "/home/dfzy/mambaforge/envs/InSARenv/bin/geocode.py", line 8, in
sys.exit(main())
File "/usr/local/EZINSAR/tools_insar/proc_insar/MintPy/src/mintpy/cli/geocode.py", line 264, in main
run_geocode(inps)
File "/usr/local/EZINSAR/tools_insar/proc_insar/MintPy/src/mintpy/geocode.py", line 59, in run_geocode
res_obj.prepare()
File "/usr/local/EZINSAR/tools_insar/proc_insar/MintPy/src/mintpy/objects/resample.py", line 169, in prepare
self.prepare_geometry_definition_geo()
File "/usr/local/EZINSAR/tools_insar/proc_insar/MintPy/src/mintpy/objects/resample.py", line 667, in prepare_geometry_definition_geo
raise ValueError('geo2radar with lookup table in geo-coord it NOT supported yet!')
ValueError: geo2radar with lookup table in geo-coord it NOT supported yet!
The text was updated successfully, but these errors were encountered: