You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 using find_transition_wavelength, i.e.
defabut(product_short, product_long, transition_wvln=None):
# check for user trans_wvln:iftransition_wvln:
# check it's in the right region:if (user_trans_wvln>product_long.min) &user_trans_wvln<product_short.max):
transition_wvln=user_trans_wvlnelse: # user specified a wvln outside of the overlapprint(‘invalidwvlnspecified’)
exitelse: # user didn't try to specify a transition wvlntransition_wvln=get_transition_wvln()
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.
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
The text was updated successfully, but these errors were encountered: