Closed moustakas closed 3 years ago
Hi Moustakas, You may want to use the RecAtom class for the HeII lines:
import pyneb as pn
atm = pn.RecAtom('He', 2)
emis = atm.getEmissivity(1e4, 1e2)
Christophe
Thanks @Morisset!
In addition to HeII
, I'm also interested in HeI
, but the wave_Ang
attribute appears to be missing, e.g.,
atm = pn.RecAtom('He', 1)
print(atm.wave_Ang)
None
Any suggestions?
In the case of HeI, the labels are in the form of strings:
print(atm.labels)
('2945.0', '3188.0', '3614.0', '3889.0', '3965.0', '4026.0', '4121.0', '4388.0', '4438.0', '4471.0', '4713.0', '4922.0', '5016.0', '5048.0', '5876.0', '6678.0', '7065.0', '7281.0', '9464.0', '10830.0', '11013.0', '11969.0', '12527.0', '12756.0', '12785.0', '12790.0', '12846.0', '12968.0', '12985.0', '13412.0', '15084.0', '17003.0', '18556.0', '18685.0', '18697.0', '19089.0', '19543.0', '20427.0', '20581.0', '20602.0', '21118.0', '21130.0', '21608.0', '21617.0')
Hope it helps, Christophe
Thanks, I did see these labels but I need 3-4 decimals of precision. Is this possible?
On Sat, Jul 31, 2021, 2:01 PM Christophe Morisset @.***> wrote:
In the case of HeI, the labels are in the form of strings:
print(atm.labels) ('2945.0', '3188.0', '3614.0', '3889.0', '3965.0', '4026.0', '4121.0', '4388.0', '4438.0', '4471.0', '4713.0', '4922.0', '5016.0', '5048.0', '5876.0', '6678.0', '7065.0', '7281.0', '9464.0', '10830.0', '11013.0', '11969.0', '12527.0', '12756.0', '12785.0', '12790.0', '12846.0', '12968.0', '12985.0', '13412.0', '15084.0', '17003.0', '18556.0', '18685.0', '18697.0', '19089.0', '19543.0', '20427.0', '20581.0', '20602.0', '21118.0', '21130.0', '21608.0', '21617.0')
Hope it helps, Christophe
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Morisset/PyNeb_devel/issues/17#issuecomment-890383607, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAK5SDBQMKIAF462JA3DCX3T2Q3ARANCNFSM5BJ75U2A .
These are labels, as strings. There is no precision, they are hard-coded as they appear with this command.
Using the pip-installed version of PyNeb, I get a crash when I try to compute the emissivity of HeII: