Get sample mass from data file