sixty-north / segpy

A Python package for reading and writing SEG Y files.
Other
102 stars 54 forks source link

How to read minimum and maximum values of time (ms) from .sgy files using segpy or any other seismic reader library? #94

Open SoumiC opened 4 years ago

SoumiC commented 4 years ago

Hi, Earlier I dealt with Seismic data distributed from t=0ms to t= 2500 ms or t=3600ms. So, I checked the number of samples in a trace (segy_reader.max_num_trace_samples()) and number of sampling intervals (segy_reader._binary_reel_header.sample_interval) from the .sgy files and created a time-vector using this. Let say for a sampling interval of 10ms and the number of samples in a trace of 251, the time vector would be = [0,10,20,30,...,2500] ms. But now I have got a seismic file where time varies from t=1500ms to t=2500 ms. I need to detect these minimum and maximum t values from the .sgy file itself using Python.

Kindly help me out to find the command (or field in the segy readers) or if you know any other library to do it.

Thanks a lot in advance!

Regards, Soumi