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
 Aligning Spectra
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

masterd

Australia
Posts

Posted - 04/30/2008 :  10:41:51 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): Pro 7.5
Operating System: XP

Due to computer timing and triggering, we are observing the shift in our spectra along the time scale. see pic below, observe the time shift up to half a sec with 50 replicates plotted.

Is it possible in Origin to align the given spectra? Manually, by script, any method or suggestion is welcome!

Once imported into the Origin, data is sorted XY XY, with option of converting it to XYYYY as X is the time axis and is constant for each replicate.

Thanks in advance,

Darko



Dominik Paulkowski

Germany
Posts

Posted - 05/09/2008 :  09:14:34 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello, Darko!

If I understand you correct you only need a shift correction. I would recommend the determination of each peak maxima and then substract a assumed linear shift that is measured as moving maximae on the time scale.

The "peaks" function can help you to do so. There you can find a script example:
http://www.originlab.com/forum/topic.asp?TOPIC_ID=3256
Note: the resulting dataset only carries the row numbers (iSpecificRowNumber) of the maximae in the measured data. You can get the right x,y-values of the peak maxima with "Dataset dsData[iSpecificRowNumber]" or "wksData.GetCell(iSpecificRowNumber, iYRowNumber, strDestValue)".

With the shifting peak maximae at the time scale you can determine a (linear) shift rate.

-------------------
:-Dipl.-Phys. Dominik Paulkowski
Fraunhofer Institute for Surface Engineering and Thin Films (IST)
Braunschweig
Germany
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