set value where the condition is true #4951
Answered
by
keewis
raybellwaves
asked this question in
Q&A
-
Hoping to do something like
|
Beta Was this translation helpful? Give feedback.
Answered by
keewis
Feb 25, 2021
Replies: 1 comment 1 reply
-
wouldn't xr.where(da < 4, 1, np.nan) unless you want to keep the values of |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
raybellwaves
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wouldn't
xr.where
work:unless you want to keep the values of
da
forx <= 3
? For that you would probably need the 2 step approach