-
-
Save rth/83a52122426611b0a2d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import opacplot2 as opp | |
# create a dictionary op with opacity data from a TOPS file | |
# check that units are consistent | |
# write to Ionmix format | |
opp.writeIonmixFile(fname, | |
op['Znum'], op['Xnum'], | |
numDens=op['idens'][:], # electron density | |
temps=op['temp'][:], | |
ngroups=Ng, | |
opac_bounds=groups_array, | |
planck_absorb=res['opp_mg'][:], | |
rosseland=res['opr_mg'][:], | |
planck_emiss=res['emp_mg'][:]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment