Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mask to nomask #74

Open
BrunoSanchez opened this issue Jun 21, 2022 · 1 comment
Open

Mask to nomask #74

BrunoSanchez opened this issue Jun 21, 2022 · 1 comment

Comments

@BrunoSanchez
Copy link
Collaborator

mix_mask = np.ma.mask_or(new.data.mask, ref.data.mask)

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
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant