Article catalog
Run segyio to read segy files and report errors. Troubleshooting error cause reference
An error occurs when running segyio to read the segy file
"RuntimeError: trace count inconsistent with file size, trace lengths possibly of non-uniform"
Solution:
(1) Add: endian ='little '
with segyio.open('test.sgy','r',ignore_geometry=True,endian='little') as f:
(2) If it still fails:
check the length of the data trace. Segyio’s default trace has the same number and format of sampling points. If the length of the trace in the segy file is inconsistent, it may lead to reading errors.
Error reason
Detailed explanation of big endian and little endian
the default bytes of files read by segyio are encoded according to big endian, while your files are written according to little endian bytes
Read More:
- [Solved] cannot find package “go.opentelemetry.io/otel/api/trace“ in any of
- error: (-215:Assertion failed) size.width>0 && size.height>0 in function ‘cv::imshow‘
- [Solved] size_from_dim: Assertion `dim >= 0 && (size_t)dim < sizes_.size()` failed.
- [Solved] Schema initialization FAILED Metastore state would be inconsistent
- Tidb2.1 reports Error statement count 5001 exceeded the transaction limit, autocommit = false
- How to Solve PageHelper.startPage count Error
- [Solved] MindSpore Error: “RuntimeError: Unexpected error. Inconsistent batch..
- ABAP: Overbooking BAPI_ACC_DOCUMENT_POST error reported FI/CO interface: inconsistent FI/CO voucher header data to be updated
- Max virtual memory areas vm.max_map_count [65530] is too low, increase to at least
- [Solved] RuntimeError: each element in list of batch should be of equal size
- [Solved] MindSpore Error: “RuntimeError: Invalid data, Page size.”
- [Solved] Canal Error: CanalParseException: column size is not match,parse row data failed
- [Solved] vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in render: “TypeError: Cannot read property ‘length‘
- ValueError: Negative dimension size caused by subtracting 2 from 1 for…
- [HBase Error]“java.lang.OutOfMemoryError: Requested array size exceeds VM limit”
- [Solved] TFrecords Create Datas Error: Number of int64 values != expected. Values size: 1 but output shape: [3]
- [Solved] sqoop Error: jSQLException in nextKeyValue Caused by: ORA-24920:column size too large for client
- K8S Master Initialize Error: [ERROR CRI]: container runtime is not running: output: E0812
- [Solved] KEIL Compile Error: Error: L6220E: Load region LR_IROM1 size (65552 bytes) exceeds limit (65536 bytes)……
- error C4996: ‘pcl::SAC_SAMPLE_SIZE‘ [How to Solve]