Hi everyone.
I’m working with snappy wrapper to apply coregistration a number of input images.
It is not clear to me how to reproduce the call to “Find Optimal Master” button programmatically.
The options of CreateStack are:
- params name=masterBandNames; alias=masterBands
- params name=slaveBandNames; alias=sourceBands
- params name=resamplingType; alias=None
- params name=extent; alias=None
- params name=initialOffsetMethod; alias=None
This is the python code:
def create_stack(products):
parameters = HashMap()
parameters.put(‘resamplingType’, None)
parameters.put(‘initialOffsetMethod’, ‘Product Geolocation’)
parameters.put(‘extent’, ‘Master’)
return GPF.createProduct(‘CreateStack’, parameters, products)
Which of these should I tune (and how) to automatically retrieve the optimal master in snappy?
Thanks in advance