I am looking to replace a number with NaN in numpy and am looking for a function like numpy.nan_to_num, except in reverse.
The number is likely to change as differen
A[A==NDV]=numpy.nan
A==NDV will produce a boolean array that can be used as an index for A