cherab.imas.plasma.load_magnetic_fieldΒΆ
-
cherab.imas.plasma.load_magnetic_field(*args, time: float =
0, occurrence: int =0, time_threshold: float =inf, **kwargs) Function2DSourceΒΆ Load the magnetic field from the equilibrium IDS and return an interpolator function.
- Parameters:
- *argsΒΆ
IMAS URI, netCDF path, or legacy positional arguments for
DBEntry. For a URI or path, read mode is selected automatically; do not pass"r".- time: float =
0ΒΆ Time for the equilibrium, by default 0.
- occurrence: int =
0ΒΆ Occurrence index of the
equilibriumIDS, by default 0.- time_threshold: float =
infΒΆ Maximum allowed difference between the requested time and the nearest available time, by default
numpy.inf.- **kwargsΒΆ
Additional
DBEntryoptions, such asdd_versionorxml_path.
- Returns:
Function2Dβ The magnetic field interpolator.- Raises:
RuntimeError β If the equilibrium IDS does not have a time slice.