masktozero

image_tools.drizzle.masktozero(arr)[source] [edit on github]

Convert all NANs or masked elements of an array to zero, and return a numpy array (NOT a masked array).