Open yjzhu-solar opened 2 months ago
Excellent point! To be honest, I am not entirely sure why the buffer is so large. I think the intent is to show all templates which overlap each data window. This can be useful in the case of multi-component fits where one of the lines falls outside the data window.
E.g., in your example file, window 3 has a wavelength range of 187.69 to 188.738
and one of the templates available is a three component fit with Fe IX 188.497, Si XI 188.675, & Ar XI 188.806
(which is outside the data window)
However, this behavior can just cause confusion and, as you pointed out, can return templates that are not relevant or useful. I agree that we should reduce the buffer value and maybe also filter out single gaussian templates that are mostly outside the window. While we are at it, we should probably also sort the list by template wavelength, rather than element (since the current method can make multi component fits hard to see).
Thanks for bringing this to our attention!
It is convenient to check and select available lines through the
eis_browse_template
GUI. However, sometimes a buffer of 0.25 angstrom in the maximum and minimum wavelengths may introduce additional lines not included in the dataset. For example, ineis_20071112_011726.head.h5
, window 15 has awvl_max = 264.10
, but the template browser still includes the S X 264.23 line in the available templates. Is it a good idea to downsize this buffer zone?