UNIVERS
15.3
UNIVERS base processing software API
|
#include <psc_ts_container.hpp>
Classes | |
struct | Entry |
Public Types | |
typedef std::vector< Entry > | Entries |
typedef std::vector< Entries > | Storage |
Public Member Functions | |
TsContainer () | |
virtual | ~TsContainer () |
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 Entry & | operator() (const int nsp, const int nrp, const unsigned int corr_dir, const unsigned int stride) const |
virtual Entry & | operator() (const int nsp, const int nrp, const unsigned int corr_dir, const unsigned int stride) |
const std::vector< int > & | getIds (const Trace::Header::AttrId &attr_id) const |
unsigned int | getCorrDirMask () const |
unsigned int | getMaxStride () const |
virtual void | applyTimeShift (const Trace::Header::AttrId &attr_id, const int id, const Trace::TimeT dt) |
void | removeIncline (const Trace::Header::AttrId &attr_id) |
void | test_to_file (const std::string &fname) const |
Protected Member Functions | |
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 | |
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 |
Container for time shifts storing.
typedef std::vector<Entry> psc::TsContainer::Entries |
Entries of the storage type.
typedef std::vector<Entries> psc::TsContainer::Storage |
Storage of time shifts type.
psc::TsContainer::TsContainer | ( | ) |
Default constructor, container is empty.
|
virtual |
Destructs container.
|
virtual |
Apply time shift for CCFs maximums corresponded to attribute TA_NSP or TA_NRP.
attr_id | Id of header attribute (TA_NSP or TA_NRP supported). |
id | Id of shot or receiver. |
dt | Time shift. |
Reimplemented in psc::TsContainer3D.
|
protected |
|
inline |
Get correlation directions mask.
const std::vector<int>& psc::TsContainer::getIds | ( | const Trace::Header::AttrId & | attr_id | ) | const |
Access to indexies stored inside container.
attr_id | Header attribute of indexies required. TA_NSP, TA_NRP, are supported. |
|
inline |
Get maximal stride value.
|
protected |
|
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, offset, TA_PSC_DIR, TA_PSC_STRIDE.
dba | Data base access object. |
corr_dir_mask | Mask of used directions of correlations. |
max_stride | Maximal stride used (>0). If 0 provided => all strides from DB will be used. |
offsets_range | Range of used offsets. |
Reimplemented in psc::TsContainer3D.
|
virtual |
Access to entry with provided indexies for reading.
nsp | Shot point number. |
nrp | Receiver point number. |
corr_dir | Direction of correlation. |
stride | Stride value. |
Reimplemented in psc::TsContainer3D.
|
virtual |
Access to entry with provided indexies for reading and writing.
nsp | Shot point number. |
nrp | Receiver point number. |
corr_dir | Direction of correlation. |
stride | Stride value. |
Reimplemented in psc::TsContainer3D.
|
protectedvirtual |
void psc::TsContainer::removeIncline | ( | const Trace::Header::AttrId & | attr_id | ) |
Remove incline from shot or receiver rows of time shifts of CCFs maximums.
attr_id | Id of header attribute (TA_NSP or TA_NRP supported). |
|
protected |
|
protected |
Mask of correlation directions.
|
protected |
Indexies of strides.
|
protected |
Recvs indexies.
|
protected |
Shots indexies.
|
protected |
Time shifts store.