Skip to content

Commit

Permalink
Fix Kurucz imported A values (100x too high from missing [Angstrom/nm…
Browse files Browse the repository at this point in the history
…]^2)

Co-Authored-By: fmcneill49 <[email protected]>
  • Loading branch information
lukeshingles and fmcneill49 committed Feb 10, 2025
1 parent dfad23a commit 86b4497
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion artisatomic/readcarsusdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ def read_levels_and_transitions(atomic_number, ion_stage, flog):

dflines = gfall_reader.extract_lines().loc[atomic_number, ion_charge]

dflines["A"] = dflines["gf"] / (1.49919e-16 * (2 * dflines["j_upper"] + 1) * dflines["wavelength"] ** 2)
# wavelengths are in nanometers, so multiply by 10 to get Angstroms
dflines["A"] = dflines["gf"] / (1.49919e-16 * (2 * dflines["j_upper"] + 1) * (dflines["wavelength"] * 10.0) ** 2)

transitions, transition_count_of_level_name = read_lines_data(energy_levels, dflines)
artisatomic.log_and_print(flog, f"Read {len(transitions):d} transitions")
Expand Down

0 comments on commit 86b4497

Please sign in to comment.