[Ifeffit] [IFEFIT]Chi(E) in version 0.9.25

Matt Newville newville at cars.uchicago.edu
Fri Sep 15 08:32:57 CDT 2017


Hi Michael,

On Fri, Sep 15, 2017 at 8:21 AM, Michael Stockenhuber <
michael.stockenhuber at newcastle.edu.au> wrote:

> Dear mailing list,
>
> Is there any way to save data as Chi( E),i.e., energy one column and
> chi(E) in the 2nd column? This was possible in the past and it would be
> great to have that to be able to import into excurv.
>


Sure:

   ~> larch

   larch> dat = read_ascii(datafile_name)
   larch> # ... make sure you have mu(E) as  'dat.energy' and 'dat.mu'

   larch> autobk(dat, rbkg=1.0, kweight=1)  # may want other options

   larch> write_ascii('my_chie.txt', dat.energy, dat.chie)
   larch> plot(dat.energy, dat.chie, xlabel='E (eV)', ylabel=r'$\chi(E)$')

Hope that helps,
--Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://millenia.cars.aps.anl.gov/pipermail/ifeffit/attachments/20170915/7a705467/attachment.html>


More information about the Ifeffit mailing list