<filename>docs/build/html/xas/xas_ft-3.py
from araucaria.testdata import get_testpath
from araucaria import Group
from araucaria.io import read_dnd
from araucaria.xas import pre_edge, autobk, xftf, xftr
from araucaria.utils import check_objattrs
kw      = 2
k_range = [2,10]
r_range = [0.5, 2]
fpath   = get_testpath('dnd_testfile1.dat')
group   = read_dnd(fpath, scan='mu')  # extracting mu and mu_ref scans
pre     = pre_edge(group, update=True)
autbk   = autobk(group, update=True)
fft     = xftf(group, k_range=k_range, kweight=kw, update=True)
rft     = xftr(group, r_range=r_range, update=True)
attrs = ['rwin', 'q', 'chiq', 'chiq_mag', 'chiq_re', 'chiq_im']
check_objattrs(group, Group, attrs)
# [True, True, True, True, True, True]

# plotting forward FFT signal
import matplotlib.pyplot as plt
from araucaria.plot import fig_xas_template
fig, ax = fig_xas_template(panels='rq', fig_pars={'kweight': kw})
line = ax[0].plot(group.r, group.chir_mag)
line = ax[0].plot(group.r, group.rwin, color='firebrick')
xlim = ax[0].set_xlim(0,6)
line = ax[1].plot(group.k, group.k**kw*group.chi)
line = ax[1].plot(group.q, group.chiq_re)
xlim = ax[1].set_xlim(0,12)
fig.tight_layout()
plt.show(block=False)

<filename>docs/build/html/xas/xas_ft-3.py
from araucaria.testdata import get_testpath
from araucaria import Group
from araucaria.io import read_dnd
from araucaria.xas import pre_edge, autobk, xftf, xftr
from araucaria.utils import check_objattrs
kw      = 2
k_range = [2,10]
r_range = [0.5, 2]
fpath   = get_testpath('dnd_testfile1.dat')
group   = read_dnd(fpath, scan='mu')  # extracting mu and mu_ref scans
pre     = pre_edge(group, update=True)
autbk   = autobk(group, update=True)
fft     = xftf(group, k_range=k_range, kweight=kw, update=True)
rft     = xftr(group, r_range=r_range, update=True)
attrs = ['rwin', 'q', 'chiq', 'chiq_mag', 'chiq_re', 'chiq_im']
check_objattrs(group, Group, attrs)
# [True, True, True, True, True, True]

# plotting forward FFT signal
import matplotlib.pyplot as plt
from araucaria.plot import fig_xas_template
fig, ax = fig_xas_template(panels='rq', fig_pars={'kweight': kw})
line = ax[0].plot(group.r, group.chir_mag)
line = ax[0].plot(group.r, group.rwin, color='firebrick')
xlim = ax[0].set_xlim(0,6)
line = ax[1].plot(group.k, group.k**kw*group.chi)
line = ax[1].plot(group.q, group.chiq_re)
xlim = ax[1].set_xlim(0,12)
fig.tight_layout()
plt.show(block=False)

# extracting mu and mu_ref scans # [True, True, True, True, True, True] # plotting forward FFT signal