Jump to content

Banner.jpg.b89429c566825f6ab32bcafbada449c9.jpg

Subtracting one dataset from another?


Gasman

Recommended Posts

Hi folks

I`m trying out a fibre optic spectrometer for taking spectra. The software gives results in .csv format like so -

post-15973-0-58594000-1391714499_thumb.j

This is a screenshot from the scope with cap fitted ie just noise call it plotA-

post-15973-0-26697100-1391714580_thumb.j

This is a screenshot from the scope with cap removed pointing at Jupiter call it plotB

post-15973-0-47022700-1391714630_thumb.j

Now somewhere in plotB is the data of Jupiter and I gather software such as Excel or Openoffice can subtract the data in plotA from plotB but I`m not sure how to go about it if someone could point me to a tutorial or suchlike please?. I assume its just like subtracting a Dark from a Light in ccd imaging!.

cheers

Steve

Link to comment
Share on other sites

Hmmm... The data does look a bit similar to the background though. [teasing]

A fair bit of random noise on both? BUT I do sense there are real differences. :)

Perhaps a bin-by-bin subtraction won't reveal too much. I also imagine you do 

want to preserve the SHARP resolution of the data? Maybe take a leaf from

LHC / Higgs Physics book and *smooth* the background before "subtraction"?

http://www.atlas.ch/news/images/stories/1-plot.jpg (Show stuff as superimposed plots etc.)

It's all more about data presentation... Guiding the eye to the intended result? ;)

Link to comment
Share on other sites

Thanks Per and Chris, at this point I`m not 100% the scope (or rather the fibre) was bang on Jupiter, I need to tweak the flip mirror a bit more, its more the practical side of the data subtraction I was trying to suss out not having a great deal of experience with spreadsheets.

I`ve got both files loaded in the spreadsheet with a couple of not needed columns deleted like so

post-15973-0-50282200-1391767116_thumb.j

So the capped scope is columns A to E and the uncapped one in columns I to L with columns A and J the same (the pixel count).

The `Average spectrum` columns seem to be the important ones, so I need to subtract everything in column E from everything in column L and place it in its respective row in say column N but what expression would I need to write in the `function` space at the top to do that please?

Phew need a lie down :laugh:

Steve

Link to comment
Share on other sites

Simply enter    =L6-E6       into cell N6 and press enter.  Then fill down to put the formula in every cell of column N.  You must have the = sign at the beginning of the formula and you must press enter after typing it into the cell.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.