Closed JackDunnNZ closed 1 year ago
@JackDunnNZ will imshow(img.data_as_image())
still work event if the return type is a Numpy Masked array?
Yes it seems to, the second example above is passing a masked array to imshow
. I also get the same result running imshow(img.data_as_image())
on this branch
@JackDunnNZ can you add something in the changelog 🙏
🙏
Prior to this change, the raw data array was being returned, which could include
nodata
values, throwing off an automatic image color scale. In the following example, the nodata value used is -9999 (for all oceans), which causes the image to basically appear as a land mask:If instead we use the masked array values, the automatic color scale is scoped to just the valid data values: