SyntaxFix
Write A Post
Hire A Developer
Questions
A[A==NDV]=numpy.nan
A==NDV will produce a boolean array that can be used as an index for A