I am learning how to mosaic two bands named ‘CI’ of two different products ‘product1’ and ‘product2’ using snappy. I have used the following code to achieve this goal:
George: There is still one problem I have not been able to solve regarding mosaicing.
The final result of mosaicing obtained by using snappy is different from that obtained by using SNAP desktop. When I use snappy, all the pixels with NaNs are replaced by zeros. Here are some details:
product2 contains a band ‘CI’ with all pixels filled with NaN values, and the product1 contains the ‘CI’ band that needs to be mosaiced with product2. What I really need is to lay product1 over product2 which SNAP desktop seems to be doing.
The metadata for the two mosaic results should include some details of the processing history, so may provide insight into the difference. Otherwise you will need to work with the variables and conditions sections. A closer look at how you set vars might be useful.