The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 peak detection
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

anje18

USA
9 Posts

Posted - 06/27/2002 :  1:44:15 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
If I have roughly sinusoidal data(the curves are not regular), how could I go about using the programming tools to detect the peaks in this data?

easwar

USA
1965 Posts

Posted - 06/27/2002 :  5:01:07 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Assuming your x,y data are in col a, b of worksheet data1:

1> Add a new column, c to the worksheet
2> Type the following in the script window and hit return:

data1_c=peaks(data1_b,w,h)

where you put in some numbers in place of w and h. w is the width, the number of points on either side of the test point and h is the minHeight, in Y axis units.
Column C will then hold the indices (row numbers) of points in your datasets that are peak points. You may need to repeat the command by changing w, h to get the desired results. Make sure to clear col c before running the command again.

If you need more control, there are methods with baseline etc. that you can search for in the LabTalk help file with the keyword "peak".

Easwar
OriginLab.
Go to Top of Page

tjuii

USA
4 Posts

Posted - 07/17/2002 :  7:42:21 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Here's another Peak Finder Question.

I have an obscene amount of files that contain resonance spectra of Lorentzians. I have found the PFM very easy to use and gives good results for fitting lorentzians to my data, but is a complete nightmare in the fact that I must do each file by hand. I need to be able to automatically detect the lorentzians in batches of 100 to 500 spectra. Is this easily possible using Origin C or any other method in Origin?

My exact procedure needs to be:
1) open data file (3 columns) containing spectrum of lorentzians (generally 1-10 peaks/spectrum)
2) create a new column that is filled with col(B)^2 + col(C)^2
3) fit this new column to a specified number of lorentzians.
4) Output the peak locations and widths
5) repeat 1-4 for 100 to 500 files
Go to Top of Page

ravinder

India
8 Posts

Posted - 02/17/2004 :  1:09:38 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Dear all,
I am using "Pick Peaks" module to detect the peaks in my plot.
Actually the region where peak occurs is not a single point, but a range of x-values that have same y. The peak detection module in its present form, pics the first such point. But, what I need is the central point of this region. How do I acheive this??
Thanks in advance!
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000