astropy.utils
astropy.utils.masked
Evaluate a piecewise-defined function.
Like numpy.piecewise but for masked input array x. Any masks in condlist are ignored.
numpy.piecewise
x
condlist