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 (
ndarray
) – 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