You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having an issue with the headers in segy format. I am converting SAC files to SEG-Y files, to analyze them in this format. I have done the header with the obspy.io.segy.segy.SEGYTraceHeader module and fill it with the values and order that they have to had, with the info available in the SAC file and other complementary information needed for the header. When I read the files into python with obspy and convert them to a trace there is no issue, and I can handle, fill and add the respective segy header, but when I try to write this stream with one or more traces it goes out just with very limited information that the header should have and goes blank with lots of spaces in it. The result of the header when it's exported as segy is something like this:
I don't know SEGY well but this sounds like a usage question, maybe more suited for our discourse forum. Also I think you'll need to post a fully self contained minimal example of what you are doing or people can't really tell what's going on.
I am having an issue with the headers in segy format. I am converting SAC files to SEG-Y files, to analyze them in this format. I have done the header with the obspy.io.segy.segy.SEGYTraceHeader module and fill it with the values and order that they have to had, with the info available in the SAC file and other complementary information needed for the header. When I read the files into python with obspy and convert them to a trace there is no issue, and I can handle, fill and add the respective segy header, but when I try to write this stream with one or more traces it goes out just with very limited information that the header should have and goes blank with lots of spaces in it. The result of the header when it's exported as segy is something like this:
AttribDict({'trace_header': LazyTraceHeaderAttribDict({'unpacked_header': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00', 'endian': '>', 'sample_interval_in_ms_for_this_trace': 2000, 'year_data_recorded': 2021, 'day_of_year': 312, 'hour_of_day': 16, 'minute_of_hour': 0, 'second_of_minute': 32})})
If someone has any idea on how to fix it would be lovely.
demonstrates the issue.
please note when it used to work.
(e.g. put error tracebacks into code blocks)
The text was updated successfully, but these errors were encountered: