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

Pass threshold instead of level energy to photoionisation formula fits #6

Closed
wants to merge 5 commits into from

Conversation

lukeshingles
Copy link
Member

@lukeshingles lukeshingles commented Oct 22, 2024

Pass the threshold energy to CMFGEN formula fits, instead of incorrectly passing the level energy. EDIT: Actually the lambda_angstrom does contain the threshold wavelength, so there was not a real bug there.

For tables of cross section samples (type 20, 21, 22), the incorrect threshold gets divided back out again when interpolating on the energy / energy_threshold grid, so these are not affected.

@lukeshingles lukeshingles force-pushed the cmfgenphotoionisationthresholdbug branch from 6f25018 to 5e9a4e4 Compare October 22, 2024 10:58
@lukeshingles lukeshingles force-pushed the cmfgenphotoionisationthresholdbug branch from 5e9a4e4 to 24d948c Compare October 22, 2024 11:24
@lukeshingles
Copy link
Member Author

lukeshingles commented Oct 22, 2024

One zone test with Fe, Co (QUB data input unaffected by this change), and Ni.
plotspec_130.2d_140.3d.pdf

@lukeshingles lukeshingles marked this pull request as ready for review October 22, 2024 11:43
@lukeshingles
Copy link
Member Author

Actually the lambda_angstrom does contain the threshold wavelength, so there was not a real bug there.

@lukeshingles lukeshingles deleted the cmfgenphotoionisationthresholdbug branch October 22, 2024 12:53
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.

1 participant