DASDAE / dascore

A python library for distributed fiber optic sensing
Other
71 stars 16 forks source link

patch.dft() does not change data_type #390

Closed ahmadtourei closed 2 months ago

ahmadtourei commented 3 months ago

Description

patch.dft() does not change data_type attribute so when make waterfall plot from a patch with strain_rate data type (e.g., patch.dft("time").abs().viz.waterfall()), the colorbar has strain_rate label.

Example

Expected behavior

Versions

d-chambers commented 2 months ago

hmmm.... should Patch.dft just remove the data_type tag? Or maybe it is still technically correct since it is derived from strain rate, its just not in strain rate units?

ahmadtourei commented 2 months ago

Yeah, I'm not sure either. Keeping data_type as strain rate can be a bit misleading. Also, do we need it for patch.idft()? If not, removing data_type sounds okay to me. Or, maybe updating data_type to amplitude if real=True and complex_number if real=False? Then, we may make the patch.abs() update patch's data_type to amplitude if the original data_type is complex. What do you think?