GreyMamba

Thinking Allowed … (under construction)

Thinking Allowed … (under construction)

Nothing is interesting if you're not interested
Helen Clark MacInnes
Python Stuff

I tend to spend too much time mucking around with Python code - as you can see from the bits of code scattered around this site. So, I've decided to add a page specifically for stuff related to just Python. It'll include snippets of code, interesting applications, algorithms or anything else Python related. Code that is purely there as a means to demonstrate or calculate something specific will remain as it is, in the most relevant post. Most of this stuff will be migrating to my sister pages -

- in the near future.

Sorry if you were hoping to see something on the Pythonidae family of snakes - interesting as they are.

Remove a spectrum's complex baseline.

Here's an interesting little function I cooked up. With many experimental spectra, there is an underlying 'background' signal that distorts the actual useful signal. Sometimes you can remove this by taking background spectra from somewhere where the actual signal is absent and subtract this (usually an average of several of them) from the useful spectrum.

In some cases, this isn't available, but the background is easy to simulate as, for example, it may be a straight line 'slope'. hence a simple function can be 'fitted' and subtracted.

However, there are clearly some cases where neither of these methodologies are possible. This post gives a simple function that I thought up and have used successfully.
Read More...
 Page 1 / 1 
RapidWeaver Icon

Made in RapidWeaver