Minor refactoring

- Split off a "select" method so other functions can subselect with
indices without computing averages