Dpc more

More issues related to dpc code are resolved.
I didn't realize np.ma object is so powerful.