ProperImage icon indicating copy to clipboard operation
ProperImage copied to clipboard

Mask to nomask

Open BrunoSanchez opened this issue 2 years ago • 1 comments

https://github.com/quatrope/ProperImage/blob/a5ee3b74afc27de1a954ae2f9f96c278a4723226/properimage/operations.py#L146

This uses the default parameter shrink=True of np.ma.mask_or and it reduces the mask to a nomask (a single bool, with False) instead of an image sized array with bool or int 1 or 0 values.

BrunoSanchez avatar Jun 21 '22 21:06 BrunoSanchez

This would be the solution? np.ma.mask_or(new_img.data.mask, ref_img.data.mask, shrink=False)

BrunoSanchez avatar Jun 22 '22 13:06 BrunoSanchez