Don't make metric table if all analyses failed

Plus minor changes to functions to get spatial grid.