Open nkerman opened 3 years ago
I implemented a really quick version of this that seems to work! Happy to talk and see if it's compatible, and just add it in if you want.
One strange thing I've noticed is that when there's a specified transition wavelength, there's usually-but-not-always the same sampling rate discontinuity at the transition seen when the transition is automatically chosen. I can't seem to figure out why it isn't ALWAYS there, but it seems to be some multiple of the sample rates combined.
Please see the fig.
Idea:
Users would benefit from being able to choose the point at which two abutted spectra transition from the lower-λ (A) to longer-λ spectrum (B)
Problem:
At present, the transition wavelength is always decided by the function,
find_transition_wavelength
, which chooses the center of the overlap.This is less than ideal, as often you would get a better abutted spectrum by using A for the vast majority of the overlap.
Potential Fix:
This does not have to be automatic within the wrapper (that would be great, but there's a lot of variables and data-dependent decisions). Instead, the user should be able to do this piecewise, i.e.
Where the
abut
function checks for a user-specified transition wavelength, before usingfind_transition_wavelength
, i.e.@jotaylor (who helped draft this idea) @stscirij