Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assistance Required for Reading a MiniSEED File in HVSRpy #35

Closed
gposada opened this issue Jan 15, 2025 · 2 comments
Closed

Assistance Required for Reading a MiniSEED File in HVSRpy #35

gposada opened this issue Jan 15, 2025 · 2 comments

Comments

@gposada
Copy link

gposada commented Jan 15, 2025

Dear HVSRpy Team,

I am currently encountering an issue when attempting to read a MiniSEED file using HVSRpy. Below, I have included a snippet of the code for your reference:

image

Additionally, I have attached the MiniSEED file that I am working with for your review.

Could you please provide guidance on how to resolve this issue? Any assistance or recommendations would be greatly appreciated.

Thank you for your time and support.

Best regards,

BRJC.mseed.zip

@gposada gposada closed this as completed Jan 17, 2025
@jpvantassel
Copy link
Owner

@gposada,
Glad you were able to get this resolved.

For anyone else with a similar problem here are steps to diagnose the problem:

# Load specific read function for filetype
from hvsrpy.data_wrangler import _read_mseed
srecords = _read_mseed("BRJC.mseed")

This results in:
ValueError: Component ew is not similar to component ns; all components must be similar.

# Can confirm using obspy
import obspy
stream = obspy.read("BRJC.mseed")
print(stream)

This results in:

CM.BRJC.10.HNE | 2021-07-31T23:59:57.110000Z - 2021-08-01T00:59:57.110000Z | 200.0 Hz, 720001 samples
CM.BRJC.10.HNN | 2021-07-31T23:59:58.810000Z - 2021-08-01T00:59:57.110000Z | 200.0 Hz, 719661 samples
CM.BRJC.10.HNZ | 2021-07-31T23:59:57.135000Z - 2021-08-01T00:59:57.110000Z | 200.0 Hz, 719996 samples

Solution: Trim all three components to the same length.

@jpvantassel
Copy link
Owner

If you are having a similar issue also see #27.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants