GrADs maskout equivalent in Python/metpy? #3593
-
Is there any equivalent to the GrADs maskout function in Python or metpy? If not, how would I achieve a similar functionality? |
Beta Was this translation helpful? Give feedback.
Answered by
dopplershift
Aug 15, 2024
Replies: 1 comment 1 reply
-
Not a function per se but that capability can be done with numpy's boolean indexing support: a[mask < 0] = np.nan |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sgofferj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not a function per se but that capability can be done with numpy's boolean indexing support: