weldx.util.xr_3d_vector#
- weldx.util.xr_3d_vector(data, time=None, add_dims=None, add_coords=None)#
Create an xarray 3d vector with correctly named dimensions and coordinates.
- Parameters
data (
Union[_SupportsArray[dtype],_NestedSequence[_SupportsArray[dtype]],bool,int,float,complex,str,bytes,_NestedSequence[Union[bool,int,float,complex,str,bytes]],DataArray,Quantity]) – Full data array.time (
Union[DatetimeIndex,datetime64,List[str],Time,TimedeltaIndex,Quantity,timedelta64,Timestamp,str,TimeDependent,None]) – Optional values that will fill the ‘time’ dimension.add_dims (
Optional[list[str]]) – Addition dimensions to add between [“time”, “c”]. If either “c” or “time” are present in add_dims they are used to locate the dimension position in the passed array.add_coords (
Optional[dict[str,Any]]) – Additional coordinates to assign to the xarray. (“c” and “time” coordinates will be assigned automatically)
- Returns
- Return type