Skip to content
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

register_arrays typo #466

Open
HGS-JoeDecker opened this issue Aug 22, 2023 · 0 comments
Open

register_arrays typo #466

HGS-JoeDecker opened this issue Aug 22, 2023 · 0 comments

Comments

@HGS-JoeDecker
Copy link

HGS-JoeDecker commented Aug 22, 2023

I am trying to register two arrays and have encountered the following.

It appears that on like 231 in regi.py moving_array should be moving_array.ndim ?

result = register_arrays(data1, data2)
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\jdecke04\AppData\Local\Programs\Python\Python310\lib\site-packages\sarpy\processing\registration\regi.py", line 547, in register_arrays
return _single_step_grid(
File "C:\Users\jdecke04\AppData\Local\Programs\Python\Python310\lib\site-packages\sarpy\processing\registration\regi.py", line 487, in _single_step_grid
best_loc, max_correlation = _single_step_location(
File "C:\Users\jdecke04\AppData\Local\Programs\Python\Python310\lib\site-packages\sarpy\processing\registration\regi.py", line 373, in _single_step_location
best_temp_location, maximum_correlation = _max_correlation_step(reference_array, moving_array, do_subpixel=do_subpixel)
File "C:\Users\jdecke04\AppData\Local\Programs\Python\Python310\lib\site-packages\sarpy\processing\registration\regi.py", line 231, in _max_correlation_step
if reference_array.ndim != 2 or moving_array != 2:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

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

No branches or pull requests

1 participant