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

Synthetic observables with PLATON #343

Merged
merged 15 commits into from
Feb 27, 2025
Merged

Synthetic observables with PLATON #343

merged 15 commits into from
Feb 27, 2025

Conversation

nichollsh
Copy link
Contributor

@nichollsh nichollsh commented Feb 27, 2025

Simulations can now be post-processed with PLATON to generate synthetic transmission and emission spectra. These are calculated only at the end of the simulation. Using PLATON requires downloading about 10 GB of data, which is done automatically when you run the script tools/get_platon.sh. Closes #339.

Future work could include: putting these through telescope simulators, or binning them down to instruments bandpasses.

@nichollsh nichollsh marked this pull request as ready for review February 27, 2025 11:39
@nichollsh
Copy link
Contributor Author

Example cpl_spectra.png plot from the endpoint of the Default PROTEUS configuration.
image

Copy link
Member

@timlichtenberg timlichtenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, very useful!

WRITE_FMT="%.7e"
PLATON_DOWNSAMPLE=8
PLATON_METHOD="xsec"
PLATON_GASES=["H2", "H", "He", "H2O", "CH4", "CO", "CO2", "O", "C", "N", "NH3", "N2",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How are these gasses processed if not in an AGNI simulation?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spectra only include the intersection of gases supported by PROTEUS and PLATON. Others are ignored, in the sense that their opacities are set to zero, but they still contribute to the height, pressure, temperature, etc.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, and how are the abundances of these (that do not contribute to opacity) then set?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In PLATON they are set to zero. However, it's worth noting that the species supported by PROTEUS are a subset of those supported by PLATON (until we start including rock vapours). This means that the radiative transfer in PLATON is consistent with that done by SOCRATES.

Copy link
Contributor Author

@nichollsh nichollsh Feb 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the legend refers to "removed gases" it just means that they are removed from the transmission/emission spectra calculations. Not from the full time-evolution. This is to associate the particular features with different species.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, thanks for the clarification! Good forward-planning. :)

@nichollsh nichollsh merged commit f005519 into main Feb 27, 2025
5 checks passed
@nichollsh nichollsh deleted the hn/platon branch February 27, 2025 14:46
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

Successfully merging this pull request may close these issues.

Calculate transmission/emission spectra
2 participants