6 #include <boost/date_time/posix_time/posix_time.hpp>
10 using namespace gplib;
12 string version =
"$Id: syncts.cpp 1816 2009-09-07 11:28:35Z mmoorkamp $";
22 int main(
int argc,
char *argv[])
24 string infilename1, infilename2;
26 cout <<
"This is syncts: Synchronize the start of two time series" << endl
28 cout <<
"Usage: syncts filename1 filename2" << endl;
29 cout <<
"The outputfiles will have the starttime of whatever starts later"
31 cout <<
"They will have the same name as the input files + .sync " << endl
33 cout <<
"This is Version: " <<
version << endl << endl;
36 infilename1 = argv[1];
37 infilename2 = argv[2];
41 infilename1 = AskFilename(
"First Input Filename: ");
42 infilename2 = AskFilename(
"Second Input Filename: ");
45 cout <<
"Synchronizing ... " << endl;
58 cout <<
"New start time file 1: " << Data1.
GetData().
GetTime().front()
60 cout <<
"New start time file 2: " << Data2.
GetData().
GetTime().front()
64 cerr << e.what() << endl;
66 cout <<
"... done " << endl;
TimeSeries & GetData()
return a reference to the actual object stored in the pointer
void WriteAsBirrp(std::string filename_base)
Write data to file in ascii format for birrp processing.
TimeSeriesData stores a pointer to the different components of magnetotelluric data and provides func...
The basic exception class for all errors that arise in gplib.