astropy.utils
astropy.utils.masked
Return an array drawn from elements in choicelist, depending on conditions.
Like numpy.select, with masks in choicelist are propagated. Any masks in condlist are ignored.
numpy.select
choicelist
condlist