astropy.utils
astropy.utils.masked
Replaces specified elements of an array with given values.
Like numpy.put, but for masked array a and possibly masked value v. Masked indices ind are not supported.
numpy.put
a
v
ind