BrownDwarf / gollum

A microservice for programmatic access to precomputed synthetic spectral model grids in astronomy
https://gollum-astro.readthedocs.io/
MIT License
20 stars 5 forks source link

Expand the dashboard to include panels for T-P profile and composition gradients #75

Open gully opened 2 years ago

gully commented 2 years ago

The Sonora dashboard currently only plots the spectrum, but we could---and should---show other ancillary views into the physics of the model grid. The principal view-of-interest is the famous Temperature-Pressure (a.k.a, $T-P$, or sometimes $P-T$) profile, which changes with $T\mathrm{eff}$, $\log{g}$, and to some extent metallicity and C-to-O-ratio.

So in this hypothetical new version of the dashboard, the spectrum would update while simultaneously updating the appearance of a yet-to-be-added $P-T$ profile panel plot. In this way, the user would get instantaneous visual feedback about how the $P-T$ profile changes with $T\mathrm{eff}$, and how the Spectrum changes with $T\mathrm{eff}$.

The metadata for the $P-T$ profile is housed within the “structure.tar” files provided with Sonora-Bobcat. ATMO also provides this structure data.

In a conversation with Mark Phillips at CoolStars21 in Toulouse, Mark encouraged the addition of a third panel that is related but distinct from the $T-P$ profile plot. This third panel would show the composition of chemical species as a function of Pressure. One could conceivably overplot these on top of the P-T pofile, since they share the same $y-$axis, Pressure. But Mark recommended against cluttering the view too much. I tend to agree, since the movement of the curves will make the plot look visually busy. It's common to also plot the condensation curves for various species; I'm not sure if we would incorporate that visual element, but it's of course possible.

I think it’s doable to add these. I could imagine a Hack Day in the Fall where some of us work together on a prototype.

By the way, I think this dashboard would be an excellent learning tool. The grids are complicated and intrinsically "high" dimensional (about 4 or 5 tunable dimensions, plus many covariates). So a visualization tool like this would be useful to both newcomers and seasoned practitioners alike.

One drawback is that currently the dashboard has to be customized to each model grid, since they have different dimensions. That's OK, but means we have lots of duplicate code. I don't think that's a major problem, just a maintenance burden since the various dashboard get out of sync with each other.

gully commented 2 years ago

By the way some of these themes are related to earlier convos with Kelle Cruz and Will Cooper at CoolStars summarized in https://github.com/BrownDwarf/gollum/issues/67