Closed dciampa closed 3 years ago
Also, just for example. When using spline fitting the result is as such:
In order to constrain the Chebyshev polynomial you also have to include the continuum region in the fit. Right now you are masking out all the continuum region and therefore the code cannot properly constrain the polynomium.
Up until now I have primarily used spline continuum fitting and have had no issues with the normalization. Recently, I tried to use Chebyshev polynomials for the continuum, but am noticing some irregular results. When I first fit the continuum the immediate normalization looks fine and is very well horizontally aligned. However, the final plot_fit pdf has the continuum no long normalized well. I'm including an example of this. On the left, during the masking phase you see the continuum normalized yet the final fit shows the continuum residing below the expected horizontal dashed line at 1. I'll also include some of my code that I am running: