public final class SegyFileReader extends Object
See http://www.seg.org/documents/10161/77915/seg_y_rev1.pdf
Constructor and Description |
---|
SegyFileReader(File file)
Create a SEG Y file reader for the specified disk file.
|
Modifier and Type | Method and Description |
---|---|
static double |
isSegyFile(File file,
byte[] content)
Check if the specified file appears to be a SEG Y file.
|
SegyFile |
read(boolean shouldReadBulkData)
Read the SEG Y file.
|
public SegyFileReader(File file)
file
- File to read. Non-null.IllegalArgumentException
- If file is null.public static double isSegyFile(File file, byte[] content)
file
- File to check. Non-null.content
- A number of bytes from the start of the file.
Null to classify on file name only.IllegalArgumentException
- If file is null.public SegyFile read(boolean shouldReadBulkData) throws IOException
shouldReadBulkData
- True if trace data should be read, false
if only header data should be read.IOException
- If the read operation fails for some reason.Copyright © 2020 Petroware AS - https://petroware.no