// work on a copy of your wave Duplicate/O myWave, myWave_n // divide wave by the average of the first 200 points // pnt2x is required because of wave scaling
myWave_n /= mean(myWave,pnt2x(myWave,0),pnt2x(myWave,199))
Where myWave is the name of your wave and myWave_n is the name you'd like to give to your normalised wave.
For cursors on the top graph the second line becomes:
If you only need to do one wave:
Duplicate/O myWave, myWave_n
// divide wave by the average of the first 200 points
// pnt2x is required because of wave scaling
myWave_n /= mean(myWave,pnt2x(myWave,0),pnt2x(myWave,199))
Where myWave is the name of your wave and myWave_n is the name you'd like to give to your normalised wave.
For cursors on the top graph the second line becomes:
myWave_n /= mean(myWave,pcsr(a),pcsr(b))
For lots of waves, it's best to write a function.
March 6, 2021 at 09:20 am - Permalink
In reply to If you only need to do one… by sjr51
Thank you so much!
March 7, 2021 at 12:52 am - Permalink