Is there a way for obspy to fix files that have been saved with what is obviously an incorrect sample rate?
For example, here is a report from day-long traces of 4 stations:
LA23: npts=8640000, samp_rate=100.0
LA25: npts=8640001, samp_rate=100.0
LA30: npts=8640000, samp_rate=100.0
LA32: npts=8640000, samp_rate=100.00000762939453
I’m using these traces in eqcorrscan and it throws an error because of that funny sample rate. I’m also wondering if there will be a problem with station LA25 which has one more sample than a day-long file should.
Using trace.resample is not the way to fix this. Can I just read the trace, change trace.stats.npts and proceed? I’d rather fix the input file - we have local copies, are not fetching from remote services.
What is the best way to fix it?