#include <SeismicDataComp.h>

Public Types | |
| enum | tseismicdataformat { unknownseis, sac, sks, head, ascii } |
Public Member Functions | |
| double | GetB () const |
| void | SetB (const double theb) |
| tseismicdataformat | GetFormat () |
| double | GetStLa () const |
| Return the latitude of the station. | |
| void | SetStLa (const double lat) |
| Set the latitude of the station. | |
| double | GetStLo () const |
| Get the longitude of the station. | |
| void | SetStLo (const double lon) |
| Set the longitude of the station. | |
| double | GetStEl () const |
| Get the elevation of the station in m. | |
| double | GetStDp () const |
| Get the depth of the station below the ground in m. | |
| double | GetEvLa () const |
| Get the latitude of the event. | |
| double | GetEvLo () const |
| Get the longitude of the event. | |
| double | GetEvEl () const |
| Get the elevation of the event. | |
| double | GetEvDp () const |
| Get the depth of the event. | |
| double | GetMag () const |
| Get the magnitude of the event. | |
| double | GetDist () const |
| Get the distance between event and station. | |
| double | GetAz () const |
| Get the azimuth of the event. | |
| double | GetBaz () const |
| Get the back-azimuth of the event. | |
| double | GetGcarc () const |
| Get the distance between station and event along a great circle. | |
| int | ReadData (const std::string &filename, tseismicdataformat format=sac) |
| Read in data from a file, as we cannot determine the type from the ending we have to provide it. | |
| int | WriteAsSac (const std::string &filename) const |
| Write the data in sac binary format. | |
| int | WriteAsAscii (const std::string &filename) const |
| Write the data in plain ascii format. | |
| int | WriteBack () const |
| Write the data in the format it was read in and with the same filename. | |
| void | CopyHeader (const SeismicDataComp &source) |
| Copy the information in the header from another object. | |
| SeismicDataComp (const std::string &filename, tseismicdataformat format=sac) | |
| SeismicDataComp () | |
| virtual | ~SeismicDataComp () |
| virtual SeismicDataComp & | operator= (const SeismicDataComp &source) |
Definition at line 10 of file SeismicDataComp.h.
| SeismicDataComp::SeismicDataComp | ( | const std::string & | filename, | |
| tseismicdataformat | format = sac | |||
| ) |
| SeismicDataComp::SeismicDataComp | ( | ) |
Definition at line 12 of file SeismicDataComp.cpp.
| SeismicDataComp::~SeismicDataComp | ( | ) | [virtual] |
Definition at line 25 of file SeismicDataComp.cpp.
| void SeismicDataComp::CopyHeader | ( | const SeismicDataComp & | source | ) |
Copy the information in the header from another object.
Definition at line 29 of file SeismicDataComp.cpp.
References az, b, baz, dist, evdp, evel, evla, evlo, gcarc, mag, stdp, stel, stla, and stlo.
Referenced by RecCalc::CalcRecData(), operator=(), and C1DRecObjective::PostParallel().
| double SeismicDataComp::GetAz | ( | ) | const [inline] |
Get the azimuth of the event.
Definition at line 90 of file SeismicDataComp.h.
Referenced by main().
| double SeismicDataComp::GetB | ( | ) | const [inline] |
Definition at line 17 of file SeismicDataComp.h.
Referenced by MoveoutCorrection::DoCorrection(), and main().
| double SeismicDataComp::GetBaz | ( | ) | const [inline] |
Get the back-azimuth of the event.
Definition at line 95 of file SeismicDataComp.h.
Referenced by main().
| double SeismicDataComp::GetDist | ( | ) | const [inline] |
Get the distance between event and station.
Definition at line 85 of file SeismicDataComp.h.
Referenced by main().
| double SeismicDataComp::GetEvDp | ( | ) | const [inline] |
| double SeismicDataComp::GetEvEl | ( | ) | const [inline] |
Get the elevation of the event.
Definition at line 70 of file SeismicDataComp.h.
Referenced by main().
| double SeismicDataComp::GetEvLa | ( | ) | const [inline] |
Get the latitude of the event.
Definition at line 60 of file SeismicDataComp.h.
Referenced by main().
| double SeismicDataComp::GetEvLo | ( | ) | const [inline] |
Get the longitude of the event.
Definition at line 65 of file SeismicDataComp.h.
Referenced by main().
| tseismicdataformat SeismicDataComp::GetFormat | ( | ) | [inline] |
Definition at line 25 of file SeismicDataComp.h.
| double SeismicDataComp::GetGcarc | ( | ) | const [inline] |
Get the distance between station and event along a great circle.
Definition at line 100 of file SeismicDataComp.h.
Referenced by main().
| double SeismicDataComp::GetMag | ( | ) | const [inline] |
Get the magnitude of the event.
Definition at line 80 of file SeismicDataComp.h.
Referenced by main().
| double SeismicDataComp::GetStDp | ( | ) | const [inline] |
Get the depth of the station below the ground in m.
Definition at line 55 of file SeismicDataComp.h.
Referenced by main().
| double SeismicDataComp::GetStEl | ( | ) | const [inline] |
Get the elevation of the station in m.
Definition at line 50 of file SeismicDataComp.h.
Referenced by main().
| double SeismicDataComp::GetStLa | ( | ) | const [inline] |
Return the latitude of the station.
Definition at line 30 of file SeismicDataComp.h.
Referenced by main().
| double SeismicDataComp::GetStLo | ( | ) | const [inline] |
Get the longitude of the station.
Definition at line 40 of file SeismicDataComp.h.
Referenced by main().
| SeismicDataComp & SeismicDataComp::operator= | ( | const SeismicDataComp & | source | ) | [virtual] |
| int SeismicDataComp::ReadData | ( | const std::string & | filename, | |
| tseismicdataformat | format = sac | |||
| ) |
Read in data from a file, as we cannot determine the type from the ending we have to provide it.
Definition at line 133 of file SeismicDataComp.cpp.
References ascii, sac, TimeSeriesComponent::SetName(), and unknownseis.
Referenced by main(), SeismicDataComp(), and RecCalc::SynthPostParallel().
| void SeismicDataComp::SetB | ( | const double | theb | ) | [inline] |
Definition at line 21 of file SeismicDataComp.h.
Referenced by RecCalc::CalcRecData(), and MultiRecCalc::CalcRecData().
| void SeismicDataComp::SetStLa | ( | const double | lat | ) | [inline] |
| void SeismicDataComp::SetStLo | ( | const double | lon | ) | [inline] |
| int SeismicDataComp::WriteAsAscii | ( | const std::string & | filename | ) | const |
Write the data in plain ascii format.
Definition at line 216 of file SeismicDataComp.cpp.
References TimeSeriesComponent::GetData(), and TimeSeriesComponent::GetDt().
Referenced by main(), and WriteBack().
| int SeismicDataComp::WriteAsSac | ( | const std::string & | filename | ) | const |
Write the data in sac binary format.
Definition at line 159 of file SeismicDataComp.cpp.
References TimeSeriesComponent::GetData(), and TimeSeriesComponent::GetDt().
Referenced by main(), WriteBack(), and C1DRecObjective::WriteData().
| int SeismicDataComp::WriteBack | ( | ) | const |
Write the data in the format it was read in and with the same filename.
Definition at line 227 of file SeismicDataComp.cpp.
References ascii, TimeSeriesComponent::GetName(), sac, unknownseis, WriteAsAscii(), and WriteAsSac().
1.5.8