Problem running f_vth.pro

15 views
Skip to first unread message

Thomas Eden

unread,
May 10, 2023, 10:21:47 PM5/10/23
to chianti
Hello,

I am trying to run f_vth.pro from sswidl the following way:

IDL> status = f_vth(0.7, [1.0e49, 0.34467, 1])

And I get the following error echoed to the screen:

RESTORE: Error opening file. Unit: 100, File: idlsave.dat
  No such file or directory
% Execution halted at: CHIANTI_KEV_LINE_COMMON_LOAD   29
   /Users/thed4993/ssw/packages/xray/idl/chianti_kev_common_load.pro

I am wondering if I did not specify a path correctly to this data file. Any help is appreciated.

Thanks,
Tom Eden

Peter Young

unread,
May 11, 2023, 11:59:00 AM5/11/23
to chianti
Hi Tom,

I just tried this routine and it works for me. I see that chianti_kev_line_common_load uses the following environment variables:

file_in = getenv('CHIANTI_LINES_FILE')
sswdb_xray_chianti = getenv('SSWDB_XRAY_CHIANTI')

so I suggest you check what their values are. I get:

IDL> print,getenv('CHIANTI_LINES_FILE')             
chianti_lines_07_12_unity_v901_t41.geny
IDL> print,getenv('SSWDB_XRAY_CHIANTI')
/Users/pryoung/ssw/packages/xray/dbase/chianti

It looks like these routines were written by Richard Schwartz and Kim Tolbert. Richard is no longer with us, but you can contact Kim if you go to https://science.gsfc.nasa.gov/sed/bio/anne.k.tolbert.

Thanks, Peter

Thomas Eden

unread,
May 17, 2023, 4:50:54 PM5/17/23
to chianti
Peter,

I just returned to this problem, so I apologize for the delay. It appears that my environment variables were not declared properly, so I couldn't direct the code to find the 'chianti_lines' file. Now it works. I have some more questions, but need will probably need to contact Kim Tolbert for answers to them.

Thanks,
Tom
Reply all
Reply to author
Forward
0 new messages