desc.vmec.VMECIO.save

classmethod VMECIO.save(eq, path, surfs=128, verbose=1, M_nyq=None, N_nyq=None)Source

Save an Equilibrium as a netCDF file in the VMEC format.

Parameters:
  • eq (Equilibrium) – Equilibrium to save.

  • path (str) – File path of output data.

  • surfs (int) – Number of flux surfaces to interpolate at (Default = 128).

  • verbose (int) – Level of output (Default = 1). * 0: no output * 1: status of quantities computed * 2: as above plus timing information

  • M_nyq (int) – The max poloidal and toroidal modenumber to use in the Nyquist spectrum that the derived quantities are Fourier fit with. Defaults to M+4 and N+2.

  • N_nyq (int) – The max poloidal and toroidal modenumber to use in the Nyquist spectrum that the derived quantities are Fourier fit with. Defaults to M+4 and N+2.

Returns:

None