Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolution matrix & subpixel structure #183

Open
segasai opened this issue Sep 19, 2024 · 1 comment
Open

Resolution matrix & subpixel structure #183

segasai opened this issue Sep 19, 2024 · 1 comment

Comments

@segasai
Copy link

segasai commented Sep 19, 2024

Hi,

Given your interest in the resolution matrix discussion in the desispec repo, I thought I'd bring to your attention what I have tried to do with the resolution matrix for stellar science, which I think it also have relevance for fastspecfit.

Resolution_matrix.pdf

(I shared this on slack a while ago as well)

Specifically this is an attempt to correctly deal with the subpixel structure in spectrum when doing resolution matrix convolutions by first preconvolving all template spectra with the fixed Gaussian kernel, and then applying the 'modified' resolution matrix.
This is what I implemented in rvspecfit https://github.com/segasai/rvspecfit/blob/e0d2b1d84d421294f5c936633415c9760ca055b5/py/rvspecfit/desi/desi_fit.py#L608
but the enabling of this was derailed by the discovery of the issue reported in the desispec repo.

From my experiments with spectral perfectionism on toy highly structured spectra https://colab.research.google.com/drive/10CZ0TkRCDuvzc3-zNx47U9d7S_VVCK0j?usp=sharing this produces correct models of extracted spectra (the current approaches do not if the true spectrum is highly structured)

Obviously fastspecfit is for the galaxies spectra, so this has less relevance for you, than for the MW, but I thought it still could be of interest, as this code is one of the direct users of the resolution matrices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@segasai and others