imas.ids_coordinates.IDSCoordinates

class imas.ids_coordinates.IDSCoordinates(node: IDSBase)

Bases: object

Class representing coordinates of an IDSStructArray or IDSPrimitive.

Can be used to automatically retrieve coordinate values via the indexing operator.

Example

>>> import imas
>>> core_profiles = imas.IDSFactory().core_profiles()
>>> core_profiles.ids_properties.homogeneous_time = \
...     imas.ids_defs.IDS_TIME_MODE_HOMOGENEOUS
>>> core_profiles.profiles_1d.coordinates[0]
IDSNumericArray("/core_profiles/time", array([], dtype=float64))
__init__(node: IDSBase)

Methods

__init__(node)

Attributes

time_index

Get the index of the time coordinate

property time_index : int | None

Get the index of the time coordinate

Returns:

The index of the time coordinate, or None if there is no time coordinate.


Last update: 2026-01-28