Hello,
I am working with Sentinel-3 OLCI products. In my code I made bands subset by creating new .dim file with selected bands. Those bands have geocoded pixels with NaN values on each side of every scene (behind the borders of scene). After opening .dim file with selected bands in SNAP, I can see nice and clear image, without any borders.
However, after computing albedo using
r4 = b4.readPixels(0, y, width, 1, r4)
albedo = r4*ESD/10
albedoBand.writePixels(0, y, width, 1, albedo)
New, albedo bands will be created with borders:
Instead of NaN values, the pixels have certain values with unknown origin. Is it somehow possible not to use NaN values (ignore them) with computing albedo ?
Thank you for your quick response.