how to fit a base line
pen
one very simple and stupid question:
i have one trace which is not stable, and has a little bit slope, i just want to make the the trace stable, i mean horizonal, how to do it? i think it's not fitting,
just some way to make it parraler with x axis.
thanks
What does your data look like? What is your ultimate goal?
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
August 21, 2012 at 03:18 pm - Permalink
my data is exported from patchmaster as igor text data, actually is just a trace with some single channel on it, but the trace is not horizonal with some slope, i want the trace is horizonal which looks good.
Thanks!
August 21, 2012 at 04:54 pm - Permalink
http://www.igorexchange.com/node/865
but when i paste the code into an Igor procedure window, run, erro pup out, it show " expected wave name, variable name, or operation“, what this mean? do i name my file wrongly? i named my file as" sweep1".
thanks!
sorry new person to igor..
August 21, 2012 at 05:31 pm - Permalink
In order for us to diagnose the problem you will need to provide instructions for reproducing it, for example, a set of Igor commands that cause the error message. Or post an experiment and instructions that would enable us to reproduce the error.
Short of that, a wild guess is that your procedures are uncompiled. For details execute these two commands one-at-a-time and read the displayed help:
DisplayHelpTopic "Auto-Compiling"
August 21, 2012 at 07:29 pm - Permalink
wave linear_line
linear_line = slope*p + y_intercept
data -= linear_line
In general you might have something other than a linear offset so you need to make sure you are using the correct equation to represent your baseline offset.
August 22, 2012 at 06:27 am - Permalink
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAHuntsville
August 22, 2012 at 09:01 am - Permalink
If you are trying to correct for a baseline shift that changes during the duration of a single trace (that is, a slope), then the code I posted previously that you linked to isn't appropriate. You need to do what John suggests and calculate a trend line and subtract that.
August 22, 2012 at 12:05 pm - Permalink
http://www.igorexchange.com/project/BaselineSpline
August 23, 2012 at 05:56 pm - Permalink