Closed gully closed 2 years ago
Hmm, the bin_edges are not consistently preserved in muler
, probably because we reset the wcs each time we change the pixel centers--- there's no way for that information to be preserved. We could modify our boolean_masking to somehow preserve the bin_edges. See this figure--- the red dots should have single pixel-wide green bars around them. Instead they consume adjacent masked pixels.
Specutils has a "bin_edges" attribute--- awesome! We should use it:
spec.spectral_axis.bin_edges.value
This attribute will simplify our
combine_spectrum_misaligned
method.