Closed abradley60 closed 3 months ago
Hi @abradley60 thanks a lot for pointing this out. However, your fix doesn't fully solve the problem because of this loop:
https://github.com/SAR-ARD/S1_NRB/blob/5312d5d8b1af836580cbde770288409b5ddeeeaa/S1_NRB/processor.py#L147
If your list of neighbors only contains one item (neighbors = [None]
), the neighbors[i]
selection in this loop will fail if the list of scenes contains more than one item.
I think this should fix it (without previous declaration of neighbors
):
if config['product'] == 'GRD':
print('###### [ SAR] collecting GRD neighbors')
neighbors = []
for scene in scenes:
neighbors.append(search.collect_neighbors(archive=archive, scene=scene))
else:
neighbors = [None for scene in scenes]
Could you update your PR with this?
Hi @johntruckenbrodt . Good point! I have only been working with a single scene. Fix for the loop has been implemented.
great! Thanks again @abradley60
Process not running with an SLC. Neighbors should be initiated as a list as when it is called on line 202 in the snap.geocode function; a list is expected
neighbors=neighbors[i]
The following error will result processing a SLC: