BU-hammerTeam / PyHammer

A Python Spectral Typing Suite
MIT License
53 stars 14 forks source link

Need to mask out the bad pixel at ~5600 Ang #16

Closed ctheissen closed 6 years ago

ctheissen commented 7 years ago

There is a bad or hot pixel in a lot of the spectra at around 5600 Angstroms. This feature tends to take control of the y-limits of the plot, and is very distracting. I would advise masking this feature from the spectra where it is an issue.

zephyr5050 commented 7 years ago

I believe you're referring to the stitching spike that appears in the SDSS spectra. There is an option in the Options menu "Remove SDSS Stitch Spike" (or Ctrl-R) that will remove this spike. This spike does appear in some of the templates as well, and we'll look into seeing about changing that if we can.

We don't remove this by default because the idea we were going for was that we didn't want to modify the user's spectrum without their knowledge. We wanted the user to be able to choose if their spectrum gets changed in some way, so they're completely sure of what changes are applied to it.

ctheissen commented 7 years ago

It doesn't appear to work. I still get the spike.

zephyr5050 commented 6 years ago

As far as I can tell from experimentation, the "Remove SDSS Stitch Spike" works for me on a variety of platforms. I'm closing this issue, but will re-open it if someone has an example of it not working for them and can provide some more specific information that can be used to debug.