Using the simple pansharpen script for Landsat 8
https://www.sentinel-hub.com/faq/how-do-i-manually-pansharpen-specific-band-eg-red
I adjust for the band order, B04 -> B03, B03 -> B02, B02 -> B01,
B08 remains the same
weight = (B03 + B02 + B01 * 0.4) / 2.4;
if (weight == 0) {
return [0, 0, 0];
}
ratio = B08/weight * 2.5;
return [B03*ratio, B02*ratio, B01*ratio];
Yet it returns no image.
Why?
