A[A==NDV]=numpy.nan
A==NDV will produce a boolean array that can be used as an index for A
More Related Contents:
- Removing nan values from an array
- How to print the full NumPy array, without truncation?
- Convert Python sequence to NumPy array, filling missing values
- Numpy array assignment with copy
- numpy matrix vector multiplication [duplicate]
- Repeating each element of a numpy array 5 times
- how does multiplication differ for NumPy Matrix vs Array classes?
- Ambiguity in Pandas Dataframe / Numpy Array “axis” definition
- How to split/partition a dataset into training and test datasets for, e.g., cross validation?
- How to create a numpy array of arbitrary length strings?
- Numpy modify array in place?
- Subsetting a 2D numpy array
- How to normalize a 2-dimensional numpy array in python less verbose?
- What is the difference between ndarray and array in NumPy?
- Removing elements from an array that are in another array
- Creating same random number sequence in Python, NumPy and R
- Stocking large numbers into numpy array
- check for identical rows in different numpy arrays
- pd.Timestamp versus np.datetime64: are they interchangeable for selected uses?
- Numpy: For every element in one array, find the index in another array
- Prevent numpy from creating a multidimensional array
- Inverting a numpy boolean array using ~
- Numpy minimum in (row, column) format
- Python: how to store a numpy multidimensional array in PyTables?
- numpy division with RuntimeWarning: invalid value encountered in double_scalars
- How does the axis parameter from NumPy work?
- numpy – evaluate function on a grid of points
- numpy arange: how to make “precise” array of floats?
- Shift rows of a numpy array independently
- Formatting floats in a numpy array [duplicate]