Geophysical Inversion and Modelling Library v1.5.4
Loading...
Searching...
No Matches
bertDataContainer.h
1/***************************************************************************
2 * Copyright (C) 2011-2024 by the resistivity.net development team *
3 * Carsten Rücker carsten@resistivity.net *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
20
21#ifndef _BERT_BERT_DATACONTAINER__H
22#define _BERT_BERT_DATACONTAINER__H
23
24#include "bert.h"
25
26#include <datacontainer.h>
27
28namespace GIMLI{
29
30typedef std::pair< int, int > CurrentPattern;
31
32class DLLEXPORT DataContainerERT : public GIMLI::DataContainer{
33public:
36
40 DataContainerERT(const std::string & fileName, bool removeInvalid=true);
41
44
48 virtual ~DataContainerERT();
49
53 virtual void init();
54
58 virtual void initTokenTranslator();
59
62 Index addFourPointData(SIndex a, SIndex b, SIndex m, SIndex n);
63
66 Index createFourPointData(Index i, SIndex eaID, SIndex ebID, SIndex emID, SIndex enID);
67
68 virtual void checkDataValidityLocal();
69
70 CurrentPattern currentPatternToElectrode(Index pattern);
71
72 Index electrodeToCurrentPattern(Index a, Index b) const;
73
74 std::set < Index > currentPattern(bool reciprocity=false);
75
77 void averageDuplicateData(bool verbose=false);
78
79 void fitFillSize();
80
81protected:
82
83 Index fillCounter_;
84};
85
86} // namespace BERT
87
88#endif // _BERT_BERT_DATACONTAINER__H
89
Index createFourPointData(Index i, SIndex eaID, SIndex ebID, SIndex emID, SIndex enID)
Definition bertDataContainer.cpp:191
Index addFourPointData(SIndex a, SIndex b, SIndex m, SIndex n)
Definition bertDataContainer.cpp:187
virtual void checkDataValidityLocal()
Definition bertDataContainer.cpp:91
virtual void init()
Definition bertDataContainer.cpp:45
DataContainerERT()
Definition bertDataContainer.cpp:25
virtual void initTokenTranslator()
Definition bertDataContainer.cpp:64
CurrentPattern currentPatternToElectrode(Index pattern)
Definition bertDataContainer.cpp:155
void averageDuplicateData(bool verbose=false)
Definition bertDataContainer.cpp:225
Index electrodeToCurrentPattern(Index a, Index b) const
Definition bertDataContainer.cpp:149
DataContainer to store, load and save data in the GIMLi unified data format.
Definition datacontainer.h:48
void removeInvalid()
Definition datacontainer.cpp:756
GIMLi main namespace for the Geophyiscal Inversion and Modelling Library.
Definition baseentity.h:24