weldx.CoordinateSystemManager.assign_data#

CoordinateSystemManager.assign_data(data, data_name, reference_system, target_system=None)#

Assign spatial data to a coordinate system.

Parameters
  • data (Union[DataArray, SpatialData]) – Spatial data

  • data_name (str) – Name of the data.

  • reference_system (str) – Name of the coordinate system the data values are defined in.

  • target_system (Optional[str]) – Name of the target system the data will be transformed and assigned to. This is useful when adding time-dependent data. The provided name must match an existing system. If None is passed (the default), data will not be transformed and assigned to the ‘reference_system’.