Hi Ibuizza,
You are right, it is not obvious how to do it. So let me give you some pointers how to achieve this.
In the directory of the snappy examples is one examples which shows how to use BandMaths on one product. Here is the code on GitHub
If you want to use multiple source products you can follow the example given in this post:
Here the Merge operator is used but providing multiple products works the same.
- Create a HashMap and map the products to some names
- Pass this map to the call of GPF.createProduct()
- In the expressions, you can use the given names to differentiate between the products.
Using the names in the post you can do e.g. $masterProduct.band_1 and $slaveProduct.band_1
I hope this helps.