python Programming Glossary: repmask
Filling gaps in a numpy array http://stackoverflow.com/questions/5551286/filling-gaps-in-a-numpy-array i slice 0 1 slcs2 i slice 1 None # replace from the right repmask np.logical_and ~flag slcs1 flag slcs2 data slcs1 repmask data.. repmask np.logical_and ~flag slcs1 flag slcs2 data slcs1 repmask data slcs2 repmask flag slcs1 repmask True # replace from the.. ~flag slcs1 flag slcs2 data slcs1 repmask data slcs2 repmask flag slcs1 repmask True # replace from the left repmask np.logical_and..
|