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

Generate opacity files #41

Open
isaacgsmith opened this issue Mar 1, 2023 · 0 comments
Open

Generate opacity files #41

isaacgsmith opened this issue Mar 1, 2023 · 0 comments

Comments

@isaacgsmith
Copy link
Member

isaacgsmith commented Mar 1, 2023

In the bottom of docs/stardis.bib, in the "Opacity Data" section, there are several papers that contain data for cross-sections, gaunt factors, or hydrogenic bf/ff departure coefficients. The papers are also in the TARDIS Zotero in the STARDIS/Stellar Opacity Data subfolder. A few guidelines for the cross-section files (as the readers for the others haven't been built yet, see #42):

  • No column or row headers.
  • # is for comments.
  • If there is no temperature dependence, wavelength is the first column and cross-section is the second column.
  • If there is temperature dependence, wavelength is the first column and temperature is the first row. Leave the top left entry blank, though. The cross-sections then are filled in according to their wavelength and temperature.
  • The reader does flat extrapolation beyond the min/max wavelength/temperature, so if you want the opacity to be zero beyond a certain wavelength/temperature, you need to include that in the table.
  • Wavelengths must be in Angstrom, temperatures in Kelvin, and cross-sections in the appropriate CGS units.

However, see #61 as these guidelines may change.

We will want these in the refdata repo (either tardis/refdata or a new stardis/refdata) eventually.

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

1 participant