| OpendTect User Documentation version 4.2 |
|---|
| Prev |
|
Next |
Appendix C. SEG-Y checklist
This document contains examples of SEG-Y loading problems and proposes solutions for the most often encountered problems.
In all cases, the SEG-Y import tool must be launched from the survey menu (Import --> Seismics --> SEG-Y). Enter the settings needed for the first step and press OK. In the next window (main import window) press scan and perform the scan. An examine window will pop up. Display the first traces in the 2D viewer.
You should have on your screen:
- The main import window
- The examine window
- The scan report
- The first traces displayed in a 2D viewer
Once you have this on screen check the most appropriate situation in the list below:
- The textual header is not readable
- The line header in not readable
- None of the trace headers are readable
- The first trace header is readable but no other - zero sample rate - last trace incomplete
- The examine/scan reports incorrect coordinates
- The loaded volume contains wrong amplitudes
- The loaded volume contains holes - traces were rejected
- The loaded volume is shifted with respect to the others - does not start at zero
Excel utilities
- SEG-Y file size computation
- SEG-Y trace numbers computation
SEG-Y checklist
The textual header is not readable
The top of the examine window may look like any of those two windows, although there is an enormous variety in textual headers:

The left picture is a very common empty (automatically filled) textual header. Sometimes an operator fills the empty parts, but you can expect mistakes to occur. The second picture is a textual header from an OpendTect exported SEG-Y file. All the fields were directly copied from the project database (additional edits are possible).
Every SEG-Y file begins with 40 times 80 characters encoded in ASCII, or EBCDIC for old files. The main difference between them is that your favorite text editor (wordpad, vi or text edit) will not be able to translate EBCDIC encoded characters if you open the SEG-Y file with it, while if you open an ASCII SEG-Y textual header you will see the same as in the OpendTect examine window, without the line breaks.
- Problem: If you do not see the above described structure you might not be reading a SEG-Y file at all, but maybe a seismic file written in a different format (binary, SEG-D, ...).
- Solution: Translate your file if possible.
- Problem: Some characters in the textual header are weired.
- Solution: They were badly translated from EBCDIC to ASCII (or the opposite), either when writing the file or when reading it. Unfortunately there is no 1 to 1 translation between EBCDIC and ASCII, therefore this issue cannot be solved. That is why EBCDIC coding has been banned from the SEG-Y revision 1 norm.
The line header is not readable
The line header overview is provided in the top part of the examine window below the textual header. Use the right scroll bar to reach it. Only the non-zero values are shown, on the contrary to the other headers where the entire content is reported. A correct line header will look like this in the OpendTect examine window:

The title line, field names (first column), byte offsets (second column) and explanations between brackets (fourth column) are provided by OpendTect. Only the numbers in the third column originate from the file. The byte numbers indicate where those values were found.
Look at the field isrev1 (301): If the value is zero your file is revision 0 compliant. If the value is equal to 1 then your file in (normally) revision 1 compliant. This enables to answer to the revision 1 question.
- Problem: If none of the values are reasonable but contain a lot of 256 and 16777216, or in general if none of the numbers make sense, the file might be byte-swapped (i.e. written using "little-endian" byte ordering instead of "big-endian"). See example below:

- Solution 1: In that case cancel the import window (that will bring you back to the first step), and put the "Byte swapped" parameter to "all".
- Solution 2:.If this is not enough then the textual and/or line headers might be corrupted. Try to re-create your SEG-Y file if possible.
None of the trace headers are readable
- Problem: The line header is truncated: The line header should be 400 bytes long. It will not be possible to deduct the start position of the first trace if any of the first 3600 (=3200 + 400) bytes are missing. If the line header is truncated then you should see a lot of non-standard entries in the examine window, like in the example below:

- Solution: Use the excel utilities to determine if your file may be missing some bytes. If that is the case you need to re-create your file unless you know exactly how many bytes are missing and how to lengthen your line header.
- Problem: The bytes are swapped.
The first trace header is readable but no other - zero sample rate - last trace incomplete
This happens when the trace size could not be computed successfully. The trace size is function of the sample size (format) and number of samples. The problem then occurs when either of those variables was not correctly written in the headers.
- Action 1: Check if the sample size (format) is correct in the line header: The sample format is reported in the examine window in the line header in front of the "format" field. It must report a value of 1, 2, 3, 5 or 8. If not the following warning will be shown when scanning the file or loading it:

A value of 1, 2, 5 represents a sample size of 4 bytes.
A value of 3 represents a sample size of 2 bytes.
A value of 8 represents a sample size of 1 byte.
Furthermore the warning "Err: Warning: replacing zero sample rate with survey default" is printed (but that is not the only cause) if the actual sample size is larger than the sample size deducted from the headers of overruled.
On the contrary the warning "last trace incomplete" is printed (but that is not the only cause) if the actual sample size is smaller than the sample size deducted from the headers or overruled.
- Solution: Overrule the SEG-Y format to another format until the line header and all trace headers are readable in the examine window. Scan your file and check the output amplitudes since three different formats are available for a sample size of 4 bytes. A proper display of the data in the 2D viewer will indicate a success.
- Action 2: Check if the number of samples was correctly extracted from either the line or trace headers:
The number of samples is reported at multiple positions in the SEG-Y file:
In the examine window in the line header overview in front of the "hns" field.
In each trace header at byte offset 115 (field "ns").
OpendTect will only use the number of samples defined in the trace headers. Therefore the line header field "hns" might be missing or in contradiction with the trace headers, with no consequence upon the data loading as long as the trace headers "ns" field are correctly written.
- Solution: Overrule the SEG-Y number of samples to another value until all trace headers are readable. The excel utilities might be helpful to check the correct value and to check if the file is not missing some bytes.
The examine/scan reports incorrect coordinates
The coordinates may be found in each trace headers on bytes 73 (CDP-X) and 77 (CDP-Y) or 181 and 185 respectively with SEG-Y revision 1 files. However those values will be scaled during scan and loading by the scaler coordinate that should always be found on bytes 71-72.
- Problem: The coordinates found in the trace headers do not make sense: Your file might contain coordinate trace header encoded as floats instead of integers. This is not allowed by any SEG-Y standard, although still being encountered sometimes.
- Solution: Get a SEG-Y compliant file.
- Problem: The unscaled coordinates are reasonable but after scan/loading the scaled coordinates are not correct.
- Solution: Overrule the scaler coordinate to the right value in the import window. You need to specify a number that when multiplied by the trace header coordinate will return the actual (scaled) coordinate. Therefore the trace header scalco "-10" would have to be overruled by 0.1 in order to get the same scaling.
Please note the it is not possible to apply a static shift (easting/northing) to the coordinates, however this is not needed by OpendTect. Nevertheless you can load the SEG-Y file first and apply your shift to the survey coordinates afterwards in the survey definition window.
The loaded volume contains wrong amplitudes
This is linked to the sample format not being correctly set. The three formats 1, 2, 5 code the data on four bytes. You may need to switch and overrule between 1, 2 and 5.
The loaded volume contains holes - traces were rejected
Neither a SEG-Y file nor and OpendTect volume need to be rectangular, i.e. they do not need to contain all traces of rectangular survey. This is normal, except if you expect a rectangular volume. Please note that the default setting in OpendTect is to dismiss null traces, i.e. traces where all samples have a zero value.
- Problem: The warning "during import 123450 traces were rejected" appers when loading the file.
- Solution 1: Display the loaded file. The warning sometimes pops up by mistakes such that your file may be already correctly loaded.
- Solution 2: Make sure that the survey area is large enough to accommodate your new volume.
- In general: .
- Solution: Use the excel utilities to compute the number of traces you can expect to have in your SEG-Y file, and compare it with the actual number of loaded traces, reported in the scan report. OpendTect will be able to load all full traces until the first missing byte is found in the input file or until the end of the file, even if the end of the file is in the middle of a trace. In that case only the last non-complete trace will not be acccessible.
The loaded volume is shifted with respect to the others - does not start at zero
Sometimes the first sample does not correspond to the time or depth 0. If that is the case the corresponding time or depth should be reported in each SEG-Y trace header at bytes 109-110 (delrt) and/or 105-106 (laga) with the opposite polarity like in this example:

"laga" is equal to -200, delrt is equal to 200: both mean that the first sample corresponds to time 200ms.
- Problem : The start time is not specified in the trace headers but is expected to be different that zero.
- Solution: Overrule the start time parameter in the import window.
- Problem: An incorrect start time was applied during loading.
- Solution: Either re-import the file by overruling the start time or use the reference shift attribute to apply a static shift to your traces.
Please note that in all cases you must have a priori knowledge of the start time.
Excel utilities
The following two utilities can be used to:
- Compute the SEG-Y file size based on the sample format, number of traces and number of samples. A successful application will be the indicator of a SEG-Y file without missing bytes.
- Compute the number of traces present in the SEG-Y file based on its size, the sample format and the number of samples per trace, assuming a constant trace length. If the returned number os an integer the SEG-Y file does not contain holes (except for a very unlikely occasion).
How-to use them: Double-click on the pictures below, open the file and fill the variables. The sample format must be specified using the list box.
Please note that extended textual headers are not supported.
SEG-Y file size computation

SEG-Y trace numbers computation

| Prev |
Home |
Next |
| Command Driver Manual |
|
Wacom digitizing tablets |