UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
psc::TsContainer3D Class Reference

#include <psc_ts_container_3d.hpp>

Inheritance diagram for psc::TsContainer3D:
psc::TsContainer

Public Member Functions

 TsContainer3D ()
 
virtual ~TsContainer3D ()
 
virtual bool init (const dba::Seismic &dba, const unsigned int corr_dir_mask, const unsigned int max_stride, const Trace::OffsetT offsets_range[2]=NULL)
 
virtual const Entryoperator() (const int nsp, const int nrp, const unsigned int corr_dir, const unsigned int stride) const
 
virtual Entryoperator() (const int nsp, const int nrp, const unsigned int corr_dir, const unsigned int stride)
 
virtual void applyTimeShift (const Trace::Header::AttrId &attr_id, const int id, const Trace::TimeT dt)
 
- Public Member Functions inherited from psc::TsContainer
 TsContainer ()
 
virtual ~TsContainer ()
 
const std::vector< int > & getIds (const Trace::Header::AttrId &attr_id) const
 
unsigned int getCorrDirMask () const
 
unsigned int getMaxStride () const
 
void removeIncline (const Trace::Header::AttrId &attr_id)
 
void test_to_file (const std::string &fname) const
 

Static Public Member Functions

static void test_apriory_statics_apply (TsContainer3D &ts)
 
static void test_to_file (const TsContainer3D &ts, const std::string &fname)
 

Protected Member Functions

bool get_entry_ids (const int nss, const int nsl, const int nrs, const int nrl, const unsigned int corr_dir, const unsigned int stride, size_t &storage_id, size_t &entries_id) const
 
Entryget_entry (const int nss, const int nsl, const int nrs, const int nrl, const unsigned int corr_dir, const unsigned int stride)
 
- Protected Member Functions inherited from psc::TsContainer
virtual void progress (const int cur, const int max) const
 
bool get_ids_from_db (const dba::Seismic &dba, const Trace::Header::AttrId &attr_id, std::vector< int > &ids_vec) const
 
Entry tr2entry (Trace &tr, const unsigned int dir, const unsigned int stride) const
 
bool id_of_corr_dir (const unsigned int dir, size_t &id) const
 
bool get_entry_ids (const int nsp, const int nrp, const unsigned int corr_dir, const unsigned int stride, size_t &storage_id, size_t &entries_id) const
 

Protected Attributes

std::vector< int > m_nss_ids_vec
 
std::vector< int > m_nsl_ids_vec
 
std::vector< int > m_nrs_ids_vec
 
std::vector< int > m_nrl_ids_vec
 
std::map< int, std::pair< int,
int > > 
m_nsp_to_nss_nsl_map
 
std::map< int, std::pair< int,
int > > 
m_nrp_to_nrs_nrl_map
 
- Protected Attributes inherited from psc::TsContainer
Storage m_storage
 
std::vector< int > m_nsp_ids_vec
 
std::vector< int > m_nrp_ids_vec
 
unsigned int m_corr_dir_mask
 
unsigned int m_max_stride
 
Entry def_inactual_entry
 

Additional Inherited Members

- Public Types inherited from psc::TsContainer
typedef std::vector< EntryEntries
 
typedef std::vector< EntriesStorage
 

Detailed Description

Container for time shifts storing for 3D surface seismic data.

Constructor & Destructor Documentation

psc::TsContainer3D::TsContainer3D ( )

Default constructor, container is empty.

virtual psc::TsContainer3D::~TsContainer3D ( )
virtual

Destructs container.

Member Function Documentation

virtual void psc::TsContainer3D::applyTimeShift ( const Trace::Header::AttrId attr_id,
const int  id,
const Trace::TimeT  dt 
)
virtual

Apply time shift for CCFs maximums corresponded to attribute TA_NSP or TA_NRP.

Parameters
attr_idId of header attribute (TA_NSP or TA_NRP supported).
idId of shot or receiver.
dtTime shift.

Reimplemented from psc::TsContainer.

bool psc::TsContainer3D::get_entry_ids ( const int  nss,
const int  nsl,
const int  nrs,
const int  nrl,
const unsigned int  corr_dir,
const unsigned int  stride,
size_t &  storage_id,
size_t &  entries_id 
) const
protected
Returns
true if entry is presents for provided indexies, otherwise return false.
virtual bool psc::TsContainer3D::init ( const dba::Seismic dba,
const unsigned int  corr_dir_mask,
const unsigned int  max_stride,
const Trace::OffsetT  offsets_range[2] = NULL 
)
virtual

Initialize container of time shifts from provided data base access object pointed to set of traces with cross correlations. Used traces header attributes are: TA_NSP, TA_NRP, TA_NSS, TA_NSL, TA_NRS, TA_NRL, offset, TA_PSC_DIR, TA_PSC_STRIDE.

Parameters
dbaData base access object.
corr_dir_maskMask of used directions of correlations.
max_strideMaximal stride used (>0). If 0 provided => all strides from DB will be used.
offsets_rangeRange of used offsets.
Returns
false on error, true on success.

Reimplemented from psc::TsContainer.

virtual const Entry& psc::TsContainer3D::operator() ( const int  nsp,
const int  nrp,
const unsigned int  corr_dir,
const unsigned int  stride 
) const
virtual

Access to entry with provided indexies for reading.

Parameters
nspShot point number.
nrpReceiver point number.
corr_dirDirection of correlation.
strideStride value.
Returns
Entry correspondent to provided indexies or inactual Entry if no one in the container.

Reimplemented from psc::TsContainer.

virtual Entry& psc::TsContainer3D::operator() ( const int  nsp,
const int  nrp,
const unsigned int  corr_dir,
const unsigned int  stride 
)
virtual

Access to entry with provided indexies for reading and writing.

Parameters
nspShot point number.
nrpReceiver point number.
corr_dirDirection of correlation.
strideStride value.
Returns
Entry correspondent to provided indexies or inactual Entry if no one in the container.

Reimplemented from psc::TsContainer.

Member Data Documentation

std::vector<int> psc::TsContainer3D::m_nrl_ids_vec
protected

Recv lines indexies.

std::vector<int> psc::TsContainer3D::m_nrs_ids_vec
protected

Recvs on line indexies.

std::vector<int> psc::TsContainer3D::m_nsl_ids_vec
protected

Shot lines indexies.

std::vector<int> psc::TsContainer3D::m_nss_ids_vec
protected

Shots on line indexies.


The documentation for this class was generated from the following file: