Do a search across the forums here as there was a very similar discussion just a few months ago. And one some longer time go as well. There are several “gotchas” associated with the too simplistic scheme above. I wish I could recall the scientific instrument name mentioned as that would narrow the search down quickly.