add process the data and some initial  results for threshold and
clustering