import numpy as np
import dascore as dc
# Get example patch, set unit to velocity (for demonstration)
patch = dc.get_example_patch().set_units("m/s")
transformed = patch.dft(dim="time")
# Note how the dimension name has changed
print(f"old_dims: {patch.dims} new dims: {transformed.dims}")
# As have the units
old_units = patch.attrs.data_units
new_units = transformed.attrs.data_units
print(f"old units: {old_units}, new units: {new_units}")old_dims: ('distance', 'time') new dims: ('distance', 'ft_time')
old units: 1.0 m / s, new units: 1 m 
      
