Mask out branches and connect data to get spatial

TRIPLICATE THREAD!!! Please don’t create multiple threads for the same question.