I want to apply max operator over two bands ‘CI_1’ and ‘CI_2’ ,contained in two different products ‘product_1’ and ‘product_2’, respetively. To this end, I first resampled both the images to same size and then merged the band ‘CI_2’ with ‘product_1’. Then I used BandMaths operator to take the pixel-wise maximum of the two images. The resampling procedure, however, creates misalignment of two bands, and, therefore, the resulting band obtained after max operator is undesirable: this problem is illustrated through figures below.
Can anyone please suggest how to solve this problem?
One solution to this could be to pad the bands with additional pixels taking the values NaN such that each band has same size. But I do not know how to do it either.