Assistance Required for PyNeb Errors

49 views
Skip to first unread message

Atul Kumar Singh

unread,
Nov 18, 2024, 9:12:10 PM11/18/24
to PyNeb

Dear PyNeb Support Team,

I hope this email finds you well. I am currently using PyNeb to analyze ion abundances in emission-line spectra but have encountered several errors that I am struggling to resolve.

Thank you in advance for your support. I would greatly appreciate any insights or suggestions you can provide to help me resolve these issues. Please let me know if you require any additional information or code snippets.


Best regards,
Atul Kumar Singh
Senior Research Scholar
Deen Dayal Upadhyaya Gorakhpur University
Gorakhpur, Uttar Pradesh, India

Pyneb.ipynb

Christophe Morisset

unread,
Nov 19, 2024, 4:47:34 PM11/19/24
to PyNeb
Hi Atul,

There are different problems in your Notebook:
  1. Some labels seems not to be correct (e.g. O3_4958A instead of O3_4959A)
  2. If you use the default atomic data for OIII, the line at 1661A is not available. You need to force the use of alternative atomic data before calling pn.getAtomDict, for example using:
    1. pn.atomicData.setDataFile('o_iii_atom_TZ17.dat')
    2. pn.atomicData.setDataFile('o_iii_coll_TZ17.dat')
  3.  You are using diags.getCrossTemDen('[NII] 5755/6548', '[SII] 6731/6716', obs=obs) but you do not have [NII] 6548, you need to use [NII] 6584 instead
  4. It seems you are trying to use the Chianti atomic data, but you d not have the database installed.
    1. You need to download, unpack the database from here: https://www.chiantidatabase.org/chianti_download.html
    2. You need to define an environment variable $XUVTOP that points to the directory of this database
    3. then you will have access to the chianti atomic data.
But you do not need to use the Chianti data for the script you are running. Using the default atomic data provided by PyNeb can do the job.
Hope this helps,

Christophe

Jorge García Rojas

unread,
Nov 19, 2024, 4:47:58 PM11/19/24
to Atul Kumar Singh, PyNeb
Dear Atul,

the first error is because the predefined atomic data file dictionary only uses 5 levels in the o_iii_coll_SSB14.dat file. Consider to change to e.g. o_iii_coll_LB94.dat

To solve the second error you need to follow the instructions given here:

https://groups.google.com/g/pyneb/c/pa6uaWcQfCY?pli=1

hope it helps,

Jorge
> --
> You received this message because you are subscribed to the Google Groups "PyNeb" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pyneb+un...@googlegroups.com.
> To view this discussion, visit https://groups.google.com/d/msgid/pyneb/ca5195fa-9120-414d-adf2-f9ca6dddc31dn%40googlegroups.com.
> <Pyneb.ipynb>

Reply all
Reply to author
Forward
0 new messages