11 using namespace gplib;
13 string version =
"$Id: mtubandpass.cpp 1816 2009-09-07 11:28:35Z mmoorkamp $";
24 int main(
int argc,
char *argv[])
27 cout <<
"This is mtufilter: Apply a band pass filter to MT time series"
29 cout <<
" Usage: mtufilter infilename " << endl;
30 cout <<
" Ending '.fil' will be automatically assigned to outfilename"
32 cout <<
" This is Version: " <<
version << endl << endl;
40 infilename = AskFilename(
" Mtu-Filename: ");
47 cout <<
"Lower Corner frequency [Hz]: ";
52 cout <<
"Upper Corner frequency [Hz]: ";
60 cout <<
"Number of passes: ";
76 for (
size_t i = 0; i < npass; ++i)
std::vector< double > & GetData()
Access for data vector, for ease of use and efficiency we return a reference.
TimeSeries & GetData()
return a reference to the actual object stored in the pointer
TimeSeriesComponent & GetEx()
void SubMean(InputIterator begin, InputIterator end, typename std::iterator_traits< InputIterator >::value_type mean)
Substract the mean from each element in the container, mean is passed as a parameter.
TimeSeriesComponent & GetHy()
void WriteBack(std::string filename_base)
Write in the format it was originally read in.
TimeSeriesData stores a pointer to the different components of magnetotelluric data and provides func...
double GetSamplerate() const
Return samplerate in Hz.
TimeSeriesComponent & GetEy()
TimeSeriesComponent & GetHz()
TimeSeriesComponent & GetHx()
Access function for Hx, returns reference for efficiency.