segpy icon indicating copy to clipboard operation
segpy copied to clipboard

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

Open shandou opened this issue 7 years ago • 1 comments

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?

shandou avatar Jul 17 '17 20:07 shandou

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.

rob-smallshire avatar Aug 02 '17 11:08 rob-smallshire