Normalization acros multiple waves / photoelectron spectroscopy

Dear all i have data from a photoelectron spectroscopy experiment which i need to normalize. I found the following tread:

http://www.igorexchange.com/node/4482

and could use the supplied code to normalize an individual wave. My data consist of different waves; the actual data, and a backgound plus several indivuial Peak models as well as the resulting envelope of the peak fit. Obviously if i normalize each of theses waves individually the relative height of theses peaks changes as each one is normalized on its own. What i want is to scale each of the Peaks so the ensemble is normalized. In my opinion this would mean that i normalize the actual data and scale the other peaks by the same factor... if possible this should be done all in one go?


It would be nice if you could help me with this task.

All the best
You could do something like this:
     Variable MaxVal=WaveMax(MyDataWave)
     Variable MinVal=WaveMin(MyDataWave)

     MyDataWave=(MyDataWave-MinVal)/(MaxVal-MinVal)
     MyPeak1Wave=(MyPeak1Wave-MinVal)/(MaxVal-MinVal)
     MyPeak2Wave=(MyPeak2Wave-MinVal)/(MaxVal-MinVal)
     MyBackgroundWave=(MyBackgroundWave-MinVal)/(MaxVal-MinVal)

If you are only interested in displaying the waves normalized you could also look into offsets and muloffsets for ModifyGraph.
olelytken wrote:
You could do something like this:
     Variable MaxVal=WaveMax(MyDataWave)
     Variable MinVal=WaveMin(MyDataWave)

     MyDataWave=(MyDataWave-MinVal)/(MaxVal-MinVal)
     MyPeak1Wave=(MyPeak1Wave-MinVal)/(MaxVal-MinVal)
     MyPeak2Wave=(MyPeak2Wave-MinVal)/(MaxVal-MinVal)
     MyBackgroundWave=(MyBackgroundWave-MinVal)/(MaxVal-MinVal)

If you are only interested in displaying the waves normalized you could also look into offsets and muloffsets for ModifyGraph.


Thank you very much! I will test this and report! Is it somehow possible to make this a makro wich goes looks for waves with corresponding names in one folder outomatically ?
Sure! It is possible to automate almost anything. Macros are rather old-fashioned and should not be used for the most simple tasks (you rather should write functions, which can do much more). But anyway ... how you approach this task depends very much on your data organization and especially the naming scheme of your waves. Can you give more details or even an example experiment file?