-
Notifications
You must be signed in to change notification settings - Fork 34
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
Problems reading .miniseed files #27
Comments
Hi @DavidMvD, I just took at a look at If you are only getting an error using one of your own .miniseed files it is most-likely an issue with the formatting of the file itself, but I cannot say for sure without looking at the file. The most-likely possibility is that the components are not labeled correctly and the code is not able to understand which trace belongs to the NS, EW, and VT components. You can fix this in Python (using All the best, |
I'm not sure if this is helpful for you, @DavidMvD but I've come across a similar issue and found a potential solution. data_wrangler.py attempts to read the file in alternative formats if it encounters difficulties in the current format. It follows the sequence of
@jpvantassel would it be possible to modify the code to raise a warning or error to point out the incorrect channel name? |
It would appear from Line 618 in data_wrangler.py that the exception can only be raised when the for ftype, read_function in READ_FUNCTION_DICT.items():
try:
srecording_3c = read_function(fnames,
obspy_read_kwargs=obspy_read_kwargs,
degrees_from_north=degrees_from_north)
except Exception as e:
logger.info(f"Tried reading as {ftype}, got exception | {e}")
if ftype == "peer": # here
raise e
pass
else:
logger.info(f"File type identified as {ftype}.")
break |
Hi @masamasace, |
Hello!
My name is David. First of all, thank you very much for this code, it looks really great and very useful!
Well, lets go to the issue. I'm having some problems when I use my own .miniseed files with your codes. For example, i'm struggling with the code named "Gallery of mHVSR Examples Automatically Checked with SESAME (2004) Reliability and Clarity Criteria". When I use my .miniseed file (or even yours), I obtain the same problem message:
ValueError: Must provide 3 peer files (one per trace) as list or tuple, not <class 'str'>
I thought that maybe the problem is because I merged the three components (E, N, Z) into 1 .miniseed file, but if I use it in Geopsy there's no problem, I can see each component and the obtain the HV curve. Even if I try to use the three .miniseed components I have problems.
I have to say that I'm still a beginner playing with python and I believe that I'm missing something.
Could you help me? Thank you in advance! ;)
The text was updated successfully, but these errors were encountered: