Hi Mrutyunjaya,
Sorry for the delay in replying. When you call make_chianti_spec, make sure you add the 2nd and 3rd inputs:
make_chianti_spec,structure,lambda,spectrum, bin_size=0.002, etc.
The spectrum is put in the ‘spectrum’ structure:
plot,spectrum.lambda,spectrum,spectrum.spectrum
By the way, in your example below you’re specifying pressure and density – you should only specify one. Also, be careful of using “10^7”. You should either use 1e7 or “10.^7”.
Thanks, Peter
From: <chi...@googlegroups.com> on behalf of Mrutyunjaya Sahoo <mrutyun...@gmail.com>
Reply-To: "chi...@googlegroups.com" <chi...@googlegroups.com>
Date: Thursday, October 20, 2022 at 8:00 AM
To: chianti <chi...@googlegroups.com>
Subject: [EXTERNAL] Regarding debugging an error.
Hello CHIANTI community,
I have a doubt in the following code. It's returning an error expression must be a structure. I don't know how to define the structure here. Like I have gone through the definition of structure but couldn't relate it ?
Can anyone help me out ?
--
You received this message because you are subscribed to the Google Groups "chianti" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
chianti+u...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/chianti/9234fc42-3663-4c42-917e-8348bb624be8n%40googlegroups.com.