-
Notifications
You must be signed in to change notification settings - Fork 30
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
Issue processing data due to file format without STACK object in masw #29
Comments
I had a similar issue. You can see it in the closed issues. It was thought to be fixed. There is a workaround that I used which involves editing the code in sensor1c.py and commenting out the line looking for STACK. |
@alangi could you share with me how your sensor1c.py code looks like after editing it? |
In "def _from_trace_seg2" find the code below
delete the line Best keep a copy incase it doesn't work. |
thanks for trying to help me, but I keep getting the same error: KeyError Traceback (most recent call last) File ~\anaconda3\Lib\site-packages\obspy\core\util\attribdict.py:96, in AttribDict.getitem(self, name, default) KeyError: 'STACK' During handling of the above exception, another exception occurred: AttributeError Traceback (most recent call last) File ~\anaconda3\Lib\site-packages\swprocess\masw.py:87, in Masw.run(fnames, settings, map_x, map_y) File ~\anaconda3\Lib\site-packages\swprocess\maswworkflows.py:136, in TimeDomainWorkflow.run(self) File ~\anaconda3\Lib\site-packages\swprocess\array1d.py:657, in Array1D.from_files(cls, fnames, map_x, map_y) File ~\anaconda3\Lib\site-packages\swprocess\sensor1c.py:118, in Sensor1C.from_trace(cls, trace, read_header, map_x, map_y, nstacks, delay, x, y, z) File ~\anaconda3\Lib\site-packages\swprocess\sensor1c.py:151, in Sensor1C._from_trace_seg2(cls, trace, map_x, map_y) File ~\anaconda3\Lib\site-packages\obspy\core\util\attribdict.py:142, in AttribDict.getattr(self, name, default) AttributeError: STACK |
Hi @Valdebenit0, As @alangi mentioned, I thought I had patched this issue with v0.3.0, so I am not sure how this error could occur. To figure out what is going on I will need more information. At least the following:
Once you provide these, I can see if I can reproduce and we can take it from there. |
Greetings of the day!
I'm running the masw code (I'm using swprocess-v0.3.0), but it happens that when I run the analysis cell I get an error because the file format that my system outputs does not include the STACK object in the header. This creates a problem with sensor1c.py when trying to import the data.
How can I do this to process my data?
My data is in this link: https://correouss-my.sharepoint.com/:f:/r/personal/evaldebenitoc_correo_uss_cl/Documents/Data%20San%20Pedro?csf=1&web=1&e=l4kZHi
thank you
The text was updated successfully, but these errors were encountered: