Closed ReHekat closed 2 years ago
Hi,
You have update the bin/trace headers when you reduce the number of slices. Have a look here: https://github.com/equinor/segyio/blob/master/python/examples/copy-sub-cube.py
Hi,
You have update the bin/trace headers when you reduce the number of slices. Have a look here: https://github.com/equinor/segyio/blob/master/python/examples/copy-sub-cube.py
Thanks for your help. It works well,when I insert: dst.bin = { segyio.BinField.Samples: len(spec.samples) - 50, segyio.BinField.Traces: src.tracecount } Maybe the documentation should be modified? https://segyio.readthedocs.io/en/latest/segyio.html#segyio.create
After copy a file, there is some errors when I open the new file: trace count inconsistent with file size, trace lengths possibly of non-uniform My code: