CoordinateSystemManager.create_cs_from_euler(coordinate_system_name, reference_system_name, sequence, angles, degrees=False, coordinates=None, time=None, time_ref=None, lsc_child_in_parent=True)#

Create a coordinate system and add it to the coordinate system manager.

This function uses the LocalCoordinateSystem.from_euler method of the LocalCoordinateSystem class.

  • coordinate_system_name (str) – Name of the new coordinate system.

  • reference_system_name (str) – Name of the parent system. This must have been already added.

  • sequence – Specifies sequence of axes for rotations. Up to 3 characters belonging to the set {X, Y, Z} for intrinsic rotations, or {x, y, z} for extrinsic rotations. Extrinsic and intrinsic rotations cannot be mixed in one function call.

  • angles – Euler angles specified in radians (degrees is False) or degrees (degrees is True). For a single character seq, angles can be: - a single value - array_like with shape (N,), where each angle[i] corresponds to a single rotation - array_like with shape (N, 1), where each angle[i, 0] corresponds to a single rotation For 2- and 3-character wide seq, angles can be: - array_like with shape (W,) where W is the width of seq, which corresponds to a single rotation with W axes - array_like with shape (N, W) where each angle[i] corresponds to a sequence of Euler angles describing a single rotation

  • degrees (bool) – If True, then the given angles are assumed to be in degrees. Default is False.

  • coordinates (Union[DataArray, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]], Quantity, None]) – Coordinates of the origin.

  • time (Union[DatetimeIndex, datetime64, list[str], Time, TimedeltaIndex, Quantity, timedelta64, Timestamp, str, TimeDependent, None]) – Time data for time dependent coordinate systems.

  • time_ref (Union[Timestamp, str, Time, None]) – Reference time for time dependent coordinate systems

  • lsc_child_in_parent (bool) – If set to True, the passed LocalCoordinateSystem instance describes the new system orientation towards is parent. If False, it describes how the parent system is positioned in its new child system.