desc.vmec.VMECIO.load
- classmethod VMECIO.load(path, L=None, M=None, N=None, spectral_indexing='ansi', profile='iota')Source
Load a VMEC netCDF file as an Equilibrium.
- Parameters:
path (str) – File path of input data.
L (int, optional) – Radial resolution. Default determined by index.
M (int, optional) – Poloidal resolution. Default = MPOL-1 from VMEC solution.
N (int, optional) – Toroidal resolution. Default = NTOR from VMEC solution.
spectral_indexing (str, optional) – Type of Zernike indexing scheme to use. (Default =
'ansi'
)profile ({"iota", "current"}) – Which profile to use as the equilibrium constraint. (Default =
'iota'
)
- Returns:
eq (Equilibrium) – Equilibrium that resembles the VMEC data.
Notes
To ensure compatibility with different profile representations in VMEC, the resulting equilibrium will always have SplineProfile types for all profiles