rigid_body_motion.ReferenceFrame.from_translation_dataarray¶
- classmethod ReferenceFrame.from_translation_dataarray(da, timestamps, parent, name=None, inverse=False, discrete=False)[source]¶
Construct a reference frame from a translation DataArray.
- Parameters
- da: xarray DataArray
The array that describes the translation of this frame wrt the parent frame.
- timestamps: str
The name of the variable or coordinate representing the timestamps.
- parent: str or ReferenceFrame
The parent reference frame. If str, the frame will be looked up in the registry under that name.
- name: str, default None
The name of the reference frame.
- inverse: bool, default False
If True, invert the transform wrt the parent frame, i.e. the translation is specified for the parent frame wrt this frame.
- discrete: bool, default False
If True, transformations with timestamps are assumed to be events. Instead of interpolating between timestamps, transformations are fixed between their timestamp and the next one.
- Returns
- rf: ReferenceFrame
The constructed reference frame.