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
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()
The text was updated successfully, but these errors were encountered:
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 ?
The text was updated successfully, but these errors were encountered: