Collocation operator on Python

Hello Navre,

The configuration of the collocation operator with source products got a bit confusing.
There is already a ticket for this problem.
[SNAP-1123] Consolidate source product parameters of CollocateOp - JIRA (atlassian.net)

In you case the following should help:
replace
parameters_collocate.put(“masterProductName”, str(terrain_correction_ascending))
with
parameters_collocate.put(“master”, terrain_correction_ascending)
or
parameters_collocate.put(“master”, str(path_ascending))
alternatively
parameters_collocate.put(“masterProductName”, terrain_correction_ascending.getName())
might work too.

The masterProductName parameter is used to identify the master from the list of sourceProducts or sourceProductPaths.

See also: Snappy: Collocate, set 'masterProduct' - #5 by marpet

1 Like