If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.
Special Thanks To:
Aaron Holmes
Aaron Wheeler
Adam Horden
Alan Scrimgeour
Andre
Andrew Haynes
Anonymous000
asabase
Austin Weil
barney
Barry
Bert Hickman
Bill Kukowski
Blitzorn
Brandon Paradelas
Bruce Bowling
BubeeMike
Byong Park
Cesiumsponge
Chris F.
Chris Hooper
Corey Worthington
Derek Woodroffe
Dalus
Dan Strother
Daniel Davis
Daniel Uhrenholt
datasheetarchive
Dave Billington
Dave Marshall
David F.
Dennis Rogers
drelectrix
Dr. John Gudenas
Dr. Spark
E.TexasTesla
eastvoltresearch
Eirik Taylor
Erik Dyakov
Erlend^SE
Finn Hammer
Firebug24k
GalliumMan
Gary Peterson
George Slade
GhostNull
Gordon Mcknight
Graham Armitage
Grant
GreySoul
Henry H
IamSmooth
In memory of Leo Powning
Jacob Cash
James Howells
James Pawson
Jeff Greenfield
Jeff Thomas
Jesse Frost
Jim Mitchell
jlr134
Joe Mastroianni
John Forcina
John Oberg
John Willcutt
Jon Newcomb
klugesmith
Leslie Wright
Lutz Hoffman
Mads Barnkob
Martin King
Mats Karlsson
Matt Gibson
Matthew Guidry
mbd
Michael D'Angelo
Mikkel
mileswaldron
mister_rf
Neil Foster
Nick de Smith
Nick Soroka
nicklenorp
Nik
Norman Stanley
Patrick Coleman
Paul Brodie
Paul Jordan
Paul Montgomery
Ped
Peter Krogen
Peter Terren
PhilGood
Richard Feldman
Robert Bush
Royce Bailey
Scott Fusare
Scott Newman
smiffy
Stella
Steven Busic
Steve Conner
Steve Jones
Steve Ward
Sulaiman
Thomas Coyle
Thomas A. Wallace
Thomas W
Timo
Torch
Ulf Jonsson
vasil
Vaxian
vladi mazzilli
wastehl
Weston
William Kim
William N.
William Stehl
Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Registered Member #1906
Joined: Sat Jan 03 2009, 05:06PM
Location:
Posts: 39
In short, I'm writing an essay for school and I could use a little help. I have obtained a few (20 or so) radiation spectra in the form of csv files. They show the radiation from a light bulb at different voltages and what I'd like to do is to *identify what temperature the filament is *and compare my curves to that of an ideal black body radiator.
Any ideas?
I'm thinking it should be possible to fit a curve based on planck's law over the plotted data to compare but I'm not sure how. I've tried MS Excel but I can't manage to get it to plot a planck's law curve. I've also tried searching the web for an alternative software but there are lots and what I've tried so far hasn't ben helpful due to the (relative) complexity of planck's law.
Registered Member #1792
Joined: Fri Oct 31 2008, 08:12PM
Location: University of California
Posts: 527
If the peak of spectrum is contained in the included data then it is a simple closed form solution. Then from this temperature plot the spectrum and compare it to your spectrum data, if it looks close then call it a day.
But if the measurement band is too narrow to include the peak then you'll need to do a fitting routine, the Matlab optimization toolbox is great for this. But with any computation software (Python(x,y) is my preferred free tool) you could make your own fitting algorithm. The slowest but simplest way is a search algorithm: specify a temperature range, for each temperature compare the predicted spectrum to measured spectrum and determine a figure of merit such as average RMS error between the test spectrum and measured spectrum. Then from this array pick the temperature with the smallest error.
Registered Member #1526
Joined: Mon Jun 09 2008, 12:56AM
Location: UK
Posts: 216
Then I`d just do a fit in Matlab as you have access. You can have it fit the data to the blackbody equation, you`ll have to fiddle with starting values a bit. It`ll even give you the standard error.
Registered Member #1792
Joined: Fri Oct 31 2008, 08:12PM
Location: University of California
Posts: 527
When doing a fit you should throw out bad looking data points since they can only make convergence more difficult. There is a spike at around 600 which looks like it shows up on all of the traces which makes me think the measuring device had a problem there. I'd just delete that data point from all the traces.
Registered Member #1906
Joined: Sat Jan 03 2009, 05:06PM
Location:
Posts: 39
Turns out MatLab wasn't straight forward enough for me. Not today at least... I ended up estimating the wavelengths and skipping the comparison with an ideal black body.
Registered Member #1526
Joined: Mon Jun 09 2008, 12:56AM
Location: UK
Posts: 216
If it`s a matter of interest I`d be happy to use my copy of Matlab to fit a curve to your data and post the results, I enjoy this sort of thing anyway.
Registered Member #1906
Joined: Sat Jan 03 2009, 05:06PM
Location:
Posts: 39
That's very kind of you Fraggle and it might turn out to be helpful. Here is one spectrum. If it doesn't take you long to do this kind of fitting, could you fit a planck's law curve of the right temperature to that? Once again, I really appreciate your offer
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.