A utility to read AUG shotfiles
Project description
Routines reading ASDEX Upgrade shotfiles (without wrappers) and manipulating equilibria See https://www2.ipp.mpg.de/~git/pyaug
Developed at Max-Planck-Institut fuer Plasmaphysik, Garching, Germany
Requirements:
- python with scipy, numpy, matplotlib (recommended: anaconda)
- pip
- afs client and access to the ASDEX-Upgrade shotfile system
Typical usage:
pip install aug_sfread python3
import aug_sfutils as sfu equ = sfu.EQU(28053) cez = sfu.SFREAD(28053, 'CEZ') if cez.status: tim = cez.gettimebase('Ti_c') rmaj = cez('R_time').T zin = cez('z_time').T Ti = cez('Ti_c')
rho_t = sfu.rz2rho(equ, rmaj, zin, t_in=tim, coord_out='rho_tor', extrapolate=False)
jt_plot = len(tim)//2
plt.figure(1)
plt.xlabel(r'$\rho_{tor}$')
plt.ylabel('Ti [keV]')
plt.figtext(0.5, 0.95, '#%s at t = %9.4f' %(nshot, tim[jt_plot]))
plt.plot(rho_t[jt_plot, :], Ti[jt_plot, :], 'go')
plt.show()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aug_sfutils-0.1.6.tar.gz
(26.5 kB
view hashes)
Built Distribution
Close
Hashes for aug_sfutils-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e6f41b2e2b3a4f0cb1dd014c212b4731c3b88eb9ab39895d8ab535f4a36c700 |
|
MD5 | 6a53f5db0e310bc633f027f6b8366cc9 |
|
BLAKE2b-256 | 02d0f2b09bc72e7afb23f4cb1a5f3cac7dd6a8ccf732280f4785e8267c41085c |