Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Box_smooth option #479

Merged
merged 4 commits into from Jul 16, 2018
Merged

Box_smooth option #479

merged 4 commits into from Jul 16, 2018

Conversation

profxj
Copy link
Contributor

@profxj profxj commented Jul 5, 2018

Adds an additional option for smoothing (that may
have used to exist).

@profxj profxj requested a review from jnburchett July 5, 2018 17:56
@coveralls
Copy link

coveralls commented Jul 5, 2018

Coverage Status

Coverage increased (+0.005%) to 71.734% when pulling abfce6f on smooth_without_scale into 97492f0 on master.

Merge branch 'smooth_without_scale' of https://github.com/linetools/linetools into smooth_without_scale
Copy link
Collaborator

@jnburchett jnburchett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and working well! One minor comment/question. Merge if happy.

new_sig = convolve(self.sig, Box1DKernel(nbox), **kwargs) / np.sqrt(nbox)
new_sig = convolve(self.sig, Box1DKernel(nbox), **kwargs)
if scale_sig:
new_sig /= np.sqrt(nbox)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is decreasing the S/N like this commonplace? If used recklessly, this could lead to erroneously small S/N values and (further?) correlated errors within the spectrum. At some point, I could see the virtue of a flag or something indicating that the spectrum has been smoothed (and thus the low S/N). I suppose that the user should just really need to be more careful than this, though.

@profxj
Copy link
Contributor Author

profxj commented Jul 16, 2018

merging

@profxj profxj merged commit 731a91f into master Jul 16, 2018
@profxj profxj deleted the smooth_without_scale branch July 16, 2018 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants