Skip to content

Removing Spectral Noise from spectra? #12

Answered by thomased
jwyco12 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Jacob,

Just copying this here from our email, for posterity. Cheers!

I’ve seen that kind of noise before from light sources (is it a JAZ spec?) – odd. At any rate, with noise that severe I’d suggest the simplest way to correct for it is just to manually interpolate across the span of the noise (i.e. draw a straight line from just before the noise to just after it), then run it through the smoothing. There’s no way procspec() smoothing will be able to handle it directly, since you’d have to make the smoother so extreme that it’d destroy the shape of the spec itself. Here’s a chunk of code to show what I mean – see how you go, and let me know if you hit any issues!

# Library
library(pavo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thomased
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants