Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 52
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
All today's birthdays', congrats!
nitromarsjipan (2024)
mb (31)
Joyeep (32)


Next birthdays
11/05 Capper (60)
11/05 cereus (73)
11/05 Mcanderson (43)
Contact
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.
Forums
4hv.org :: Forums :: General Science and Electronics
« Previous topic | Next topic »   

Radiation spectras

1 2 
Move Thread LAN_403
woxxey
Thu Jan 06 2011, 08:39PM Print
woxxey 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.
Back to top
Fraggle
Thu Jan 06 2011, 11:59PM
Fraggle Registered Member #1526 Joined: Mon Jun 09 2008, 12:56AM
Location: UK
Posts: 216
Matlab will do it without issue and can important data with any delimiter including commas. Of course, it`s not free.
Back to top
Carbon_Rod
Fri Jan 07 2011, 05:27AM
Carbon_Rod Registered Member #65 Joined: Thu Feb 09 2006, 06:43AM
Location:
Posts: 1155
Octave is a free Matlab, and it is worth the time to learn it's plot tools.

Cheers,
Back to top
Mattski
Fri Jan 07 2011, 08:32AM
Mattski 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.
Back to top
woxxey
Fri Jan 07 2011, 11:25AM
woxxey Registered Member #1906 Joined: Sat Jan 03 2009, 05:06PM
Location:
Posts: 39
Thanks for your quick replies. I will try MatLab during the day.

The problem with picking the peak intensity is that there is a bit of interference in the spectrum, it's not exactly a smooth line:

1294399422 1906 FT105459 Untitled
Back to top
Fraggle
Fri Jan 07 2011, 06:07PM
Fraggle 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.
Back to top
Mattski
Fri Jan 07 2011, 07:02PM
Mattski 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.
Back to top
woxxey
Fri Jan 07 2011, 08:40PM
woxxey 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.
Back to top
Fraggle
Fri Jan 07 2011, 10:29PM
Fraggle 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.
Back to top
woxxey
Sat Jan 08 2011, 07:32AM
woxxey 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 smile
Back to top
1 2 

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
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.