-
Notifications
You must be signed in to change notification settings - Fork 529
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
Revision 2 support for io.segy. #2846
base: master
Are you sure you want to change the base?
Conversation
Can someone offer some support for resolving these failed tests? reviewdog is flaging some whitespace pereferences that I will work through. But, how can I resolve failed tests on classes and methods I made changes to (see os tests)? |
I know only a bit about the Segy-format, but I hope I can help you with some points to look into:
|
Ah, I see. Thank you. I will try to separate the header list objects into a write and read for SEG-Y rev2 support and tackle write support later. |
It turns out that I am not able to run the tests on my changes because I have two separate installs of obspy: one installed by macports and a copy that has my git fork with segyr2 branch. How can I run obspy-tests and point it to my test install? |
|
@dbpodrasky could you rebase your PR on the lastest master channel? |
… enable reading SEG-Y revision 2.0 files. Some additional unpacking methods were added to io.segy.unpack.py as shell methods that contain commented, untested code for reading/converting the various new data format types defined by rev2. Currently these methods all call the not implemented error message. io.segy.header.py has had new parameters inserted into the BINARY_FILE_HEADER and TRACE_HEADER lists to handle extended acquisition parameter blocks defined by rev2. io.segy.segy.py has had some minor modifications to check for revision number and fixed trace lenght flag, in which case it attemps to read the extended acquisition parameter blocks in the binary file header. If the extended acquisition parameter blocks are set to zero, the behavior defaults to reading rev1 blocks from the binary file header and trace headers.
Rebased on current master and force-pushed. I had some funky I'm confused about all the |
What does this PR do?
Updates to io.segy.header.py, io.segy.upack.py and io.segy.segy.py to enable reading SEG-Y revision 2.0 files. Some additional unpacking methods were added to io.segy.unpack.py as shell methods that contain commented, untested code for reading/converting the various new data format types defined by rev2. Currently these methods all call the not implemented error message. io.segy.header.py has had new parameters inserted into the BINARY_FILE_HEADER and TRACE_HEADER lists to handle extended acquisition parameter blocks defined by rev2. io.segy.segy.py has had some minor modifications to check for revision number and fixed trace lenght flag, in which case it attemps to read the extended acquisition parameter blocks in the binary file header. If the extended acquisition parameter blocks are set to zero, the behavior defaults to reading rev1 blocks from the binary file header and trace headers.
Why was it initiated? Any relevant Issues?
Adds support for revision 2 data files.
PR Checklist
master
for new features,maintenance_...
for bug fixesJust remove the space in the following string after the + sign: "+ DOCS"
(e.g.
clients.fdsn,clients.arclink
) after the colon in the following magic string: "+TESTS:"(you can also add "ALL" to just simply run all tests across all modules)
CHANGELOG.txt
.CONTRIBUTORS.txt
.