cherab.imas.ids.radiation.load_radiation_coefficientsΒΆ
-
cherab.imas.ids.radiation.load_radiation_coefficients(radiation_ids, process_index: int =
0, ion_index: int =0, emissivity_index: int =0, grid_subset_index: int | None =None) NDArray[float64]SourceΒΆ Load JOREK-style emissivity coefficients from a radiation IDS time slice.
This accessor targets the coefficient layout typically used by JOREK:
radiation.process[i].ggd[0].ion[j].emissivity[k].coefficients.- Parameters:
- radiation_idsΒΆ
Radiation IDS object (top-level or time slice).
- process_index: int =
0ΒΆ Index of the process in the IDS
processAOS.- ion_index: int =
0ΒΆ Index of the ion entry in
process[...].ggd[0].ion.- emissivity_index: int =
0ΒΆ Index of the emissivity entry in
ion[...].emissivity.- grid_subset_index: int | None =
NoneΒΆ Optional subset index constraint. If provided, coefficient data is accepted only when
grid_subset_indexmatches the emissivity entry.
- Returns:
NDArray[numpy.float64]β Coefficient array, typically shaped(num_vertices * num_modes, 4).- Raises:
RuntimeError β If the requested process/ion/emissivity structure is missing or empty.