@adonath - Thanks!
I find this code in the iter_by_pix and iter_by_coord very complex and non-obvious:
I realise you didn't add it in this PR, so OK to merge as-is.
@adonath - Do you understand it? Is it used / tested? Does it make sense to subset data this ways?