GPLIB++
|
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include "ShortCorr.h"
#include "convert.h"
#include "WFunc.h"
#include "TimeSeriesData.h"
Go to the source code of this file.
Functions | |
void | CalcCorrAndWrite (ttsdata &Data, ttsdata &Short, ttsdata &Corr, string name) |
Calculate the correlation between the filed component and a spike and write the correlation to a file. More... | |
void | FindNextSpike (ttsdata::iterator &currstart, ttsdata &Data, ttsdata &Spike, const int trailpoints, const int decaypoints, const double diffthreshold) |
Find the next spike by examining the first difference. More... | |
double | RemoveSpike (ttsdata &Data, ttsdata &Spike, const double corrthreshold, const int minspikeavg, string outname, const size_t iteration) |
Remove spikes with the given form from the time-series. More... | |
int | main (int argc, char *argv[]) |
The program mtucorr tries to identify spikes in the electric field of MT time-series data and remove them. More... | |
Variables | |
string | version = "$Id: mtucorr.cpp 1816 2009-09-07 11:28:35Z mmoorkamp $" |
void CalcCorrAndWrite | ( | ttsdata & | Data, |
ttsdata & | Short, | ||
ttsdata & | Corr, | ||
string | name | ||
) |
Calculate the correlation between the filed component and a spike and write the correlation to a file.
Definition at line 16 of file mtucorr.cpp.
References gplib::ShortCorr().
Referenced by RemoveSpike().
void FindNextSpike | ( | ttsdata::iterator & | currstart, |
ttsdata & | Data, | ||
ttsdata & | Spike, | ||
const int | trailpoints, | ||
const int | decaypoints, | ||
const double | diffthreshold | ||
) |
Find the next spike by examining the first difference.
Definition at line 25 of file mtucorr.cpp.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
The program mtucorr tries to identify spikes in the electric field of MT time-series data and remove them.
Definition at line 124 of file mtucorr.cpp.
References FindNextSpike(), gplib::TimeSeriesData::GetData(), gplib::TimeSeriesComponent::GetData(), gplib::TimeSeries::GetEx(), gplib::TimeSeries::GetEy(), gplib::TimeSeries::GetHx(), gplib::TimeSeries::GetHy(), iterations, RemoveSpike(), version, and gplib::TimeSeriesData::WriteAsMtu().
double RemoveSpike | ( | ttsdata & | Data, |
ttsdata & | Spike, | ||
const double | corrthreshold, | ||
const int | minspikeavg, | ||
string | outname, | ||
const size_t | iteration | ||
) |
Remove spikes with the given form from the time-series.
Definition at line 50 of file mtucorr.cpp.
References CalcCorrAndWrite(), and gplib::SubMean().
Referenced by main().
string version = "$Id: mtucorr.cpp 1816 2009-09-07 11:28:35Z mmoorkamp $" |
Definition at line 13 of file mtucorr.cpp.
Referenced by main().