I have a stack of images, say
img_stack = xr.DataArray( da.from_array(np.random.random((5,100,100))), dims=(\'t\',\'x\',\'y\'), coords={\'t\':range