weldx.util.WeldxAccessor#
- class weldx.util.WeldxAccessor(xarray_obj)#
Custom accessor for extending DataArray functionality.
See http://xarray.pydata.org/en/stable/internals.html#extending-xarray for details.
Construct a WelDX xarray object.
Methods
Convert coordinates of an xarray object to a quantity dictionary.
Format coordinates 'units' attribute as string.
Convert indexes of an xarray object to a quantity dictionary.
Interpolate DataArray along dimensions of another DataArray.
Quantify an xarray object by it's unit information.
Format coordinates 'units' attribute as pint.Unit.
Return copy with time values shifted to new reference time.
Convert DatetimeIndex back to TimedeltaIndex + reference Timestamp.
Convert Timedelta + reference Timestamp to DatetimeIndex.
Attributes
Get the time_ref value or None if not set.
Get the unit of the data array values.