[OpendTect_Developers] where is the time sampling

Bert Bril bert at opendtect.org
Fri Dec 9 09:38:14 CET 2011


Hi all,


For some reason the mailing list software bounced the following post 
from Fidel Ramos:

"I am developing a plugin and I need the time sampling of the traces. 
What function or where can I get the time sampling of traces in a survey?"


Answer: Time sampling can differ per cube/line. Thus, you have to open a 
cube or line to see what the time sampling is. Something like this could 
work for a cube:

// include seisread.h and seisinfo.h
SeisTrcReader rdr( &ioobj );
SeisTrcInfo ti; rdr.get( ti );

You'd then have ti.sampling available.

There is a default sampling (which no cube of line need to adhere to) in 
the survey info: SI().zRange(true) and SI().zStep() (include survinfo.h).


Bert

-- 
-- Bert Bril / OpendTect developer at dGB
-- mailto:Bert.Bril at opendtect.org , http://opendtect.org





More information about the Developers mailing list