Closed interseismic closed 4 years ago
What's the sampling frequency?
200 Hz
I get the same gaps that are shown in ObsPy, so I'm not sure why we obtain such differences.
Below, t_obspy
is a String created by copy-pasting your ObsPy output.
using DelimitedFiles, SeisIO
S = read_data("mseed", "/home/josh/Downloads/WR.PEC.EHZ.mseed")
t1 = S.t[1]
buf = IOBuffer(t_obspy)
t2_raw = readdlm(buf)
close(buf)
t2 = round.(Int64, t2_raw[:,4].*1000000)
The result:
julia> [t1[2:end-1,2] .- t2]
1-element Array{Array{Int64,1},1}:
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
If I load in your time matrix in the original comment as t
, there are significant differences.
julia> [(t-t1)[2:end-1,2]] # enclosing in arrays for more compact display
1-element Array{Array{Int64,1},1}:
[-1000000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1000000, 0, 0]
I can't tell this is an error in an old SeisIO version, or something potentially very serious, like machine-dependent behavior. Just to cover all bases, so to speak, could you please tell me the following additional information?
Ok my bad. Accidentally was looking at EHN in SeisIO, but EHZ in ObsPy. Everything matches up now -- sorry about wasting your time on this.
I'm working with gappy MSEED data and am unsure if something I'm seeing is expected behavior or not:
Assuming I'm understanding the structure of this correctly, the first gap is 13 sec long. If I read the same file in Python:
The first gap in ObsPy is instead listed as 14 sec, but the rest match the SeisIO durations. Am I missing something here? WR.PEC.EHZ.mseed.zip