sixty-north / segpy

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

Can the data block be read as a whole instead of on a trace-by-trace base? #50

Open shandou opened 6 years ago

shandou commented 6 years ago

Thanks for making this package available! For a multichannel shot gather, is there a more vectorized method already in the package to read the data block as a whole (n_samples x n_traces matrix) instead of using trace_sample() to read the data trace by trace?

rob-smallshire commented 6 years ago

Sorry for the delay in replying. There is some experimental code in the segpy_numpy extension package. In particular the code in https://github.com/sixty-north/segpy/blob/master/segpy-ext/segpy_numpy/segpy_numpy/extract.py might be of interest, together with the example in https://github.com/sixty-north/segpy/blob/master/segpy-ext/segpy_numpy/examples/inline.py

Note that this code is experimental and very much a work in progress.