![]() |
OpendTect 8.0
|
reads from a seismic data store. More...
#include <seisread.h>
Public Member Functions | |
| SeisTrcReader (const char *fnm) | |
| Open 'loose' CBVS files only. | |
| SeisTrcReader (const IOObj &, const Seis::GeomType *=nullptr) | |
| SeisTrcReader (const IOObj &, Pos::GeomID, const Seis::GeomType *=nullptr) | |
| Restricted to a given Pos::GeomID. | |
| SeisTrcReader (const IOObj *=nullptr) | |
| SeisTrcReader (const MultiID &, Seis::GeomType) | |
| SeisTrcReader (const SeisStoreAccess::Setup &) | |
| ~SeisTrcReader () | |
| int | curLineIdx () const |
| StepInterval< int > | curTrcNrRange () const |
| int | expectedNrTraces () const |
| void | fillPar (IOPar &) const override |
| Pos::GeomID | geomID () const override |
| Pos::GeomIDProvider * | geomIDProvider () const |
| bool | get (SeisTrc &) |
| int | get (SeisTrcInfo &) |
| bool | get3DGeometryInfo (PosInfo::CubeData &) const |
| Seis::Bounds * | getBounds () const |
| use after prepareWork(). If not avail: survinfo | |
| bool | getData (TraceData &) |
| bool | getDataPack (RegularSeisDataPack &, TaskRunner *=nullptr) |
| int | getNrOffsets (int maxnrpostobechecked=10) const |
| const Scaler * | getTraceScaler () const |
| mOD_DisableCopy (SeisTrcReader) void forceFloatData(bool yn | |
| Only effective if called before prepareWork() | |
| const SeisTrcTranslator * | seis2Dtranslator () |
| void | setComponent (int ic) |
Public Member Functions inherited from SeisStoreAccess | |
| virtual | ~SeisStoreAccess () |
| virtual bool | close () |
| Conn * | curConn3D () |
| const Conn * | curConn3D () const |
| Seis2DDataSet * | dataSet () |
| const Seis2DDataSet * | dataSet () const |
| uiString | errMsg () const |
| Seis::GeomType | geomType () const |
| const IOObj * | ioObj () const |
| bool | is2D () const |
| bool | isOK () const |
| bool | isPrepared () const |
| bool | isPS () const |
| const SeisPSIOProvider * | psIOProv () const |
| SeisTrcTranslator * | seisTranslator () |
| const SeisTrcTranslator * | seisTranslator () const |
| const Seis::SelData * | selData () const |
| void | setIOObj (const IOObj *) |
| void | setIOObj (const Setup &) |
| virtual void | setSelData (Seis::SelData *) |
| The Seis::SelData becomes mine. | |
| int | tracesHandled () const |
| Translator * | translator () |
| Translator * | translator () const |
| virtual void | usePar (const IOPar &) |
| const ZDomain::Info & | zDomain () const |
| bool | zInFeet () const |
| bool | zInMeter () const |
| bool | zIsTime () const |
| const UnitOfMeasure * | zUnit () const |
Public Attributes | |
| int & | curlineidx |
| StepInterval< int > & | curtrcnrrg |
| bool & | entryis2d |
| Executor *& | fetcher |
| bool & | forcefloats |
| bool & | foundvalidcrl |
| bool & | foundvalidinl |
| bool & | inforead |
| bool & | needskip |
| bool & | new_packet |
| int & | nrfetchers |
| TrcKeySampling *& | outer |
| int & | prev_inl |
| Seis::ReadMode & | readmode |
Protected Member Functions | |
| SeisTrcReader (const MultiID &)=delete | |
| bool | doStart () |
| bool | ensureCurLineAttribOK (const BufferString &) |
| bool | get2D (SeisTrc &) |
| int | get2D (SeisTrcInfo &) |
| bool | get2DData (TraceData &) |
| Seis::Bounds * | get3DBounds (const StepInterval< int > &, const StepInterval< int > &, const StepInterval< float > &) const |
| bool | getPS (SeisTrc &) |
| int | getPS (SeisTrcInfo &) |
| void | init () |
| bool | initBounds2D (const PosInfo::Line2DData &, Seis::Bounds2D &) const |
| bool | initRead (Conn *) |
| bool | isMultiConn () const |
| bool | mkNextFetcher () |
| int | nextConn (SeisTrcInfo &) |
| Conn * | openFirst () |
| bool | readNext2D () |
| bool | startWork () |
Protected Member Functions inherited from SeisStoreAccess | |
| SeisStoreAccess (const IOObj *, const Seis::GeomType *) | |
| SeisStoreAccess (const IOObj *, Pos::GeomID, const Seis::GeomType *) | |
| SeisStoreAccess (const MultiID &, Seis::GeomType) | |
| SeisStoreAccess (const Setup &) | |
| bool | cleanUp (bool alsoioobj=true) |
| SeisTrcTranslator * | strl () const |
Protected Attributes | |
| int | curlineidx_ = -1 |
| BinID | curpsbid_ = BinID::udf() |
| StepInterval< int > | curtrcnrrg_ |
| bool | entryis2d_ = false |
| Executor * | fetcher_ = nullptr |
| bool | forcefloats_ = false |
| bool | foundvalidcrl_ = false |
| bool | foundvalidinl_ = false |
| bool | inforead_ = false |
| bool | needskip_ = false |
| bool | new_packet_ = false |
| int | nrfetchers_ = 0 |
| TrcKeySampling * | outer_ |
| int | prev_inl_ = mUdf(int) |
| PosInfo::CubeDataIterator * | pscditer_ = nullptr |
| PosInfo::Line2DDataIterator * | pslditer_ = nullptr |
| SeisPS2DReader * | psrdr2d_ = nullptr |
| SeisPS3DReader * | psrdr3d_ = nullptr |
| Seis::ReadMode | readmode_ = Seis::Prod |
| int | selcomp_ = -1 |
| SeisTrcBuf * | tbuf_ = nullptr |
Protected Attributes inherited from SeisStoreAccess | |
| Seis2DDataSet * | dataset_ = nullptr |
| uiString | errmsg_ |
| IOObj * | ioobj_ = nullptr |
| bool | is2d_ = false |
| int | nrtrcs_ |
| bool | prepared_ = false |
| const SeisPSIOProvider * | psioprov_ = nullptr |
| Seis::SelData * | seldata_ = nullptr |
| Translator * | trl_ = nullptr |
Additional Inherited Members | |
Static Public Member Functions inherited from SeisStoreAccess | |
| static PtrMan< IOObj > | getFromPar (const IOPar &) |
| static IOObj & | getTmp (const char *fnm, bool isps, bool is2d) |
| static const char * | sKeyHeader () |
| static const ZDomain::Info & | zDomain (const IOObj *) |
Static Public Attributes inherited from SeisStoreAccess | |
| static const char * | sNrTrcs |
reads from a seismic data store.
If you don't want all of the stored data, you must set use the SeisTrcTranslator facilities (SelData and ComponentData) after calling prepareWork(). If you don't call prepareWork(), the reader will do that but you cannot use SeisTrcTranslator facilities then.
Then, the routine is: get(trc.info()) possibly followed by get(trc). Not keeping this sequence is at your own risk.
Note: 2D Prestack data cannot (yet) be read via this class.
<>
| SeisTrcReader::SeisTrcReader | ( | const MultiID & | , |
| Seis::GeomType | ) |
Open 'real user entries from '.omf' file Can be anything: SEGY - CBVS - database
| SeisTrcReader::SeisTrcReader | ( | const IOObj & | , |
| const Seis::GeomType * | = nullptr ) |
Open 'real user entries from '.omf' file Can be anything: SEGY - CBVS - database
| SeisTrcReader::SeisTrcReader | ( | const IOObj & | , |
| Pos::GeomID | , | ||
| const Seis::GeomType * | = nullptr ) |
Restricted to a given Pos::GeomID.
| SeisTrcReader::SeisTrcReader | ( | const SeisStoreAccess::Setup & | ) |
| SeisTrcReader::~SeisTrcReader | ( | ) |
|
protecteddelete |
| SeisTrcReader::SeisTrcReader | ( | const IOObj * | = nullptr | ) |
|
explicit |
Open 'loose' CBVS files only.
|
inline |
|
inline |
|
protected |
|
protected |
| int SeisTrcReader::expectedNrTraces | ( | ) | const |
Not the number of positions, as Pre-Stack datasets have many traces per position
|
overridevirtual |
Reimplemented from SeisStoreAccess.
|
overridevirtual |
Reimplemented from SeisStoreAccess.
| Pos::GeomIDProvider * SeisTrcReader::geomIDProvider | ( | ) | const |
| bool SeisTrcReader::get | ( | SeisTrc & | ) |
It is possible to directly call this without checking the get(SeisTrcInfo&) result. Beware that the trace selections in the SelData may be ignored then - depending on the Translator's capabilities.
| int SeisTrcReader::get | ( | SeisTrcInfo & | ) |
-1 = Error. errMsg() will return a message. 0 = End 1 = Usable info 2 = Not usable (trace needs to be skipped) If 1 is returned, then you should also call get(SeisTrc&).
|
protected |
|
protected |
|
protected |
|
protected |
| bool SeisTrcReader::get3DGeometryInfo | ( | PosInfo::CubeData & | ) | const |
| Seis::Bounds * SeisTrcReader::getBounds | ( | ) | const |
use after prepareWork(). If not avail: survinfo
| bool SeisTrcReader::getData | ( | TraceData & | ) |
| bool SeisTrcReader::getDataPack | ( | RegularSeisDataPack & | , |
| TaskRunner * | = nullptr ) |
| int SeisTrcReader::getNrOffsets | ( | int | maxnrpostobechecked = 10 | ) | const |
|
protected |
|
protected |
| const Scaler * SeisTrcReader::getTraceScaler | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| SeisTrcReader::mOD_DisableCopy | ( | SeisTrcReader | ) |
Only effective if called before prepareWork()
After this, you can set stuff on the translator If not called, will be done automatically
|
protected |
|
protected |
|
protected |
| const SeisTrcTranslator * SeisTrcReader::seis2Dtranslator | ( | ) |
|
inline |
use before startWork() -1 (default) is all components
|
protected |
| int& SeisTrcReader::curlineidx |
|
protected |
|
protected |
| StepInterval<int>& SeisTrcReader::curtrcnrrg |
|
protected |
| bool& SeisTrcReader::entryis2d |
|
protected |
| Executor*& SeisTrcReader::fetcher |
|
protected |
| bool& SeisTrcReader::forcefloats |
|
protected |
| bool& SeisTrcReader::foundvalidcrl |
|
protected |
| bool& SeisTrcReader::foundvalidinl |
|
protected |
| bool& SeisTrcReader::inforead |
|
protected |
| bool& SeisTrcReader::needskip |
|
protected |
| bool& SeisTrcReader::new_packet |
|
protected |
| int& SeisTrcReader::nrfetchers |
|
protected |
| TrcKeySampling*& SeisTrcReader::outer |
|
protected |
| int& SeisTrcReader::prev_inl |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| Seis::ReadMode& SeisTrcReader::readmode |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2025