Python package for XGC data analysis.
Requires ADIOS2 2.10 or newer.
The code is now organized under a single package root, xgc_reader.
xgc_reader/: core XGC reader package (xgc1and analysis modules)xgc_reader/input/: input-data readers and transformsxgc_reader/distribution/: distribution-function classesxgc_reader_old.py: legacy compatibility module (kept as-is)
import xgc_reader
x = xgc_reader.xgc1("/path/to/xgc")from xgc_reader.input.eqd import eqd_class, get_eqd_from_eqdsk
from xgc_reader.input.geqdsk import geqdsk_reader
from xgc_reader.input.profiles import load_prf, save_prf, read_kefit_profile
from xgc_reader.input.profile_transforms import mergefrom xgc_reader.distribution.core import VelocityGrid, XGCDistributionLegacy top-level modules are still available as wrappers:
eqd_file_reader.pygeqdsk_reader.pyxgc_utils.pyxgc_distribution.py
These wrappers re-export the moved code and emit deprecation warnings. Existing scripts should keep working, but new code should use xgc_reader.* paths.
xgc_reader_old.pyremains unchanged for compatibility workflows.profile_input_reader.pyis still not ready; usexgc_reader.input.profilesinstead.