Skip to content

GrADs maskout equivalent in Python/metpy? #3593

Answered by dopplershift
sgofferj asked this question in Q&A
Discussion options

You must be logged in to vote

Not a function per se but that capability can be done with numpy's boolean indexing support:

a[mask < 0] = np.nan

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sgofferj
Comment options

Answer selected by sgofferj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants