GPLIB++
mtumerge.cpp
Go to the documentation of this file.
1 #include "MtuFormat.h"
2 #include <iostream>
3 #include "Util.h"
4 
5 using namespace std;
6 using namespace gplib;
7 
8 /*!
9  * \addtogroup UtilProgs Utility Programs
10  *@{
11  * \file
12  * Merge the electric field from one site with the magnetic field from another site.
13  */
14 
15 int main()
16  {
17  MtuFormat ETsData, BTsData;
18 
19  string einfilename = AskFilename("E Channel Filename: ");
20  string binfilename = AskFilename("B Channel Filename: ");
21  string outfilename = AskFilename("Output Filename: ");
22 
23  ETsData.GetData(einfilename.c_str());
24  BTsData.GetData(binfilename.c_str());
25  BTsData.GetEx() = ETsData.GetEx();
26  BTsData.GetEy() = ETsData.GetEy();
27  BTsData.WriteData(outfilename.c_str());
28  }
29 /*@}*/
virtual void GetData(const std::string filename)
Definition: MtuFormat.cpp:137
TimeSeriesComponent & GetEx()
Definition: TimeSeries.h:47
virtual void WriteData(const std::string filename)
Definition: MtuFormat.cpp:200
int main()
Definition: angleavg.cpp:12
Read and write phoenix mtu binary files.
Definition: MtuFormat.h:13
TimeSeriesComponent & GetEy()
Definition: TimeSeries.h:51