swprocess icon indicating copy to clipboard operation
swprocess copied to clipboard

Set a condition to deal with STACK not being present in sg2 files

Open alangi opened this issue 2 years ago • 5 comments

The file format that my system puts out does not include the STACK object in the header. This creates an issue with sensor1c.py when trying to import the data.

For now I have just deleted the line, but having a condition in there to deal with missing header objects may be beneficial.

alangi avatar Dec 21 '23 23:12 alangi

Hi @alangi, Would you be willing to share a copy of that file either here or privately with me via email? I would like to add it to my set of test conditions. Thanks, Joe

jpvantassel avatar Dec 29 '23 00:12 jpvantassel

Sent via email. I can't upload the files here without altering the suffix

alangi avatar Jan 14 '24 20:01 alangi

@alangi Can you try using the latest verison of the code on the dev branch https://github.com/jpvantassel/swprocess/commit/780b00be7dd6c063af077a6ab460097517559b40? I believe I fixed the issue of a header variable not being set by catching it and setting a default, but the issue of an incorrect header value is more challenging and still returns an error. Thanks!

jpvantassel avatar Mar 09 '24 00:03 jpvantassel

I’m grateful for your library, and I look forward to creating a profile or 2D MASW section using it. Could you help me with that? because I cannot find any code to that.

MohamedYasser24 avatar May 01 '24 13:05 MohamedYasser24

@MohamedYasser24 this thread is related to header data STACK not being preset in a SEG2 file if you have another question or request please open a separate issue.

jpvantassel avatar May 02 '24 10:05 jpvantassel

I believe this issue is resolved with release v0.3.0, closing the issue.

jpvantassel avatar Jul 13 '24 14:07 jpvantassel