Selected mean and std data, calculated mean and write to file