added cull_data function to assisst removal of outliers from data and metadata