Pan-sharpens ms with pan. Both must have the same width and height: resample the multispectral image onto the panchromatic grid first (bilinear or bicubic). Pixels that are no data (or NaN) in either stay no data.
ms
pan
const sharp = panSharpen( { data: pan, width, height, noData: 0 }, { data: msOnPanGrid, width, height, bands: 4, noData: 0 }, { method: 'gram-schmidt' },); Copy
const sharp = panSharpen( { data: pan, width, height, noData: 0 }, { data: msOnPanGrid, width, height, bands: 4, noData: 0 }, { method: 'gram-schmidt' },);
Pan-sharpens
mswithpan. Both must have the same width and height: resample the multispectral image onto the panchromatic grid first (bilinear or bicubic). Pixels that are no data (or NaN) in either stay no data.