Open kfkaplan opened 2 years ago
Thank you Kyle! I am happy that gollum makes it possible to make a coarse interpolation of grid points that may be suitable to your needs.
I'm hesitant to build intra-grid interpolation into gollum itself, since I think of that process as an inference procedure: attempting to infer what an unseen grid point would have looked like requires some assumptions about how the grid varies.
Starfish probably remains the state-of-the-art for such an inference procedure, since it returns both a reconstructed spectrum, but also a non-stationary "discretization uncertainty matrix" correlation matrix, codifying how much information was lost by each pixel due to the coarse grid spacing.
To some extent gollum replicates existing grid interfacing in Starfish, but goes beyond, by offering an easy to use dashboard and method chaining.
Some recent overhauling of Starfish should make it much faster and more user friendly, so it may be worth a look if you have previously struggled to get it working.
This is partly a feature request but also partly an example of how this might be done.
You can load a grid of models, for example PHOENIX models like so
which you can then fit with the dashboard (for example see this Tutorial https://gollum-astro.readthedocs.io/en/latest/tutorials/gollum_demo_Sonora_and_BDSS.html).
While (as far as I know) there is no current implementation of interpolating between models on a grid, I found I could load two models and combine them, given a chosen fraction of how much to use from each. In the following example, I combine two PHOENIX model synthetic spectra which are identical, but one has a log g=4.5 and the other has log g =5.0, into one and then proceed to process and normalize it:
Something like this could form the basis for interpolating between points on a model grid to generate synthetic spectra with stellar parameters with values between grid points. In the meantime, the above example I have seems to work, for anyone who needs this functionality.