1 #ifndef CSEISMICDATACOMP_H
2 #define CSEISMICDATACOMP_H
23 void SetB(
const double theb)
110 int WriteAsSac(
const std::string &filename)
const;
140 void ReadSac(
const std::string &filename);
141 void ReadHeaderAscii(
const std::string &filename);
142 void ReadSKS(
const std::string &filename);
143 void ReadAscii(
const std::string &filename);
147 #endif // CSEISMICDATACOMP_H
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...
double GetStLa() const
Return the latitude of the station.
double GetStDp() const
Get the depth of the station below the ground in m.
double GetDist() const
Get the distance between event and station.
double GetEvDp() const
Get the depth of the event.
double GetEvLo() const
Get the longitude of the event.
double GetEvEl() const
Get the elevation of the event.
double GetGcarc() const
Get the distance between station and event along a great circle.
double GetBaz() const
Get the back-azimuth of the event.
void SetStLo(const double lon)
Set the longitude of the station.
double GetEvLa() const
Get the latitude of the event.
void CopyHeader(const SeismicDataComp &source)
Copy the information in the header from another object.
TimeSeriesComponent is the base storage class for all types of time series data.
double GetStEl() const
Get the elevation of the station in m.
void SetB(const double theb)
double GetMag() const
Get the magnitude of the event.
double GetAz() const
Get the azimuth of the event.
virtual ~SeismicDataComp()
double GetStLo() const
Get the longitude of the station.
int WriteBack() const
Write the data in the format it was read in and with the same filename.
void SetStLa(const double lat)
Set the latitude of the station.
virtual SeismicDataComp & operator=(const SeismicDataComp &source)
tseismicdataformat GetFormat()
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.