DASDAE / dascore

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

Spectrogram messes up time dimension #286

Closed ariellellouch closed 11 months ago

ariellellouch commented 11 months ago

I run the following example:

import dascore as dc import numpy as np import matplotlib.pyplot as plt

patch = ( dc.get_example_patch('dispersion_event') )

filt_patch = patch.pass_filter(time=(5, 20)) white_patch = filt_patch.whitening([5,50],20)

fig,(ax1,ax2) = plt.subplots(2,1,figsize=(10,7))

print(filt_patch.coords.get_array("time")) filt_spectro = filt_patch.spectrogram(dim='time') print(filt_spectro.coords.get_array("time"))

Whereas the filt_patch time is OK, the filt_spectro time is very weird - I get a time sample every 6 days or so for this example.