The version of this after the local maps refactoring will be much simpler:

```python
return self.mdmap.local_from_global(global_ind)
```

modulo variable names, etc.  So however difficult to follow the logic right now, it will improve once local maps are refactored.